Re: RPC server not available when query XP machine by IP address

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



"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.


.



Relevant Pages

  • RE: ICS clients cannot connect
    ... I've got this from the ICS host: ... I turned off ICS host and then enabled it. ... the client and entered "ipconfig /release". ... goto one of the client machines and do the same, ...
    (microsoft.public.windowsxp.general)
  • Re: More Peer 2 Peer Troubles
    ... Only the Host has been connected to the internet, ... all machines, not just the host. ... Have you enabled ICS on the host's Bigpond connection? ...
    (microsoft.public.windowsxp.network_web)
  • Re: how to configure host headers for 3 IIS machines ?
    ... If you only have one public IP, this will not work with IIS only. ... Host multiple websites on one machine, and distinguish them with a host ... Using host headers, without including the external IP and another port is ... > Im looking to run three IIS machines on the same public IP. ...
    (microsoft.public.inetserver.iis)
  • Re: I cant connect via ssh
    ... ssh: connect to host xx.xx.xx.xx port 22: No route to host ... Ping the host and see if it is there. ... The network I'm using is in a research institute, ... and the machines aren't directly ...
    (Fedora)
  • Re: smbfs support broken in FC7?
    ... FAQs read, searches done, not interested in CIFS ... since the server doesn't speak it. ... which I guess means "host wants to talk SMB not CIFS" in reality. ... the new machines with FC7 send packets to the right host, ...
    (Fedora)