| |
zagadka
Posts: 4
Score: 0
Joined: 2/14/2008
Status: offline
|
I'm trying to make a script to run in a group policy on our Windows 2003 server that will create a shortcut to a company specific web application (the actual url goes to a .dll) onto their desktop. Here is the script: set WshShell = WScript.CreateObject("WScript.Shell") strDesktop = WshShell.SpecialFolders("Desktop") set oUrlLink = WshShell.CreateShortcut(strDesktop & "\Ultra Control.url") oUrlLink.TargetPath = "http://ultra02/controlES/CtrlWebISAPI.dll" oUrlLink.Save This works locally, but does not work when deployed as a GP. I have also tried this script which I found on the internet. Set WshShell = CreateObject("WScript.Shell") set objFSO = CreateObject("Scripting.FileSystemObject") strDesktop = WshShell.SpecialFolders("Desktop") IF Not objFSO.FileExists(strDesktop & "\Ultra Control.url") Then set oShellLink = WshShell.CreateShortcut(strDesktop & "\Ultra Control.url") oShellLink.TargetPath = "http://ultra02/controlES/CtrlWebISAPI.dll" oShellLink.WindowStyle = 1 oShellLink.IconLocation = "url.dll, 0" oShellLink.Description = "Ultra Control" oShellLink.WorkingDirectory = "http://ultra02/controlES/CtrlWebISAPI.dll" oShellLink.Save set oShellLink = NOTHING END IF Set WshShell = NOTHING Set objFSO = Nothing Does exactly the same thing though; it works locally but not remotely. is there anything wrong with the script or is it due to the execution via GP?
|
|