nicolonsky / IntuneDriveMapping

Generate PowerShell scripts to map network drives on Intune managed Windows 10 devices
https://intunedrivemapping.azurewebsites.net/
MIT License
153 stars 18 forks source link

Remove script from task scheduler #48

Open santeria94673 opened 1 year ago

santeria94673 commented 1 year ago

Hello,

Your script was lifesaving for me and worked as intended. I missused it though, and deployed a test script to some devices with assigned letters, let's say G and H. After seeing it working properly, i removed the script from intune and deployed the "correct" script with the same path, and letters I and M. Now it won't work at all because of their computers you have 2 tasks scheduled that conflict with the other. Is there a way to fix that other than manually remove them? Both of them had "remove stale drives" on! Thanks

BjornSteyaert commented 1 year ago

Unregister-ScheduledTask -TaskName "IntuneDriveMapping"