Slackbot
01/16/2024, 10:24 AMjvitech
01/16/2024, 11:13 AMRyan Swanepoel
01/16/2024, 11:13 AMRyan Swanepoel
01/16/2024, 1:14 PMRay Davis
01/16/2024, 2:29 PM$targetFolder = "C:\Users\$env:username\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"
$edgeShortcut = "Microsoft Edge.lnk"
$edgeShortcutPath = Join-Path $targetFolder $edgeShortcut
if (Test-Path $edgeShortcutPath) {
Remove-Item $edgeShortcutPath -Force
Write-Host "Microsoft Edge removed from pinned icons."
} else {
Write-Host "Microsoft Edge shortcut not found in the specified location."
}Ray Davis
01/16/2024, 2:29 PMRay Davis
01/16/2024, 2:41 PM$edgeShortcutNames = @("Microsoft Edge.lnk", "Microsoft Edge.lnk - Shortcut") # Add any potential variations
$startMenuPath = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
foreach ($shortcutName in $edgeShortcutNames) {
$edgeShortcutPath = Join-Path $startMenuPath $shortcutName
if (Test-Path $edgeShortcutPath) {
Remove-Item $edgeShortcutPath -Force
Write-Host "Microsoft Edge shortcut removed from the Start Menu."
break # Exit the loop once a matching shortcut is found and removed
}
}
if (!(Test-Path $edgeShortcutPath)) {
Write-Host "Microsoft Edge shortcut not found in the Start Menu."jvitech
01/16/2024, 6:45 PMOwen Reynolds
01/17/2024, 2:32 PMRay Davis
01/17/2024, 2:33 PMstormlight
01/17/2024, 5:09 PMRay Davis
01/17/2024, 6:12 PMJack Smith
01/17/2024, 9:38 PMRyan Swanepoel
01/23/2024, 12:50 PM