cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
shin1018
Level 3

How to get the ip address of target machine without script???

I need an ip address to insert it as a command line argument.

How can i do this without scripts?
Labels (1)
0 Kudos
(1) Reply
Cary_R
Level 11

Hi There,

It is not possible to do this without script.

While currently bound IP Addresses are stored in the registry, it's not in a static location; it will have a GUID for each adapter that will differ from machine to machine:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces

So you are best off authoring some script to query WMI, or otherwise work out the bound IP address of the primary network adapter.
0 Kudos