Hi
Can someone Help me script the below (Have very limited Powershell knowledge), basically I want to use a GPO to run script at login to pin icons to win8 start menu, found the below script
http://gallery.technet.microsoft.com/scriptcenter/Script-to-pin-items-to-51be533c
Detect Compliance Script:
Need some help with this one, im guessing somehow detect non existance of file EXCEL.EXE in this location: C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Microsoft Excel and then If this doesnt exist run the below remediation:
Remediation Script:
import-module C:\Scripts\PS\PinItemToStartMenu\PinItemToStartMenu.ps1 Set-OSCPin -Path "C:\Program Files\Microsoft Office\Office15\EXCEL.EXE" Rename-Item "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\EXCEL.lnk" "Microsoft Excel 2013.lnk"Can someone help with the Remediation script so it can handle multiple file paths in a string\txt file so it doesnt have the above repeated each line for each icon to be pinned? As will want to do this for word, excel, powerpoint etc