Re: Error on 64 bit systems...
- From: "Alex K. Angelopoulos" <aka(at)mvps.org>
- Date: Wed, 7 May 2008 15:27:15 -0400
I'm not having any trouble with this against Vista x64, which suggests the problem is not 64-bitness but security settings for the specific system in question. I suggest checking the following:
+ try to ping the machine in question (as well as any other 64-bit servers you have, as a comparison). If it drops ping requests, the firewall is probably configured very tightly. If it lets them through, the problem is more specific to WMI, and may even be an issue with a corrupt WMI repository.
+ Confirm whether the system is just an average server, or has a special configuration that may be causing security problems. Those would include a distinct domain role (being a member server only, for example, or not a domain member) or a special version such as SBS - unlikely given what you've said, but still possible.
+ Check the event logs on the system in question. I recall some of the 2006-2007 era patches causing possible problems with DCOM that could interfere with WMI. You'd be looking specifically for the following issues: blanket errors with the DCOM subsystem, WMI, or the Windows Firewall; and repeated remote authentication failures.
+ One other thing: is the account you are using to connect to the remote system in question one with local as well as domain administration privileges on the system in question?
"thestriver" <bijusinbox@xxxxxxxxx> wrote in message news:c2a93d36-af1f-48f2-a22f-6901420b8856@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I'm trying the following script on 32 bit remote servers and it is
working great. However, as soon as I use this same script to run on 64
bit systems, it gives me the errors mentioned after the script below:
'On Error Resume Next
Const HKEY_LOCAL_MACHINE = &H80000002
strServer = InputBox("Enter Server Name here: ")
strServer = Trim(strServer)
If IsEmpty(strServer) Then
WScript.Echo "You have to enter a valid Server Name...ending Script"
ElseIf Len(strServer) = 0 Then
WScript.Echo "You have to enter a valid Server Name...ending Script"
Else
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &
strServer & "\root\default:StdRegProv")
strKeyPath = "SYSTEM\CurrentControlSet\Control\Session Manager
\Environment"
strValueName = "PROCESSOR_ARCHITECTURE"
oReg.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName,
strValue
If strValue = "x86" Then
WScript.Echo "32 bit OS"
Else
WScript.Echo "64 bit OS"
End If
End If
Error:
C:\BT\Scripts\2003SP2Auto\32or64.vbs(19, 1) Microsoft VBScript runtime
error: Th
e remote server machine does not exist or is unavailable: 'GetObject'
Note: I'm trying to run the above script from a 2003 SP2 32-bit server
and entering a remote 64-bit server name at the prompt.
Please help !
.
- Follow-Ups:
- Re: Error on 64 bit systems...
- From: thestriver
- Re: Error on 64 bit systems...
- References:
- Error on 64 bit systems...
- From: thestriver
- Error on 64 bit systems...
- Prev by Date: Re: Are vbscript classes fast?
- Next by Date: Vista Stratup Script
- Previous by thread: Error on 64 bit systems...
- Next by thread: Re: Error on 64 bit systems...
- Index(es):
Relevant Pages
|