I just handled a small task, which I would like to automate through Active Directory. We’ve written a few Intranet applications which get used a lot here. Occasionally someone will have to go to the front desk and work on something there, while one of the receptionists are away. They’ll always call us to have us put a shortcut onto their desktop linking to these Intranet applications. It’s just a bit of a nuisance, and I’m sure that AD could be used to automate creating shortcuts on user’s desktops pointing to our Intranet applications. The only thing is, I don’t know how to do this, and being a small shop that we are, we don’t have a system administrator at this time.
So, how do we automate the creation of desktop shortcuts to websites, using AD in a Windows 2003 Server environment?
With Windows Server 2003, you don't have the luxury of the in-built Group Policy tools that give you a nice GUI to create and deploy shortcuts. You have to use VBScript to add the shortcuts.
Here's one I've used before -
Modify the script to add the shortcuts you need; the script above adds two shortcuts to the user's desktops, one for Google and one for Bing.
Once you've modified the script, on your server, fire up the Group Policy Management tool (Start -> Control Panel -> Administrative Tools -> Group Policy Management). You can either use an existing group policy, or create a new one just for this purpose. Unless you have heaps of Group Policy objects already, it is probably easier to create a new one.
Find the organisational unit (OU) or domain in the tree which contain the users/computers that you want the shortcuts to be added for, right-click and select "Create a new GPO in this domain and Link it here..." (paraphrased - I don't have a Win2003 server box in front of me at the moment).
Name that GPO, right-click and select Edit. Then go to User Configuration -> Policies -> Windows Settings -> Scripts -> Logon in the tree. Right-click on that, click Properties. From there, click the Show Files button, and copy the script file into there. Then back in the Logon Properties dialog, click Add, and enter in/browse to the script file. Click OK, close the Group Policy Management Editor window, and you should be right.
You can use the Group Policy Modelling tool to see where that GPO will be applied (if you've just followed the instructions here, it'll be applied to all users in the OU/domain you selected - you can use security groups or link it to other OUs to be more specific); or use the Group Policy Results tool to see where it has been applied.