1. Help Center
  2. System Configuration

Pinning and unpinning Quick Access icons

To manipulate Quick access items, you can create a script named C:\ProgramData\Cameyo\StartupBefore.ps1 with the following code as an example:
$QuickAccess = New-Object -ComObject shell.application

$QuickAccess.Namespace("X:").Self.InvokeVerb("pintohome")

($QuickAccess.Namespace("shell:::{679f85cb-0220-4080-b29b-5540cc05aab6}").Items() | where {$_.Path -eq "$env:UserProfile\Desktop"}).InvokeVerb("unpinfromhome")

$keep = @("Outbound","DropboxSvc","GDrive")
($QuickAccess.Namespace("shell:::{679f85cb-0220-4080-b29b-5540cc05aab6}").Items() | where {$_.name -notin $keep}).InvokeVerb("unpinfromhome")