Forum Discussion
Zrace
Oct 11, 2022Copper Contributor
Intune desktop script
Hey everyone running into a bit of an issue here, I have made and installed a desktop Icon via an Intune script to everyone's computer using NielsKok Techs website. All but a handful of them are w...
Moe_Kinani
Oct 12, 2022Bronze Contributor
Hi Zrace
Did you check a PC with the error not have it? Are you using file or folder exists for detection method? You may need to change it script and then upload below:
Moe
$shortcutName = "Intranet Shortcut"
if (Test-Path -Path "$Env:Public\Desktop\$shortcutName.lnk"){
Write-Output "0"