Remove Shortcuts From Desktop
If you want to without deleting:
$desktop = [Environment]::GetFolderPath("Desktop") Get-ChildItem $desktop -Filter *.lnk | Where-Object $_.Name -like "*Chrome*" | Remove-Item -Force remove shortcuts from desktop
To remove (e.g., containing "Chrome"):
On macOS, desktop shortcuts are usually aliases. Deleting them leaves the original app/file intact. If you want to without deleting: $desktop =