Stumped: Error: Permission denied: 'GetObject'
From: UNoHu (unohu.nospam_at_nospam.whoever.com)
Date: 04/29/04
- Previous message: Torgeir Bakken \(MVP\): "Re: wake on lan"
- Next in thread: kilo: "Re: Stumped: Error: Permission denied: 'GetObject'"
- Reply: kilo: "Re: Stumped: Error: Permission denied: 'GetObject'"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 14:44:00 -0500
(I'm using Windows XP Pro SP 1a all up-to-date)
I'm stumped on an issue that just came about on my PC. I can't run any of
the remote administration scripts that I've created in the past. They all
worked fine last week but now all I receive is a message with the following
info:
Error: Remote calls are not allowed for this process
After updating my PC to the latest and greatest I get this error:
Error: Permission denied: 'GetObject'
Code: 800A0046
Source: Microsoft VBScript runtime error
All local admin scripts work fine. All remote admin scripts work fine if I
execute them on another PC. I even went so far as to use one that I know
works (Torgeir's "get installed applications routine"). If I try to get the
info remotely, it does not work from my PC. I've gone through Michael
Harris' "standard WSH remote scripting checklist" and everything checks out
perfect. The only thing that I can think of that may have disrupted this is
an IIS install for Exchange management but I can't figure out how to get it
back. I've tried downloading and registering RegObj.dll with no change.
The following script (Torgeirs) errors out with:
Line: 8
Char: 2
Error: Permission denied: 'GetObject'
Code: 800A0046
Source: Microsoft VBScript runtime error
sComputerName = "PC-01" ' use "." for local computer
WScript.Echo InstalledApplications(sComputerName)
Function InstalledApplications(node)
'Torgeir Bakken's get installed applications routine
Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE
Set oRegistry = _
GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
& node & "/root/default:StdRegProv")
sBaseKey = _
"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
iRC = oRegistry.EnumKey(HKLM, sBaseKey, arSubKeys)
For Each sKey In arSubKeys
iRC = oRegistry.GetStringValue( _
HKLM, sBaseKey & sKey, "DisplayName", sValue)
If iRC <> 0 Then
oRegistry.GetStringValue _
HKLM, sBaseKey & sKey, "QuietDisplayName", sValue
End If
If sValue <> "" Then
InstalledApplications = _
InstalledApplications & sValue & vbCrLf
End If
Next
End Function
-- Any help is much appreciated, UNoHu
- Previous message: Torgeir Bakken \(MVP\): "Re: wake on lan"
- Next in thread: kilo: "Re: Stumped: Error: Permission denied: 'GetObject'"
- Reply: kilo: "Re: Stumped: Error: Permission denied: 'GetObject'"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|