Comments (5)
I can take this one. The question is should this work for both desktop and server OSes?
This article explains nicely the different ways to get/install features.
https://peter.hahndorf.eu/blog/WindowsFeatureViaCmd.html
The methods to get/install features as well as some of the feature names are different between desktop and server. Supporting both platforms may lead to confusion when attempting to run the same Pester script on server and desktop and finding that it doesn't work.
When admins think of Windows features, I'm guessing they probably think of the feature names found in *-WindowsFeature
(Server Manager/RSAT) and not the ones in *-WindowsOptionalFeature
(DISM).
http://serverfault.com/questions/713187/powershell-install-windowsfeature-and-family-missing-on-windows-10
My vote would be to use Get-WindowsFeature
and only support Server 2008 R2 and above.
Thoughts?
from poshspec.
How about we just disambiguate the function and call it ServerFeature and leave an open space for possibly an OptionalFeature in the future. Better? Worse?
from poshspec.
I'm good with that approach as well.
from poshspec.
This should've been closed by #38.
from poshspec.
Closing this issue. If there is a desire to implement a similar function for Windows Optional Feature, please open a new issue. Thank you, everyone, for your contributions.
from poshspec.
Related Issues (20)
- Unable to call Custom functions in poshspec.
- Http tests don't work against https URLs with invalid certs HOT 4
- Additional Test: AuditPolicy
- Additional Test: LocalUser
- Additional Test: UserRightsAssignment
- Additional Private Function: Test-RunAsAdmin
- Service Function: Get-Service vs Get-WmiObject\Get-CimInstance HOT 1
- Pester 4.x support - Allow for new syntax HOT 2
- Documentation Transition HOT 3
- CHANGELOG HOT 1
- Poshspec Pester Tests broken from PR #44 HOT 1
- more efficient method for package checking HOT 1
- Path prompt with SoftwareProduct HOT 9
- How to use "File Should Contain" rule HOT 4
- PowerShell Gallery shows Pester functions in this module HOT 1
- Update Wiki HOT 2
- Unable to test PowerShell Auditing Settings via registry HOT 2
- Cannot bind argument to parameter 'Command' because it is null. HOT 1
- Compatibility with latest versions of pester
- Issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poshspec.