?
Solved

XML based Mapped Drives script for logon scripts

Posted on 2010-08-13
2
Medium Priority
?
262 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 2000 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

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.

Question has a verified solution.

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

Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

862 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