I do not take credit for this script. Originally developed by Nicola Suter. Generate Intune ready PowerShell scripts to map file shares on Windows 10 clients. Without scripting effort. (Optional) Export your existing group policy configuration which contains the network drive (drive mapping)configuration to an xml file Upload the configuration or generate a new one