I am working on a rollout of customized start menus for a large number of end users and PC's. Due to the complexity of the roles, creating and importing XML is not ideal. I have not found any resource on adding pinning tiles inside of menu groups or folders inside of those. I am attempting to modify this script to add inside of an existing menu group. Any ideas on where to find the insert to folder instruction?
function Pin-App { param(
[string]$appname,
[switch]$unpin
)
try{
if ($unpin.IsPresent){
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq $appname}).Verbs() | ?{$_.Name.replace('&','') -match 'From "Start" UnPin|Unpin from start'} | %{$_.DoIt()}
return "App '$appname' unpinned from taskbar"
}else{
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq $appname}).Verbs() | ?{$_.Name.replace('&','') -match 'To "Start" Pin|Pin to Start'} | %{$_.DoIt()}
return "App '$appname' pinned to Start"
}
}catch{
Write-Error "Error Pinning/Unpinning App! (App-Name correct?)"
}
}
#Example of a pinned app
Pin-App "Calculator" -pin
This works but only to pin an unpin indiscriminately. For my project I need to find a way to pin to a group or folder inside of a group. Has anyone encountered this? My advanced googling came up empty. Additionally I am aware that Microsoft is not keen on allowing this to prevent abuse. I am not interested in a 3rd party start menu. I am only looking for a direction to adding the folder and group structure in real time for a very large managed group of computers running Windows 10 Pro 1703.