Shortcut script works on XP but not 2000

(imported topic written by thuy.cortes91)

On both OS I can double click on the script and it creates the shortcut, but when I deploy through BES it only works on WinXP.

prefetch RunAsCurrentUser.exe sha1:5512ef51a98dff1aa910a8189a0361c161fa703f size:212992 http://software.bigfix.com/download/bes/util/RunAsCurrentUser-2.0.2.exe

createfile until ENDFILE

set WshShell = WScript.CreateObject(“WScript.Shell”)

strDesktop = WshShell.SpecialFolders(“AllUsersDesktop”)

set oUrlLink = WshShell.CreateShortcut(strDesktop & “\Synapsys - Sign-On.url”)

oUrlLink.TargetPath = “http://crm-sql/SynapsysDesktop/login.aspx

oUrlLink.Save

ENDFILE

copy __createfile AddSynapsys.vbs

waithidden __Download\RunAsCurrentUser.exe --w “{pathname of system folder & “\cscript.exe”}” AddSynapsys.vbs

*User is logged on and it still doesn’t work on Windows 2000 computers… does it have anything to do the the RunAsCurrentUser.exe

(imported comment written by thuy.cortes91)

I think the problem is that the script only works if someone with local admin rights is logged in. How would I run as a local admin instead of current user?

(imported comment written by MattBoyd)

If you take out RunAsCurrentUser.exe, it should run under the SYSTEM context:

waithidden 
"{pathname of system folder & "\cscript.exe
"}" AddSynapsys.vbs

(imported comment written by thuy.cortes91)

Thank you so much!!!