Re: Error on 64 bit systems...

Tech-Archive recommends: Fix windows errors by optimizing your registry



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 !

.



Relevant Pages

  • RE: Does WMI have to be installed on Remote Computer?
    ... IMHO this looks like a well constructed and very vell commented script. ... WMI comes as standard on w2k w2k3 and xp, ... does WMI need to be installed on the remote computer in order for a ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... is a GC/AD server with DNS and DHCP for it's area. ...
    (microsoft.public.windows.server.sbs)
  • Does WMI have to be installed on Remote Computer?
    ... I'm new to WMI, learning as I go. ... does WMI need to be installed on the remote computer in order for a ... script which uses WMI to work? ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)