[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • 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.
0
prentcorp
Asked:
prentcorp
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.
0
 
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?
0
 
cgordon81Commented:
hmm yes i suppose you could but why not a simple batch script or kix script?
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

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

I know which I prefer :-)
0
 
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?
0
 
ARK-DSCommented:
Hi,

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).

Regards,

Arun.
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

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