Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PS: (Win8 Pinning) Detect & Pin Application to metro

$
0
0

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







Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>