Hi,
Did you check Group Policy Preferences > It should help in removing items
group-policy-shortcut-extensions-ie11
==
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I would like to know how we could remove a single start menu shortcut for ex: excel or adobe using Powershell script for all users.
I want to deploy this through Group Policy or configuration policy using Azure. How can I do it?
Hi,
Did you check Group Policy Preferences > It should help in removing items
group-policy-shortcut-extensions-ie11
==
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
Hello there,
I found the below script which helps in removing invalid shortcuts for users.
Function Remove-InvalidStartMenuItem {
$WshShell = New-Object -comObject WScript.Shell
$Files = Get-ChildItem -Path "C:\Users\$env:USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs" -Filter *.lnk -Recurse
foreach ($File in $Files) {
$FilePath = $File.FullName
$Shortcut = $WshShell.CreateShortcut($FilePath)
$Target = $Shortcut.TargetPath
if (Test-Path -Path $Target) {
Write-Output "Valid: $($File.BaseName)"
} else {
Write-Output "Invalid: $($File.BaseName) removed."
try {
Remove-Item -Path $FilePath
Write-Output "Removed: $($File.BaseName) removed."
} catch {
Write-Output "ERROR: $($File.BaseName) not removed."
}
}
}
}
The below thread discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue.
--If the reply is helpful, please Upvote and Accept it as an answer–