Windows Server Roles and Features (PowerShell)
- Login to LON-DC1 as Adatum\Administrator with password Pa$$w0rd.
- Open a Windows PowerShell prompt and ensure you are running in an administrator context; this can be done by right-clicking the icon in the taskbar and selecting Run as Administrator.
- To view commands that pertain to Windows features type: Get-Command *WindowsFeature
- Review the help that is available on the Get-WindowsFeature command: Help Get-WindowsFeature -showwindow
- To review the roles and features installed on the local machine type: Get-WindowsFeature
- Note the Name which is used for command line actions. Note the InstallState values: Available, Installed, Removed.
- To view just the installed features on LON-SVR1 type: Get-WindowsFeature -ComputerName LON-SVR1 | Where InstallState -eq Installed
- To review the roles and features installed on LON-SVR1 from LON-DC1 type: Get-WindowsFeature -ComputerName LON-SVR1
- To deploy the XPS Viewer on the local machine type: Install-WindowsFeature XPS-Viewer
- To deploy WINS on LON-SVR1 type: Install-WindowsFeature WINS -ComputerName LON-SVR1
- To uninstall the XPS Viewer on the local machine type: Uninstall-WindowsFeature XPS-Viewer
- Features on Demand lets you add and remove role and feature files, also known as feature payload, from Window Server. This allows you to reduce and conserve space.
- To remove WINS and its payload from LON-SVR1 type: Uninstall-WindowsFeature WINS -ComputerName LON-SVR1 -Remove
To install a role or feature where the payload was removed, but the installation media is available.
Install-WindowsFeature –Restart –Source wim:d:\sources\install.wim:4
No comments:
Post a Comment