So here's my situation: right now I have an OU with 36 (yes, 36) GPOs.
These GPOS are identical, from what I can see, except for the login script
they call, to map drive letters and printers. Each GPO is linked to a
specific AD group.
Obviously, this is not an ideal situation ... :-)
Anyway, I want to make 1 GPO, that calls 1 login script (written in
VBScript). This login script would have a case statement, that would check
membership in any of these 36 groups, and map drives and printers
accordingly. But I'm wondering about how long such a script will take to
execute, especially since all these users are at remote sites (connected
via frame relay links, for the most part). Obviously I don't want the
login process to have to wait forever, while it processes a large login
script. The script itself isn't complicated, just long, since it's a case
statement on group membership.
Anyone have any ideas on how to estimate this? Is anyone doing a login
script that has anything like a 36-way case statement? The way I have it
now, I have a FOR loop that cycles through each AD group a user belongs
to. So that CASE statement would be evaluated for each group membership of
a user. And some of my users have a dozen group memberships .... And since
each user will be a member of only a single SITExx group, (so a user will
never be a member of both SITE01 and SITE23, for exanple), the case
statement will only *execute* drive mappings once (for SITE01), but be
*evaluated* multiple times (for all other AD groups that a users belongs
to, besides SITE01).
Thanks for any pointers.
snippet:
-----------------------------
Set WSHNetwork = CreateObject("WScript.Network")
'Automatically grab the user's domain name
DomainString = Wshnetwork.UserDomain
'Grab the user name
UserString = WSHNetwork.UserName
'Bind to the user object to get user name and check for group memberships
later
Set UserObj = GetObject("WinNT://" & DomainString & "/" & UserString)
For Each GroupObj In UserObj.Groups
Case "SITE01"
WSHNetwork.MapNetworkDrive "H:", "\\SAN\SITE01-SHARE",True
End Select
Next
-----------------------------
--
Michael Leone
Network Administrator, ISM
Philadelphia Housing Authority
2500 Jackson St
Philadelphia, PA 19145
Tel: 215-684-4180
Cell: 215-252-0143
<mailto:[EMAIL PROTECTED]>
~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~