• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

Map Drives by AD Site with VBS?

is there anyway to do this?  Im beneath a novice at VB coding.  My company has a need to map drives based on the subnet (site) the computer they are logging into resides on so we can use the same drive letters in multiple sites but to different servers.
2 Solutions
Glen KnightCommented:
If you already have the VB script then the way to do this would be to assign a script to a group policy that is then applied at Site Level, therefor any user logging on at that site will have the script applied.
Glen KnightCommented:
See here: http://technet.microsoft.com/en-us/library/cc739283(WS.10).aspx

this if course relies on your Active Directory Sites and Services being configured?
hmm yes i suppose you could but why not a simple batch script or kix script?
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Glen KnightCommented:
Centrally managed group policies stored across the entire domain against kix or login scripts?

I know which I prefer :-)
prentcorpAuthor Commented:
Would the user settings for a script in a GPO in another site applied to a computer object work for that user?  

I was hoping to keep it in a batch file though in the AD user profile tab for "logon script".  Is there a 'IF insite' kinda vbs thing?

Lets say you have four subnets and you have defined four sites to those subnest respectively in Active Directory Sites and Services console (Dssite.msc).
You just have to write four different batch files (scripts) and you can apply them via GPO on all four sites respectively.
You just have to open dssite.msc, right click the site and go to its properties, go to group policy tab and apply a startup/logon script policy and place the relevent batch file in that GPO 's scripts location (by clicking show files button).


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now