Solved

XML based Mapped Drives script for logon scripts

Posted on 2010-08-13
2
254 Views
Last Modified: 2012-05-10
hi experts,

please refer to
http://www.visualbasicscript.com/XMLbased-Mapped-Drives-script-for-logon-scripts-m52191.aspx

basically, a couple of questions.
1) why do  i need to define a "Sub MapNetworkDrives"?
2) how do i incorporate this into a group policy?
0
Comment
Question by:kenny_klbn
2 Comments
 
LVL 19

Expert Comment

by:Bardobrave
ID: 33427362
The use of a separate sub is a matter of code cleaning.

About integrating it into group policy... I'm not very sure, I supose you can execute your script through calls to WSH from within your groups logon scripts
0
 
LVL 2

Accepted Solution

by:
Noo91 earned 500 total points
ID: 33427855
To apply this to the logon user, you have to create/re-use a group policy applied to those users.
In the group policy the setting is under :  "User Configuration", "Windows Settings", "Scripts (Logon/Logoff)", "Logon".

Best practice is to copy the file you want for the Logon script to the Windows clipboard, open the "Logon" setting in the Group Policy editor, press the "Show Files..." button, and paste the desired file in the dialog.

You can select the file and edit it in this dialog as well. This is easier than navigating in Windows Explorer to the folder where Group Policy Logon scripts are saved.

FOr the script itself logon, you can use wscript.exe or cscript.exe command line in GPO or in a batch.

Be carefull about :
  • GPO must be at least user's GPO
  • to use vbs, client must be at least w2000
  • to enforce security, you can "encode" your vbs in vbe format
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question