Flashcards in PowerShell Deck (8)
How To add a feature to a local and remote computer
You can deploy a feature to a remote computer using the “–computer” flag, as in:
How to add migration tools
How to Switch from Full to Core?
Uninstall-WindowsFeature Server-Gui-Mgmt-Infra, Server-
(Also using “–Remove” actually removes the underlying binaries)
How to Switch Core to Full?
Install-WindowsFeature Server-Gui-Mgmt-Infra,ServerGui-Shell –Restart
How to Install Minimal Server Interface from Core?
How to Install-WindowsFeature Server-Gui-Mgmt-Infra?
Uninstall-WindowsFeature Server-Gui-Shell (Note: you can add the –WhatIf flag to see other dependent components that might also be uninstalled)
How to us features on demand.
“Uninstall-WindowsFeatgure –name Gpmc –Vhd -Remove”
To perform this on a remote computer, include “-