Closed devcfgc closed 6 years ago
I tested in windows server 2012 and in all cases, I needed to use Import-Module ServerManager;
otherwise, I get an error that the module Get-WindowsFeature | Install-WindowsFeature | Uninstall-WindowsFeature
couldn't be found. I don't have too much experience with porwershell but it seems that the \\system32\\WindowsPowershell\\v1.0\\powershell.exe
can't use those commands without importing the servermanager module
@devcfgc , thank you for your contribution !
I've been testing all day on some win2012r2 machines:
MattHodge/Windows2012R2-WMF5-NOCM
Import-Module ServerManager;
for the correct execution of the commands otherwise, some Powershell commands won't work.