Cain Manor

Your Guide To All Things Cain™

gpresult — Access Denied

While try­ing to make sure a GPO got applied on a Win­dows 2003 Server, I tried to run gpre­sult. I got “Access Denied.“

Microsoft’s rec­om­men­da­tion did not work, but it’s prob­a­bly worth try­ing 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
gpresult

Comments are closed.