Login | |
|
 |
RE: Access Denied - 6/22/2007 2:51:39 PM
|
|
 |
|
| |
dm_4ever
Posts: 2663
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
Do you get the same error when you run it locally on that other computer? If not, you may want to check the registry. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole EnableDCOM:Y EnableRemoteConnect:Y
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Access Denied - 6/27/2007 8:59:45 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
There are really 4 things to try. 1) First and foremost try this change to your code Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default\ms_409:StdRegProv") (I've seen some machines where the stdregprov class gets moved to ms_409, I believe it has to do with a specific patch level and DOTNET runtime combination, but I don't have that information handy) 2) You can restore a WMI respository from a backup of another machine with identical applications installed (a little risky, but sometimes works) 3) Try this to refresh and rebuild WMI cd /d %windir%\system32\wbem for %i in (*.dll) do RegSvr32 -s %i for %i in (*.exe) do %i /RegServer 4) Or as a last resort try: rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%\inf\wbemoc.inf The above line will completely reinstall WMI, but you might lose some WMI providers that have been installed since Windows was installed. It also might require the Windows Installation CD.
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|