Okay team, I'm trying to remove the Powershell 2.0 Core engine from my server using the command below:
Remove-WindowsFeature PowerShell-v2
The error we get is:
A required privilege is not held by the client. Error: 0x80070522 DeviceError: (@(Vhd=; Credent...Name=localhost};PSObject) FullyQualifiedErrorID: Error_Populating_Parents_For_CBS_Update,Microsot.Windows.ServerManager.Commands
And it returns the error "Required privilege not held by the client." Even when I try to list stuff with dism
, it gives me the error code 1314. I also tried removing it through the "Remove Roles and Features Wizard" in Server Manager. A couple of things I have searched around for and tried:
This, of course, looks like some sort of generic error that is not specific to removing/uninstalling a Windows feature with the Powershell. After all those different steps, I still receive the same error.
Have you tried running the same commands using a different administrator account? Maybe local administrator if you're using a domain account or vice versa.
Also, have you tried using cmd dism.exe for the same task?
Dism.exe /online /Disable-Feature /FeatureName:MicrosoftWindowsPowerShellV2
if it gives you the same error I suggest you to try using dism.exe to repair the system image.
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /CheckHealth
Then if it detects any errors try repairing it with
Dism /Online /Cleanup-Image /RestoreHealth
User contributions licensed under CC BY-SA 3.0