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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Push url shorcut in SCCM

Status
Not open for further replies.

ATCal

MIS
Apr 1, 2000
308
0
0
US
Hi,

Need to push a desktop shorcut in conjunction with an application push. Packaged a batch file that deploys the apps, but not the shorcut (calls vbscript). If I run it outside of Config Mgr, it works fine.

Much appreciated as this is driving me nuts.

Thanks.

Al


 
Use something like this.

Const OverwriteExisting = TRUE

Set objWshShell = WScript.CreateObject("WScript.Shell")
UserName = objWshShell.Environment("PROCESS")("UserName")

Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\server\file_location\shortcut.url" , "C:\users\" & username & "\Desktop\", OverwriteExisting

I have used that successfully in the past.

Simon

The real world is not about exam scores, it's about ability.

 
Thanks Simon.

Not an expert, so how would you "package" this?



Al


 
Open notepad, paste it in, save it as a vbs file, create a package, create a collection for it and then create an advertisement.


Simon

The real world is not about exam scores, it's about ability.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top