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

Login script by IP Address

Status
Not open for further replies.

vmaxdlx

Technical User
Jan 13, 2005
22
US
Is there a way to have a login script look at the IP address of a WS and run differnt scripts?

Like have subnet 192.168.1.x run A
and 192.168.2.x run B

Thanks
:eek:)
 
I am sure there is a way to do this. You may want to post question in the Programmers Fourm. I'm sure some will post some type of VBScript that can do the job for you.
 
Why not separate the subnets into Organizational Units (OU's) and set up separate group policy objects for each?

Another thing you can do is set up one master script using VBscript, and have it check the workstation's IP address, and perform actions as necessary. If you choose this method I'd do what WhoKilledKenny said and post it in the VBscript programming forum.

The third option is to put each subnet into a security group, and have VBScript check for group membership and perfom actions as you prescribe. If you choose this method let me know and I'll help you. My login script checks for group memberships to map network drives, though you could do whatever you want based on group membership, not just map drives.

Good luck.
 
Not a problem. I have sample code in my FAQ: faq329-5908

You should also look at another FAQ of mine: faq329-5798

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top