Resultant Set of Policy/gpresult: access denied error message
Posted on October 16th, 2008
When running a Resultant Set of Policy from the Group policy management Console (GPMC) the following error is displayed:
Also, the following ‘access denied’ error appears when running gpresult.exe from a command prompt on the server:
Running on other servers seems okay, but on these specific servers there is a problem.
Resolution
This can be resolved by doing the following:
cmd
c:
cd\windows\system32regsvr32 /n /I userenv.dll
cd\windows\system32\wbem
mofcomp scersop.mofgpupdate /force
Tested as working on Windows 2003 x64 Enterprise Edition. (and it doesn’t even need a reboot)
Tags: access denied, error, gpmc, gpresult, rsop, wmi
Filed under Scripts/Reg, Windows 2003 |
4 Responses to “
Resultant Set of Policy/gpresult: access denied error message”
-
ecticon Says:
March 19th, 2009 at 5:40 pmThis worked for my problem. Thanks. Microsoft KB was suggesting a hotfix. You show’d them.
-
RP Says:
May 11th, 2009 at 12:43 pmAnother issue, but the following message in event viewer:
Source: WSH
Event Type: Error;
Event ID: 1;
Event Text: Citrix Monitoring Script Event 2 Citrix MetaFrame Compute Event Rate: Can’t read farm or zone name from registry: Received error: 0×80070002: Invalid root in registry key “HKLM\SOFTWARE\Citrix\IMA\RUNTIME\Neighborhood”.means that the Citrix WMI provider (MOF) needs to be re-registered.
From a dos prompt, change to the following directory: Program Files\Citrix\System32\Citrix\WMI
and run:
for /f %1 in (‘dir /b *.mof’) do mofcomp %1 (note %%1 if scripting)This will re-register all the Citrix MOF’s.
-
RP Says:
May 11th, 2009 at 12:55 pmThis script can be used to re-register all the MOF’s on a 64 bit Citrix Server:
pushd c:\windows\system32\wbem
sc pause winmgmt
for /f %%1 in (‘dir /b *reposit*.’) do rd /s /q %%1
sc continue winmgmtpushd “c:\program files (x86)\citrix\system32\citrix\wmi”
for /f %%1 in (‘dir /b *.mof’) do mofcomp %%1pushd c:\windows\system32
regsvr32 /s scecli.dll
regsvr32 /s userenv.dllpushd c:\windows\system32\wbem
for /f %%1 in (‘dir /b *.dll’) do regsvr32 /s %%1
for /f %%1 in (‘dir /b *.mof’) do mofcomp %%1
for /f %%1 in (‘dir /b *.mfl’) do mofcomp %%1popd
popd
popd
popd -
IMA crash & CriticalSectionTimeout value | Richard Parmiter Says:
July 8th, 2009 at 1:08 pm[...] Associated problems appeared to be that WMI was breaking regularly. The MOF databases could be rebuilt to resolve this (as per this article RP492) [...]


