nicolonsky / IntuneDriveMapping

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

Send out new network paths #26

Closed clahs closed 3 years ago

clahs commented 3 years ago

First, thanks for the script :)

We have the script running already, and now want to send out an update, with new network paths. But when I create a new script and run on the machine as a system account, Does the file C: \ProgramData\intune-drive-mapping-generator\DriveMapping.ps1 being restored to the old paths, even if I delete the file.

Is there a cache or the like that needs to be deleted first before i run the new script?

clahs commented 3 years ago

I found out that my script is calling the wrong DriveMapping.ps1. Sry.