Thank you so much for such a powerful script! This script rocks!
I have a question please: the script generates the errors below for some users, other users are ok, all are using the same environment.
From the log I understand that it cannot set cookies? I tried to access user’s folder and it is accessible and there are already some cookies from different websites.
Could you please advise what the error is and how to resolve it?
Also, is it possible to set a custom cookie path in the script, for example on a share not in common cookies folder? Thanks a million!
01/05/2018 14:10:07 | ERROR | ERROR: Failed to set test cookie, script will fail: Exception calling “SetWinINETCookieString” with “3” argument(s): “Exception setting cookie: Win32 Error code=-1906441218”
01/05/2018 14:10:22 | ERROR | Failed to set a cookie: Exception calling “SetWinINETCookieString” with “3” argument(s): “Exception setting cookie: Win32 Error code=-1906441218”
01/05/2018 14:10:23 | ERROR | Failed to set a cookie: Exception calling “SetWinINETCookieString” with “3” argument(s): “Exception setting cookie: Win32 Error code=-1906441218”
01/05/2018 14:10:24 | ERROR | Failed to set cookies, error received: Found 0 cookies out of the expected 3 cookies in C:\Users\Test\AppData\Local\Microsoft\Windows\INetCookies
01/05/2018 14:10:28 | ERROR | ERROR: detected string error 224 in return code of net use command, this usually means your trusted sites are misconfigured or KB2846960 is missing
01/05/2018 14:10:28 | ERROR | failed to contact S: after mapping it to *URL REMOVED*, check if the URL is valid. Error: Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.
System error 224 has occurred.
Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.
Mark
8 years ago
I seem to be having issues getting this working with our BC proxies. I get the following;
Method invocation failed because [System.__ComObject] does not contain a method named ‘navigate’
I also see some proxy auth errors, any ideas? I’ve tried ie and native auth with no difference.
Marko Stanojevic
8 years ago
ADFS – Workgroup Computers
Hi Jos,
I’m trying to use onedrivemapper in a workgroup environemnt with ADFS login. I’m getting ADFS error all the time:
ERROR | Error received from ADFS server: Exception calling “GetResponse” with “0” argument(s): “The remote server return
ed an error: (401) Unauthorized.”
It works on domain-joined PCs
Maria
8 years ago
i just updated to the new file and it seemed to work the first time, now I am getting waited for seconds for 04b auto provisioning and it takes a few minutes then it does not map.
ERROR | Failed to auto provision onedrive and/or retrieve username from the response URL. Is this user licensed?
INFO | Will attempt to use auto-guessed value of \\onedrivemapper-my.sharepoint.com@SSL\DavWWWRoot\personal\mrivera_ccsofl_net\Documents
INFO | Waited for 190 seconds for O4b auto provisioning…
INFO | Onedrive cookie loop finished, mapping drive…
INFO | Mapping target: \\onedrivemapper-my.sharepoint.com@SSL\DavWWWRoot\personal\mrivera_ccsofl_net\Documents
ERROR | failed to contact O: after mapping it to \\onedrivemapper-my.sharepoint.com@SSL\DavWWWRoot\personal\mrivera_ccsofl_net\Documents, check if the URL is valid. Error:
System error 53 has occurred.
The network path was not found.
Any suggestions?
Henry
8 years ago
Hello Jos and thank you for all of your hard work and time on this continuing project. I have a problem running the script. Any help figuring out why it’s doing this would be appreciated greatly. The error in Powershell is as follows:
Method invocation failed because [System.Int32] does not contain a method named ‘IndexOf’.
At C:\Users\xxxxx\Desktop\OneDriveMapper_v3.13.ps1:1965 char:16
+ if($nextURL.IndexOf(“https:”) -eq -1){
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Exception calling “Create” with “1” argument(s): “Invalid URI: The format of the URI could not be determined.”
At C:\Users\xxxxx\Desktop\OneDriveMapper_v3.13.ps1:329 char:13
+ $request = [System.Net.WebRequest]::Create($url)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UriFormatException~~~~~~~~~~~~~~
Fabrice Blanchet
7 years ago
SInce last friday, the script does not map drive and times out after 180 seconds, have you experiment this issue?
We are using Portal Guard which uses SAML2. I get an error when the script tries to do the POST
Method invocation failed because [System.Int32] does not contain a method named ‘IndexOf’.
At C:\Users\stephencm\Downloads\OneDriveMapper.ps1:1966 char:16
+ if($nextURL.IndexOf(“https:”) -eq -1){
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Exception calling “Create” with “1” argument(s): “Invalid URI: The format of the URI could not be determined.”
At C:\Users\stephencm\Downloads\OneDriveMapper.ps1:329 char:13
+ $request = [System.Net.WebRequest]::Create($url)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UriFormatException
Do I need to rewrite the search string to look for my portal login form?
Hi Jos,
Thank you so much for such a powerful script! This script rocks!
I have a question please: the script generates the errors below for some users, other users are ok, all are using the same environment.
From the log I understand that it cannot set cookies? I tried to access user’s folder and it is accessible and there are already some cookies from different websites.
Could you please advise what the error is and how to resolve it?
Also, is it possible to set a custom cookie path in the script, for example on a share not in common cookies folder? Thanks a million!
01/05/2018 14:10:07 | ERROR | ERROR: Failed to set test cookie, script will fail: Exception calling “SetWinINETCookieString” with “3” argument(s): “Exception setting cookie: Win32 Error code=-1906441218”
01/05/2018 14:10:22 | ERROR | Failed to set a cookie: Exception calling “SetWinINETCookieString” with “3” argument(s): “Exception setting cookie: Win32 Error code=-1906441218”
01/05/2018 14:10:23 | ERROR | Failed to set a cookie: Exception calling “SetWinINETCookieString” with “3” argument(s): “Exception setting cookie: Win32 Error code=-1906441218”
01/05/2018 14:10:24 | ERROR | Failed to set cookies, error received: Found 0 cookies out of the expected 3 cookies in C:\Users\Test\AppData\Local\Microsoft\Windows\INetCookies
01/05/2018 14:10:28 | ERROR | ERROR: detected string error 224 in return code of net use command, this usually means your trusted sites are misconfigured or KB2846960 is missing
01/05/2018 14:10:28 | ERROR | failed to contact S: after mapping it to *URL REMOVED*, check if the URL is valid. Error: Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.
System error 224 has occurred.
Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.
I seem to be having issues getting this working with our BC proxies. I get the following;
Method invocation failed because [System.__ComObject] does not contain a method named ‘navigate’
I also see some proxy auth errors, any ideas? I’ve tried ie and native auth with no difference.
ADFS – Workgroup Computers
Hi Jos,
I’m trying to use onedrivemapper in a workgroup environemnt with ADFS login. I’m getting ADFS error all the time:
ERROR | Error received from ADFS server: Exception calling “GetResponse” with “0” argument(s): “The remote server return
ed an error: (401) Unauthorized.”
It works on domain-joined PCs
i just updated to the new file and it seemed to work the first time, now I am getting waited for seconds for 04b auto provisioning and it takes a few minutes then it does not map.
ERROR | Failed to auto provision onedrive and/or retrieve username from the response URL. Is this user licensed?
INFO | Will attempt to use auto-guessed value of \\onedrivemapper-my.sharepoint.com@SSL\DavWWWRoot\personal\mrivera_ccsofl_net\Documents
INFO | Waited for 190 seconds for O4b auto provisioning…
INFO | Onedrive cookie loop finished, mapping drive…
INFO | Mapping target: \\onedrivemapper-my.sharepoint.com@SSL\DavWWWRoot\personal\mrivera_ccsofl_net\Documents
ERROR | failed to contact O: after mapping it to \\onedrivemapper-my.sharepoint.com@SSL\DavWWWRoot\personal\mrivera_ccsofl_net\Documents, check if the URL is valid. Error:
System error 53 has occurred.
The network path was not found.
Any suggestions?
Hello Jos and thank you for all of your hard work and time on this continuing project. I have a problem running the script. Any help figuring out why it’s doing this would be appreciated greatly. The error in Powershell is as follows:
Method invocation failed because [System.Int32] does not contain a method named ‘IndexOf’.
At C:\Users\xxxxx\Desktop\OneDriveMapper_v3.13.ps1:1965 char:16
+ if($nextURL.IndexOf(“https:”) -eq -1){
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Exception calling “Create” with “1” argument(s): “Invalid URI: The format of the URI could not be determined.”
At C:\Users\xxxxx\Desktop\OneDriveMapper_v3.13.ps1:329 char:13
+ $request = [System.Net.WebRequest]::Create($url)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UriFormatException~~~~~~~~~~~~~~
SInce last friday, the script does not map drive and times out after 180 seconds, have you experiment this issue?
We are using Portal Guard which uses SAML2. I get an error when the script tries to do the POST
Method invocation failed because [System.Int32] does not contain a method named ‘IndexOf’.
At C:\Users\stephencm\Downloads\OneDriveMapper.ps1:1966 char:16
+ if($nextURL.IndexOf(“https:”) -eq -1){
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Exception calling “Create” with “1” argument(s): “Invalid URI: The format of the URI could not be determined.”
At C:\Users\stephencm\Downloads\OneDriveMapper.ps1:329 char:13
+ $request = [System.Net.WebRequest]::Create($url)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UriFormatException
Do I need to rewrite the search string to look for my portal login form?