Solved

XML based Mapped Drives script for logon scripts

Posted on 2010-08-13
2
252 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

810 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