Hi all,

I would like to write a login script for our Finance department. Half
of the department are located at site1 and half at site2.

I'd like an IF statement in the script that would state:

IF users site = site1 then map printer1
ELSE map printer2

The sites are defined in AD.

I know that I could create a separate OU and a different login script,
but if this is possible I'd like to do it this way.

Can anyone hlp at all?

Thanks,

Gay.

Re: AD sites by JTW

JTW
Wed Apr 12 09:41:06 CDT 2006

Run on the local computer, the below script will return the AD Site
name. You can make a branch based on that:

Set objADSysInfo = CreateObject("ADSystemInfo")
WScript.Echo objADSysInfo.SiteName

Re: AD sites by Gary

Gary
Thu Apr 13 02:55:31 CDT 2006

Thank you very much!