SCCM VBScript to add shortcut files to users desktop profile OR favorites

How to add link URL or shortcut file to users desktop profile ? Easiest way to accomplish this task is with GPO(Group policy Object).

If you want to accomplish this task using Configuration manager(SCCM),you can create simple VB script that does this job.

 

Option Explicit
dim path
path=CreateObject("WScript.Shell").ExpandEnvironmentStrings("%UserProfile%\desktop")
dim objFSO
set objFSO=CreateObject("Scripting.FileSystemObject")

If objFSO.FileExists(path & ("\eskonr.url")) = False Then

objFSO.CopyFile "\\servername\folder name\eskonr.url", path & "\"

end if

Full Details http://social.technet.microsoft.com/Forums/en-US/configmgrswdist/thread/ba1647a1-0385-48a9-9e83-1fc5daa00976/#e9d4f330-500e-45db-b3e1-5e3954f50ea4

Post Comment