Jump to content
Welcome to our new Citrix community!
  • 0

OneDrive Script Mapper Issue on Non Persistent VDI Machines.

Vrajesh Subrahari1709160262


I know this Might be a slight irrelevant question but if any of you have experience in this issue, please help me in fixing this issue. We are using Customized One Drive Mapper Script to map OneDrive as a Drive in end user session. In order for the script to work , We need to enable WEBDAV Client feature on the server . This script works perfecting in our Manually installed persistent VDA machine but it doesnt work and throws an error from VDA machine which is out of Applayering. I have provided error message below here and please let me know if you have faced similar kind of issue and how it was fixed?


Script Source -->https://www.lieben.nu/liebensraum/onedrivemapper/



Citrix 7.15 LTSR

Windows 2016

WEM and UPM enabled.

WEBDAV Client feature enabled on Win2016



Error message


INFO | Login attempt using native method at tenant XXXXXXXXXXXXXXXXX
INFO | Contacting Federation server and attempting Single SignOn...
INFO | Detected fmHF redirect, following
INFO | MFA check result: No MFA method detected
INFO | Detected a id_token redirect to Office.com, following...
INFO | MFA check result: No MFA method detected
INFO | Login succeeded
INFO | Retrieving Onedrive for Business cookie step 1...
INFO | Retrieving Sharepoint cookie step 2 at https://XXXXXXXXXXXXXX-my.sharepoint.com/_forms/default.aspx
INFO | username detected, your onedrive should be at \\XXXXXXXXXXXXXXXXX-my.sharepoint.com@SSL\DavWWWRoot\personal\XXXXXXXXXXXXXX
INFO | Onedrive cookie generated
INFO | Setting FedAuth cookie for https://XXXXXXXXXX-my.sharepoint.com....
INFO | Setting rtFA cookie for https://sharepoint.com....
INFO | Setting rtFA cookie for https://sharepoint.com....
INFO | Mapping target: \\XXXXXXXXXXXXXXXXX@SSL\DavWWWRoot\personal\XXXXXXXXXXXXXXX\Documents
ERROR | ERROR: detected string error 67 in return code of net use command, this usually means the WebClient isn't running
ERROR | failed to contact o: after mapping it to \\XXXXXXXXXXXXXXXXXXXXx-my.sharepoint.com@SSL\DavWWWRoot\personal\sXXXXXXXXXXXXXXXXXX\Documents, check if the URL is valid. Error: 
The network name cannot be found.

 System error 67 has occurred. 
The network name cannot be found.

WARNING | restartExplorer is set to False, if you're redirecting folders they may not show up
INFO | OnedriveMapper has finished running

Link to comment

1 answer to this question

Recommended Posts

Issue is fixed .

Network Connection–>Advanced–>Advanced setting–>Web Client Network(Which was missing after Applayering). May be Applayering didn’t capture this change in OS layer.


Created a GPO and updated this Registry

HKLM->System->CurrentControlSet->Control->NetworkProvider->Order-> ProviderOrder

Value : PnSson,PICAClientNetwork,RDPNP,LanmanWorkstation,webclient .

Link to comment


This topic is now archived and is closed to further replies.

  • Create New...