gpresult – Access Denied

While trying to make sure a GPO got applied on a Windows 2003 Server, I tried to run gpresult. I got “Access Denied.”

Microsoft’s recommendation did not work, but it’s probably worth trying again.

CD %windir%\system32\wbem
For /f %s in ('dir /b /s *.dll') do regsvr32 /s %s
wmiprvse /regserver

I found THIS worked.

cd /d %windir%\system32
regsvr32 /n /I userenv.dll
cd wbem
mofcomp scersop.mof
gpupdate /force