User Profile Login Script section in Active Directory?
Posted on 2005-05-02
This is actually a two piece question. One is it possible to run more than one batch file/script in the User Profile: Login Script in Active Directory, or am I limited to one script per user (in the case I already have a script set in the User Profile: Login Script)?
Second is it possible to assign a script to a Security Group? Reason being is I have several OUs for separate departments (which I have scripts set in the GP for each department, mostly mapped drives) but have a Security Groups for Committees/Groups that span across several of these departments. What I would like to do is set up a script to map shortcuts to shared folders for sharing their committee/group data. Any help is welcome.
Last thing, I've read in order to right a script to set up a shortcut you actually have to create the shortcut first , then copy that shortcut to the location you want on their computer? Just a quick example of what I would like to do:
Server folder share path:
D:\Committee Folders\Management Team (Managment Team is shared folder)
What I would like to to create a shortcut to Management Team and place on the members desktop.
So what I would do is create shared folder to hold shorcuts that way the shortcuts aren't located in the shared folder:
D:\Committe Folder Shortcuts\Management Team.lnk (shortcut pointing to the Management Team folder)
;Delete the mapped drive
net use "T:" /d
;Setup a temp mapped drive for shortcut copy
net use "T:" \\Server\Committtee Folder Shortcuts
;Copy the shortcut if it isn't there
If Not Exist("%Userprofile%\Desktop\Management Team.lnk")
copy "T:\\Server\Committee Folder Shortcuts\Management Team.lnk" "%Userprofile%\Desktop"
;Clean out mapped drive thats not needed
net use "T:" /d
Please let me know if my logic looks right or if anything looks wrong.