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:
- Disable Admin Approval Mode
- Turn UAC to the lowest possible setting
- Made sure powershell was running with admin privileges
- Explicitly adding Administrators group to "Manage auditing and security log" User Rights assignment
- Under "Computers/Policies/Windows Settings/Local Policy/Security Options," I toggled the setting "-Audit: Force audit policy subcategory settings (Vista or later) to override audit policy category settings" between "enabled" and "disabled"
- Checking the Windows Update service. I saw one link where the OP found that the service type was "Share process" or "Own Process" something like that. He changed it to the other and it started working. I have also tried toggling this.
- Checked file permissions on the C drive, C:\windows directory, C:\windows\WinSxS directory, and the C:\Windows\System32 directory. All of which look identical to other servers that are working.
- Also have all my McAfee AV/HIPS/et al. disabled.
- Tried removing through SCCM task sequence. Gave error that restart was needed. Restarted, tried again and no luck.
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.