Required Files: SharedScriptRequiredFile 24
This script is useful for new setups / onboarding. It will locate Excel.exe, Outlook.exe, and Winword.exe
It will then ‘pin’ the shortcuts to the Taskbar
This uses the free syspin.exe utility from: http://www.technosys.net/products/utils/pintotaskbar
<# This script is useful for new setups / onboarding. It will locate Excel.exe, Outlook.exe, and Winword.exe It will then 'pin' the shortcuts to the Taskbar * This is currently only for 32bit MS Office #> # Detect 32/64 bit windows if ([System.IntPtr]::Size -eq 4) { $winBit = "" } else { $winBit = " (x86)" } # Get Path for Excel, Word, Outlook $myfile = Get-ChildItem -Path "C:\Program Files$winBit\Microsoft Office" -Include excel.exe -File -Recurse -ErrorAction SilentlyContinue $Excel = $myfile.DirectoryName + "\" + $myfile.Name $myfile = Get-ChildItem -Path "C:\Program Files$winBit\Microsoft Office" -Include winword.exe -File -Recurse -ErrorAction SilentlyContinue $Word = $myfile.DirectoryName + "\" + $myfile.Name $myfile = Get-ChildItem -Path "C:\Program Files$winBit\Microsoft Office" -Include Outlook.exe -File -Recurse -ErrorAction SilentlyContinue $Outlook = $myfile.DirectoryName + "\" + $myfile.Name # Pin Icons c:\temp\syspin.exe $Excel c:"Pin to Taskbar" c:\temp\syspin.exe $Word c:"Pin to Taskbar" c:\temp\syspin.exe $Outlook c:"Pin to Taskbar" |