Advertisement
shornby

Powershell3 & Win2012 - Enumerate list of Roles&Features.ps1

May 29th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Enumerate list of Win8 & Win2012 features and roles installed (and not installed but available)
  2. get-WindowsFeature -name *
  3.  
  4. # TO install a particular feature (like IIS)
  5. Install-WindowsFeature -Name Web-Server -IncludeAllSubFeature
  6.  
  7. # NOTE - Install-WindowsFeature is equivalent to and replaces Add-WindowsFeature, formerly
  8. #        used to install roles, role services, and features in Windows 2008R2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement