Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Shortcut on multiple workstations

Status
Not open for further replies.
May 26, 2004
6
US
I'm trying to convert this script so it will run against a list of workstation. I've tried a few things, but my vbscript skills need a lot of work. Can anyone help?

Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFld = objShell.SpecialFolders("AllusersDesktop")
Set objURLShortcut = objShell.CreateShortcut(strDesktopFld & "\Test.url")
objURLShortcut.TargetPath = "objURLShortcut.Save
 
One way is toet psexec.exe from Sysinternals.com and use it to run against a list of workstations.
 
If you were going to run it remotely rather than having it run as part of a login script that runs on the workstation, you might be better off creating the shortcut and then copying the shortcut file to all of the workstations. This might be easier to achieve than to script the remote creation of the shortcut.

--------------------------------------
"Insert funny comment in here!"
--------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top