

#if not already present in ALl Users desktop folder Then recreate the shortcut on users desktop #Check for shortcuts on user Desktop and in All Users desktop, if program is available and the shortcut isn't. "Word" = "C:\Program Files\Microsoft Office\root\Office16\WINWORD.exe" "TeamViewer" = "C:\Program Files\TeamViewer\TeamViewer.exe" "Remote Desktop" = "C:\Program Files\Remote Desktop\msrdcw.exe" "Outlook" = "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE" "OneNote" = "C:\Program Files\Microsoft Office\root\Office16\ONENOTE.EXE" "Microsoft Edge" = "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" "Google Chrome" = "C:\Program Files\Google\Chrome\Application\chrome.exe" "Firefox" = "C:\Program Files\Mozilla Firefox\firefox.exe" "Excel" = "C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE"

Create_Common_Desktop_Shortcuts $programs = Acrobat" = "C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe" Note: Format the Create_Common_StartMenu_Shortcuts.ps1 correctly! The first value is the name of the shortcut, the second one is the path, and the third one is either None (No subfolder) or the subfolder name, which can include multiple levels like the Cisco An圜onnect client shortcut. The scriptsīelow are the scripts which were written in a short period, but they work 😉 Adjust the script to include or exclude more programs if needed, and the Desktop script has fewer shortcuts than the Start Menu script because I don’t like that many icons on my Desktop 😀 Specified folder Cisco\Cisco An圜onnect Secure Mobility Client doesn't exist for the Cisco An圜onnect Secure Mobility Client shortcut, creating now.Ĭreating shortcut for Cisco An圜onnect Secure Mobility Client with path C:\Program Files (x86)\Cisco\Cisco An圜onnect Secure Mobility Client\vpnui.exe in folder Cisco\Cisco An圜onnect Secure Mobility Client. Shortcut for Firefox Private Browsing not found with path C:\Program Files\Mozilla Firefox\private_browsing.exe, creating it now. Shortcut for Outlook not found with path C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE, creating it now. Shortcut for Firefox not found with path C:\Program Files\Mozilla Firefox\firefox.exe, creating it now. The output will look like this for the Start Menu script as an example: (I removed the Firefox, Outlook, and Cisco shortcuts in this case) Specified folder Cisco Webex Meetings doesn't exist for the Cisco Webex Meetings shortcut, creating now.Ĭreating shortcut for Cisco Webex Meetings with path C:\Program Files (x86)\Webex\Webex\Applications\ptoneclk.exe in folder Cisco Webex Meetings. You can save the scripts to c:\temp and run them as Administrator or use it in an Intune script as System without any parameters for the Start Menu script or as User for the Desktop script. It will not create a Desktop shortcut if the icon is already on the All Users desktop. (It will detect the normal desktop folder or the one in OneDrive is Known Folder Move is used) If not, it will create a shortcut for it. It checks to see if the program is available in the specified path and if the shortcut is present in C:\ProgramData\Microsoft\Windows\Start Menu\Programs (Or subfolders) or the user’s Desktop folder. The script has a list of program names and their locations in a variable.
