Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

17 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
James
James
2 years ago

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… Read more »

Stephen
2 years ago

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… Read more »

Fabrice Blanchet
Fabrice Blanchet
2 years ago

SInce last friday, the script does not map drive and times out after 180 seconds, have you experiment this issue?

Henry
Henry
2 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) +… Read more »

Maria
Maria
2 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… Read more »

Marko Stanojevic
Marko Stanojevic
2 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

Mark
Mark
2 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.