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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use wmi to compare current ip ipaddress to dhcp server ?

Status
Not open for further replies.

chouck

MIS
Jan 30, 2005
32
US
I was wondering how to do this. and am looking for any answer or suggestion someone may have to do this...

i want to use wmi to take the current ip address for the "active" adapter and compare it to the current dhcp server address and use it as a way for a client pc to process a script a logon.

for instance a person logging on in, if ip address is A and dhcp server is B then run script a. if ip address is Y and dhcp server is Z then run script b

The situation is that a lot of people in my company travel and we want to deploy apps but not deploy an app for a person across the WAN. One problem that I also have is some laptop pc's have BAD ip information that contains old dhcp information in the WMI. and when i try to run the locational script on the client it finds that bad information and tries to update across the WAN ?

Many Props to anyone who can understand and help :)
 
Hmm sounds like the real problem is the fact that you have users who's IP doesn't match rather than the fact that they travel.

Have you considered reducing your DHCP lease times?

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top