Browse Source

Add files via upload

pull/105/head
Dmitry Nefedov 4 years ago
committed by GitHub
parent
commit
a2ac9aea56
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Sophia/PowerShell 7.x/Sophia.psm1

1
Sophia/PowerShell 7.x/Sophia.psm1

@ -2599,6 +2599,7 @@ function UnpinTaskbarEdgeStore
$LocalizedString = [WinAPI.GetStr]::GetString(5387) $LocalizedString = [WinAPI.GetStr]::GetString(5387)
$Apps = (New-Object -ComObject Shell.Application).NameSpace("shell:::{4234d49b-0245-4df3-b780-3893943456e1}").Items() $Apps = (New-Object -ComObject Shell.Application).NameSpace("shell:::{4234d49b-0245-4df3-b780-3893943456e1}").Items()
$Apps | Where-Object -FilterScript {$_.Path -eq "MSEdge"} | ForEach-Object -Process {$_.Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()}}
$Apps | Where-Object -FilterScript {$_.Name -eq "Microsoft Store"} | ForEach-Object -Process {$_.Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()}} $Apps | Where-Object -FilterScript {$_.Name -eq "Microsoft Store"} | ForEach-Object -Process {$_.Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()}}
} }

Loading…
Cancel
Save