OneDriveMapper v4.02 fails with error 224 (migrating from 3.21)
We tried to migrate from 3.21 to the current version of OneDriveMapper. SSO is configured via pass through authentication and works fine. Also the zones are the same as before - So I can't understand why 3.21 works and 4.02 not.
The script runs on a Windows Server 2016 configured via GPO to run on logon.
Output from the script:
08/05/2020 08:31:08 | INFO | -----08/05/2020 08:31:08 OneDriveMapper v4.02 - werner-h on ULVADTST001 starting-----
08/05/2020 08:31:08 | INFO | Script elevation level: User
08/05/2020 08:31:08 | INFO | Set TLS protocol version to prefer v1.2
08/05/2020 08:31:08 | INFO | You are werner-h running on Windows 10 with IE 11 and Powershell version 5
08/05/2020 08:31:16 | INFO | NOTICE: IE Security zones ambiguous - checking both computer and user
08/05/2020 08:31:16 | INFO | NOTICE: tenant-my.sharepoint.com found in IE Trusted Sites on user level
08/05/2020 08:31:16 | INFO | NOTICE: tenant.sharepoint.com found in IE Trusted Sites on user level
08/05/2020 08:31:16 | WARNING | HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\DisableFirstRunCustomize not found or not set to 1 registry, if script hangs this may be due to the First Run popup in IE, checking at user level...
08/05/2020 08:31:16 | INFO | IE Automatic Proxy Detection is not yet disabled, attempting to disable...
08/05/2020 08:31:16 | INFO | IE Automatic Proxy Detection disabled
08/05/2020 08:31:16 | WARNING | Maximum file upload size is set to 48 MB
08/05/2020 08:31:20 | INFO | autoKillIE enabled, stopping IE processes
08/05/2020 08:31:20 | INFO | Stopped process with handle 6200
08/05/2020 08:31:20 | INFO | Stopped process with handle 8552
08/05/2020 08:31:20 | INFO | autoProtectedMode is set to True, disabling ProtectedMode temporarily
08/05/2020 08:31:20 | INFO | Zone 0 was set to 0, setting it to 3
08/05/2020 08:31:20 | INFO | Zone 1 was set to 3, setting it to 3
08/05/2020 08:31:20 | INFO | Zone 2 was set to 0, setting it to 3
08/05/2020 08:31:20 | INFO | Zone 3 was set to 0, setting it to 3
08/05/2020 08:31:20 | INFO | Zone 4 was set to 0, setting it to 3
08/05/2020 08:31:26 | INFO | Detected running explorer process
08/05/2020 08:31:27 | INFO | Initiating Sharepoint session with: https://tenant.sharepoint.com/sites/example
08/05/2020 08:31:27 | INFO | Current location: https://login.microsoftonline.com/login.srf?msafed=0
08/05/2020 08:31:30 | INFO | Encountered a dialog, showing dialog to user
08/05/2020 08:31:35 | INFO | User completed dialog
08/05/2020 08:31:38 | INFO | waited 1 seconds to load https://tenant.sharepoint.com/sites/example, currently at https://tenant.sharepoint.com/sites/example
08/05/2020 08:31:39 | INFO | Current location: https://tenant.sharepoint.com/sites/example
08/05/2020 08:31:39 | INFO | SpO cookie generated
08/05/2020 08:31:39 | INFO | Mapping target: \\tenant.sharepoint.com@SSL\DavWWWRoot\sites\example
08/05/2020 08:31:40 | ERROR | failed to contact X: after mapping it to \\tenant.sharepoint.com@SSL\DavWWWRoot\sites\example, check if the URL is valid. Error:
Der Zugriff wurde verweigert. Bevor Sie Dateien in diesem Speicherort öffnen, müssen Sie die Website zuerst der Liste vertrauenswürdiger Sites hinzufügen. Dann müssen Sie auf die Website zugreifen und die Option zur automatischen Anmeldung wählen.
Systemfehler 224 aufgetreten.
Der Zugriff wurde verweigert. Bevor Sie Dateien in diesem Speicherort öffnen, müssen Sie die Website zuerst der Liste vertrauenswürdiger Sites hinzufügen. Dann müssen Sie auf die Website zugreifen und die Option zur automatischen Anmeldung wählen.
08/05/2020 08:31:42 | INFO | autoProtectedMode is set to True, reverting to old settings
08/05/2020 08:31:42 | INFO | Setting zone 0 back to 0
08/05/2020 08:31:42 | INFO | Setting zone 1 back to 3
08/05/2020 08:31:42 | INFO | Setting zone 2 back to 0
08/05/2020 08:31:42 | INFO | Setting zone 3 back to 0
08/05/2020 08:31:42 | INFO | Setting zone 4 back to 0
08/05/2020 08:31:42 | INFO | OnedriveMapper has finished running
Edited by Henning Werner