?
Solved

XML based Mapped Drives script for logon scripts

Posted on 2010-08-13
2
Medium Priority
?
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

801 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