Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get network address

Status
Not open for further replies.

PHay

IS-IT--Management
Aug 12, 2002
6
AU
Hi

We are in the process of migrating from Novell to Microsoft Windows 2003. I have some scripts to replace the Zenworks components for pushing out icons however I have one group of users which are providing me with a dilema.

They are roaming users who move around between 2 of our sites. They conenct to the local servers volumes at each site based on what IP address they have i.e if they are logging into a PC at one site with that particular AIP Address numbering their drives are mapped to the local servers volumes and a differnet set of volumes if they login at the other site

In NetWare I use the following in the NetWare login script: -

IF NETWORK_ADDRESS > [HEX NUMBER OF IPADDRESS]AND NETWORK_ADDRESS < "[HEX NUMBER OF IPADDRESS]"
MAP INS S1:=\\[SITESERVER]\SYS\PUBLIC
MAP ROOT P:=\\[SITESERVER]\APPS
...

Is there an equivalent in VBScript I can use that I can apply to an AD Org Unit as a Group Policy for these users to push the correct icons to them??

Thanks in advance

Paul Hay
 
You may try this:
Set myWMI = GetObject("winmgmts:\\.\root\cimv2")
Set myobj = myWMI.ExecQuery("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled = True")
For Each itm in myobj
MsgBox itm.IPAddress(0)
Next

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
You may want to check out my FAQ faq329-5908 on this subject which I think will give you some other ideas. It is a lot easier for you to grab the logon server information to determine where they are physically located and take action from there.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top