In Active Directory, you can map IP addresses to Client Sites.
...and then you can map Group Policy objects to sites.
Which is great and all, but I have a client that is growing rapidly, and they expect to have hundreds of sites in the next year or two.
Our naming standard is loosely based on LOCODE, so every site is 7 characters--for example 'USHQZOF'. That prefix is used to name every machine.
I'm getting sick of creating the same basic policy everywhere.
It literally follows the format:
- Map drive O to \\USHQZOFSRV01\officeshare
- Map primary printer to \\USHQZOFSRV01\copier
I'd really love it if I could create a policy where I can say:
- Map drive O to \\(site-name-from-ad)SRV01\officeshare
- Map primary printer to \\(site-name-from-ad)SRV01\copier
...and be done with it for good.
It appears you can use a ton of environment variables in your Group Policy Preferences (https://technet.microsoft.com/en-us/library/Cc753915.aspx), but I don't see anything for the Client Site Name.
Am I out of luck, or do I need to go 'old school' and call a cscript/vbscript file during login that looks it up and maps the appropriate items?
(edit: I know it can be done with a VBS file--I've done it before. It just seems...unclean...)