Re: RPC server not available when query XP machine by IP address
- From: "asdf" <asdf@xxxxxxxx>
- Date: Thu, 21 Jun 2007 00:32:39 -0400
"However XP machines cannot be
accessed this way by IP address, only by host name"
Improbable, possible, but again unlikely.
---------------------------------------
Resolution of a nost name may be located on an external server.
E.G. ZoneEdit.com
---------------------------------------
In your configuration that would have to be taken into account for such a scenario.
---------------------------------------
"chentiangemalc" <chentiangemalc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:66E207B6-D4CC-4B0F-AA12-B9B5DF5C4CD1@xxxxxxxxxxxxxxxx
Hi There,
I've written a support tool that retrieves some information from a remote
system using WMI or remote registry access. However XP machines cannot be
accessed this way by IP address, only by host name. Windows Server 2003
machines seem to work fine by either IP address or Host name
And example of the function i'm using to connect with:
' Function to Connect to WMI.
' By Malcolm McCaffery
Function ConnectToWMI(strNameSpace,strComputer,strUserName,strPassword)
' If no computer specified then set to local computer'
If strComputer="" then strComputer="."
' If username is specified connect using username & password
If strUserName<>"" then
Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set ConnectToWMI = objSWbemLocator.ConnectServer(strComputer, _
strNameSpace, _
strUserName, _
strPassword)
ELSE
Set ConnectToWMI =GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\" &
strNameSpace)
End If
End Function
I'm wondering if any of you have ideas on how to ensure this would work on
host name or IP address. Is the only way going to be to resolve IP addresses
to host name first? I did see some scripts to do this that launch a command
prompt,output a file, read it in. Is there a more native way to do that in
VBscript or not?
This script is running as an HTA file.
.
- Prev by Date: Re: WSH5.7
- Next by Date: Re: Range Syntax for Script
- Previous by thread: WSH: STA or MTA?
- Next by thread: Re: How to get the output of the script(.vbs) executed on the remote
- Index(es):
Relevant Pages
|