OnedriveMapper FAQ

FAQ

Debugging and support

Due to the high volume of emails and messages, I can’t always answer all of them and ask you to do your own research / best effort first. If you have issues, read through the comments and do a google / blog search and carefully examine the log in %appdata% or get a product with support.

If that doesn’t help and you need more help, download Fiddler and create a .saz recording of the issue make sure you enable SSL decrypting in the telerik options tab, it’ll install a certificate locally if this fails the log is useless. If you use ADFS, read below on how to use Fiddler with ADFS. Send that, your .ps1 file (with the configured params) and the .log file from %appdata% to me.

I cannot offer any guarantees but if i have time, I’ll try to help you out, but only if all logs / info is provided.

Failed to load Edge Driver

Check blocking GPO’s, Proxies, Firewalls, etc etc. Do this by starting with a non-domain joined clean W10/W11 machine with the latest Edge as an admin user and work your way up from there by re-introducing policies. If you find the culprit, please also let us know!

Restrictions when redirecting folders

The ‘Downloads’ folder can be redirected but existing content won’t be moved to Onedrive. In addition, if you have set any type of redirection through Group Policy, the script will be unable to redirect folders for your user as GPO’s take precedence.

Files are not visible or a folder is empty

A folder should not have more than 5000 items in it. This is a known limitation with Sharepoint, which trickles down to WebDAV. There is some client side tweaking by modifying FileAttributesLimitInBytes that you can attempt, but try to split up into multiple folders or libraries before you hit this number.

Office asks me to sign in

Try signing out of Office and signing back in to see if that fixes the issue. If you have the Onedrive client installed, check the Office tab in Onedrive’s config

Adobe Reader prompts for sign in when opening PDF files on a mapped drive

Add the following registry key (thanks to Martin Wedege Bohse for supplying it!):

Can I map the ‘Shared with me’ folder?

No, this is not an actual folder but a virtual folder. Microsoft’s WebDAV client does not support such folder types and therefore does not display them in your mapping.

What about Cryptolockers?

As you’re creating a drivemap, the data is easy to find for ransomware, and can thus be encrypted. But your data is actually far safer than on traditional fileshares, because Sharepoint and Onedrive have version control. The encryption will trigger a new file version, meaning your RPO is 0, no data is lost! Restoring a backup is more work and causes dataloss. Oh, and version control is enabled by default 🙂

How do I run the script from a shortcut?

Read this post

How do I run the script from a GPO?

First off, do not run it as an embedded powershell script. Add it under ‘scripts’ as a normal script with commandline/name:

Powershell.exe

Then the arguments or parameters you should specify are:

-ExecutionPolicy ByPass -WindowStyle Hidden -File <PATH TO OnedriveMapper_v2.33.ps1>

if you omit -WindowStyle Hidden the script will execute visibly. File HAS to be the last parameter.

 ERROR | Failed to set a cookie: Exception calling “SetWinINETCookieString” with “3” argument(s): “Exception setting cookie: Win32 Error code=4317”

I’m not sure about the cause, but this can be fixed by resetting Internet Explorer. The cookie is required for the WebDav client’s auth to O365. Sometimes you may have to delete the cookie from the webcache folder: https://social.technet.microsoft.com/Forums/ie/en-US/4cdf4e19-0ce7-46a8-b1db-a9ea33009822/ie11-not-saving-cookies-on-exit-windows-10-1803

How can I use an ADFS smartlink to speed things up?

An ADFS smartlink can significantly speed up your logon process and reduce complexity (so, less chance for errors). If you don’t know how to make an ADFS Smartlink, google it.

Make an ADFS smartlink to “https://{YOUR TENANT NAME}-my.sharepoint.com/_layouts/15/MySite.aspx?MySiteRedirect=AllDocuments”, replace the tenant name with your tenant, example: “https://ogd-my.sharepoint.com/_layouts/15/MySite.aspx?MySiteRedirect=AllDocuments”

Test if it works by entering this smartlink in your browser, if you get signed in automatically to Onedrive for Business, set $adfsSmartLink in the script configuration to your smartlink. Remember that this only works if ADFS signs you in automatically (usually only on premises).

How do I troubleshoot native auth with ADFS?

You may have to disable Extended Protection or alternatively play with FiddlerScript as a workaround.

The ADFS detail logs will also show why a request fails. ADFS should either do SSO or forms-based auth, if you see a popup in IE this means ADFS is not configured properly. ADFS should also support TLS v1.2.

What about maximum file sizes?

The larger the file size, the less fluent the user experience will be.

Size Mode Browser based Drivemapping
<128MB Upload OK OK
<128MB Download OK OK
<512MB Upload OK OK
<512MB Download OK OK
<1GB Upload OK X
<1GB Download OK OK
<10GB Upload OK X
<10GB Download OK OK
>10GB X X X

If very large files are handled (>128MB), transfers may fail depending on bandwidth and if webdav settings have been tweaked. Testing has shown that files up to 512MB usually upload or download correctly if sufficient bandwidth is available, but the dialog displayed to the user often seems unresponsive or hangs at 1% or 99% for a long time, without failing or other feedback until it suddenly completes. This speed is almost completely dependant on the bandwidth between the session and Onedrive for Business (microsoft cloud).

My mapped drive does not show the correct amount of free space, it copies my C-drive

This is by design and how Microsoft designed the WebDav client service in Windows, which is used to map the drive.

How do I map to an Office 365 Group?

Follow these instructions on how to get the Office 365 Group Webdav URL

My files are becoming locked

Assuming you already disabled WebDAV file locking support: Your library name probably contains one or more spaces, this can cause read/write issues, try mapping with a different number of spaces

I don’t use ADFS, my users have to enter their password each time them log in, why?

You’re probably using a tool (like RES?) to remove all drive mappings from the user profile upon logoff or logon. The script maps the drive persistently, so if your tooling doesn’t touch it, it’ll be back on a future logon, assuming you’re using Roaming Profiles. If the script does not detect the drive, it will go through the full mounting process.

Office applications keep prompting me for a password when I open word or excel files.

Try KB943280 to set WebDav to forward your credentials to the right server.

 My users immediately see an error, and I notice that the log shows this: Het ophalen van de COM-classfactory voor het onderdeel met CLSID {0002DF01-0000-0000-C000-000000000046} is mislukt vanwege de volgende fout: 80080005.

Something (probably RES) is blocking the script from starting an Internet Explorer COM object to fetch the login token for OneDrive.

Error 67, network name not found

Try ensuring that the WebDav client is functioning properly. The WebClient service on the server should be started. You can verify functionality by manually attempting to net use, if you see the same error, try to map the OneDrive folder using the map button in Internet Explorer when in your OneDrive. If this works, your WebDav client is the root cause.

Error 53, path not found

Remove the trailing / behind the sharepoint URL. Also, make sure there are no double spaces in the library name, and that the library name is 100% sure correct (try manually mapping it and checking net use)

My Office 2013 files are getting locked, and won’t unlock

The WebDav client has a locking mechanism, if this is enabled, in some setups you may experience permanently locked files. You can disable the WebDav locking mechanism by setting this registry key to 0 (False):

HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\SupportLocking

An unexpected error is keeping you from copying the folder. If you continue to receive this error, you can use the error code to search for help with this problem. Error 0x800700DF: The file size exceeds the limit allowed and cannot be saved.
the WebDav client’s file size limit is lower than the file you’re trying to access. You can adjust it using this kb
Browsing directories is very slow on Windows 8 RTM and Windows 2012 RTM machines
This is a known bug in the WebClient, please install KB2782826, or KB2445570
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.
Ensure trusted sites are not misconfigured (wrongly entered wildcards, multiple overriding GPO’s etc) and check if wiping your cookies resolves the issue.
Also ensure that KMSI is enabled in the AzureAD portal:

OR use a conditional access policy to always auto set KMSI:

My C-Drive fills ups
The Windows builtin WebDav client’s cache may have filled up, this can be wiped with the following command:
del "C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\TfsStore\Tfs_DAV\*.*" /q /f
After a few days of inactivity, my drive becomes disonnected and I have to rerun the script to connect it again
I’m getting prompted for passwords after a reboot on another machine.
Also by design, if you’re using password caching, this is encrypted using the machine key by default and thus only usable on the same machine for security.
Error 224 in conjunction with ADFS (non persistent cookies)
Error 224 basically means the webdav client did not find a proper cookie for Office 365 on your device, or the trusted sites are not configured correctly. If you’re using ADFS, you may have to set cookie persistence to allow OnedriveMapper to work.
Other

If you’re still having problems, like error 224, try installing this KB from Microsoft:

Error when you open a SharePoint Document Library in Windows Explorer or map a network drive to the library after you install Internet Explorer 10

Or run the WebDAV diagnostics script by Ed Barnes

Subscribe
Notify of
guest

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

184 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Richard Boocock
Richard Boocock
6 years ago

Hi

Please can you help me. We do not have ADFS and have created a script that that works great but on the first login by a user they get asked for a password 3 times and they get a message saying Mapping cannot continue because we could not log into Office 365 but it works correctly. On the second login it works great I have checked the logs and it says it could not find the password in the password cache.

Please can someone help.

Thanks

Richard

Muneeb
Muneeb
6 years ago

Hey i am trying running your script but getting the following error due to new sign in experience: 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 ERROR | failed to contact K: after mapping it to \\company.sharepoint.com@SSL\DavWWWRoot\sites\sitname\subsite\Shared Documents\Forms\AllItems.aspx, check if the URL is valid. Error: 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.… Read more »

JezBurger
JezBurger
3 years ago

With the recent depreciated support for IE 11 and 365 services on April 17 2021, was wandering if anyone had a solution to keep using OneDriveMapper.

We’ve got the issues coming up with the ‘Mapping cannot continue because we could not contact Office 365’.

Upon closer inspection, found that if you attempt to manually browse to the Office365 portal from the IE browser that it says this is no longer supported and to use Edge.

Andy
Andy
5 years ago

Has anyone experienced issue with the script (both version 3.13 and 3.14) since the update to Windows 10 Build 17134.1). We have been testing script successfully until the upgrade of a client to latest build. ERROR | Failed to set a cookie: Exception calling “SetWinINETCookieString” with “3” argument(s):

Same scripts on previous builds all running successfully, trusted sites configured etc.

Kiran Avinash Ghisaidoobe
Kiran Avinash Ghisaidoobe
6 years ago

Dear Jos,

As of today we have troubles with the script it hangs on this error: “Error detected while following redirect, check the FAQ for help” and I cannot find in the FAQ what the solution may be.

Could you help me maybe what the problem is ?

With kind regards,

Kiran

Patrick Coughlin
Patrick Coughlin
6 years ago

https://support.microsoft.com/en-us/help/3124280/ms16-016-description-of-the-security-update-for-webdav-february-9–201 Has the “latest” version of the WebDav components I have found. It should have all the previous fixed rolled up.

Andreas
Andreas
4 years ago

Hi,

works fine as loginscript in version 3.21 on Client PCs.

Using it on a RDS Host however doesnt throw an error, but the explorer keeps telling me i should have set my trust relationships and check the KMSI flag.

Using the Script after the logon AGAIN repairs this and i can use the mapped drives.

Is it possible that RDS handles the cookies / Users differently?

Marcus
Marcus
4 years ago

If you get the error ” ERROR | Failed to set a cookie: Exception calling “SetWinINETCookieString” with “3” argument(s): “Exception setting cookie: Win32 Error code=0”” in a Citrix environment, then you probably have profile streaming enabled.
The error is as follows:
1. login with a new profile = everything OK!
from the 2nd login the mentioned error – disable profile streaming, then it is again OK.
I just don’t know which file/folder is the problem, then you could simply exclude it from streaming.

That cost me half a day of troubleshooting. 🙁

Greetings,
Marcus

SimonP
SimonP
4 years ago

Hi, we are having some issues using the 3.21 version of the script to map the onedrive folder for users on our RDS platform. The script works perfectly on our normal full windows 10 clients but on our server 2016 RDS session hosts the scripts fail with the error: “06/12/2019 11:42:49 | ERROR | failed to contact O: after mapping it to \\xxxxxxxx-my.sharepoint.com@SSL\DavWWWRoot\personal\xxxxx_xxxxxxx_xx_xx\Documents, check if the URL is valid. Error: System error 53 has ocurred. The network path was not found. I have read this FAQ and it suggests that error 53 indicates an extra space or trailing character on… Read more »

Jan Homan
6 years ago

We are using the onedrivemapper.ps1 script and it works great !
We have one issue with the length of a filename, if it exceeds 256 characters the directory in which the file exist is shown empty (no files) using onedrivemapper. We can see the file in sharepoint (which I think has 400 characters as limitation). Is there a way to solve this issue in onedrivemapper ? Thanks!

Ryan Mitson
Ryan Mitson
8 months ago

Keep getting read only errors when opening files and also a newer version of this file is available on the server, even though the file opened is the newest version. Almost seems like a caching issues. I have cleared the webdav cache and the leiben folder cache etc any other thoughts ?

Tim
Tim
5 years ago

Hi, how do I force the script to always prompt for a username? It is only prompting for a password when I run it. Thanks.

Andrew
Andrew
6 years ago

A minor issue: when users move files between folders in their mapped OneDrive they get a Windows Security alert “These files might be harmful to your computer”. I’ve read that adding the network location to the intranet sites should fix this, but I can’t do that if the network location is already specified under “Trusted” locations, as it needs to be to run this script. Is there a OneDriveMapper suggestion to fix this?

Robin
Robin
6 years ago

Hi, we go through a proxy and didn’t feel comfortable allowing users through to large parts of Microsoft without authentication. I have added the line “$request.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials” below “$request.KeepAlive = $True” (line 330). This uses the logged in users credentials to go through the proxy and is working here for native authentication.

tom
tom
2 months ago

I am using it for couple of months now. First when another user tries to open a file that was already open he got prompted with ‘open read only file’ like a traditional file share.
But now it looks like collaboration is enabled somewhere, multiple users can now open a file.
Is there a setting i can use to disable this?

techc
techc
10 months ago

anyone know why this happends if you use map folders to onedrive and if map drive has not finish it will through errot o: not avialble

Tom
Tom
1 year ago

I am testing the script, it works fine. But when i try to open an office document from the share. It keeps promping me the open with dialog and does not open the document.
Starting word first, and the browse to the share does work.
I think it a security setting within office, but haven’t figured out yet what setting. Already added the locadtion to the secure locations.

Ted
Ted
1 year ago

Since Microsoft update is removing IE 11, all users cannot map

System.Management.Automation.RemoteException 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.Management.Automation.RemoteException
02/23/2023 08:29:44 | ERROR | autoRemapMethod is set to Path, but all mappings failed, OnedriveMapper will exit

Is there a work around not that IE 11 will no longer open

Patrick
Patrick
1 year ago

Hello, first thank you for that script! Only one User has a problem running the script via GPO 12/07/2022 13:04:30 | INFO | —–12/07/2022 13:04:30 OneDriveMapper v5.13 – xxxx on xxxx starting—– 12/07/2022 13:04:30 | INFO | OnedriveMapper is running from C:\Users\xxxx\AppData\Roaming\xxxxx 12/07/2022 13:04:30 | ERROR | Script elevation level: Administrator 12/07/2022 13:04:30 | INFO | Scheduled a task to run OnedriveMapper unelevated because this script cannot run elevated 12/07/2022 13:04:31 | INFO | Scheduled task started Starting the script from the Client everything works fine 12/07/2022 13:10:49 | INFO | —–12/07/2022 13:10:49 OneDriveMapper v5.13 – xxxx on xxxxxx starting—–… Read more »

Charlie Stone
Charlie Stone
1 year ago

Trying to run V5 of this script, but unable to find where I put the $forceUserName and the $forcePassword lines?

These are for staff to run and get their OneDrives.

Kevin
Kevin
1 year ago

I am using version 3.19 did microsoft just release a change that breaks this script

Ahmed Abdel-Kerim
Ahmed Abdel-Kerim
2 years ago

Hi,
We currently use version 4.x of the script and it worked great for couple of years with both Windows 2012 R2 and 2019 RDS. Recently, the script stopped running on Windows 2012 R2 but still runs on 2019. Users on the 2019 RDS servers can use OneDrive when using office products and the drives does not map so they can use it wit other apps.

Any thoughts on what is going on? Any help is appreciated.

Jerome
Jerome
2 years ago

Hi Team
 
We have been using OneDrive mapper and it’s been working well for some time on a Server 2008R2 TS server (Thanks!!)
Recently it has stopped working and we are getting the below error
 
ERROR | failed to contact H: after mapping it to \\TENENT-my.sharepoint.com@SSL\DavWWWRoot\personal\USERNAME_TENENT_\Documents, check if the URL is valid. Error
:
 System error 59 has occurred.
 An unexpected network error occurred.
 
When testing on a Serer 2019 or Windows 10 in the same environment it works.
 
Any assistance would be great.

Clayton
Clayton
2 years ago

Thanks for this script, it has been working great until this latest version. I am getting Error 224 contstantly and i have added the trusted sites as well. this is on server 2016 so the KB is not relevent here unless im mistaken. any advice would be most helpful

dubla
dubla
3 years ago

Does OneDriveMapper interfere with OneDrive/SharePoint file version history at all? I noticed that some people are not getting version history options but i am not sure if this is because there are no changes or if there is some disassociation through the connection.

Also, if you delete a file through the OneDriveMapper connection, is this then recoverable through OneDrive recycle bin?

We were hoping to reduce our backup costs and rely on OneDrive retention but if the connection breaks this then it hasn’t saved us anything and we still need to backup our o365.

Thanks

Raphael
Raphael
3 years ago

Hi, after August 17, Microsoft is ending Internet Explorer 11 support for 365 services.

Any option to adapt this script to Edge, or any other browser supported for 365 ?

Thank you very much and congratulations for your effort.

Oliver Lennox
3 years ago

Hi Jos, We’ve been using OneDriveMapper for a few months to map OneDrive folders and it has been working great. We’ve since had a rejig with how we want user files to work and have moved to using a single SharePoint document library instead (with permission set on a folder-by-folder basis). I’ve reconfigured OneDriveMapper (v4) to use the SharePoint library instead but it doesn’t seem to be working. The logs all look good and it says that it’s mapped the folder to the drive letter but it never appear in Windows Explorer. If I manually reset Windows Explorer and then… Read more »

Paul
Paul
3 years ago

I’ve been using onedrivemapper for several years now, without any major issues or ones easily fixed with a bit of reading and research. I check regularly for updates, and migrate to new versions frequently. When moving from v3 to 4, I would get a pop-up box to confirm what Microsoft account it should use to connect to each of the mappings in the script. Granted, I have 3 sperate Microsoft 365 accounts I log into for different resources.  Its not really an error, but with my family only using this script it is not an real issue – but it has made accessing… Read more »

Alex Graham
3 years ago

Just used this tool – amazing work!

Sijtze
3 years ago

Hi, when using Onedrivemapper I sometimes see follow SPO sites show up as white icons (with no path attached to them) in explorer. This seems totally random. I reviewed the SPO sites but don’t see anything different then sites which work fine.

How can I fix this. Anyone seen this behaviour before?

Best regards

Sijtze

Josh
Josh
3 years ago

Having an issue trying to use this in our Citrix environment. Running the script will give me a pop-up to log into the Microsoft site. Opening a MSOffice application already shows my user already logged into the apps. (Word, Excel, PowerPoint) Watching the script run I see it pulls my username. But when we log into our MS portal we have to use the full email as the user username@tenant.ca (notice the .ca part) It get so the part where it detects username and then encounters a dialog which it shows to the user Could this be part of the… Read more »

Last edited 3 years ago by Josh
Rene Boer
Rene Boer
4 years ago

Great tool!! I’ve had headaches trying to get onedrive to work in our 2008R2 environment without syncing. This tool made it easy.

Richioud
Richioud
4 years ago

Hello ,

I can’t copy and paste a folder in SharePoint readers map in the file explorer. Can you help me please ? .

Cordialy,

RICHIOUD Jérémy

Vicki webb
Vicki webb
4 years ago

This script works AWESOME and we will definitely be using it.

I noticed in the FAQ it states –

“First off, do not run it as an embedded powershell script. Add it under ‘scripts’ as a normal script”

Not sure what you mean by “embedded powershell script”.

We had planned to run is as part of the LOGON script (User Config/Policies/Windows Settings/Scripts/Logon

Is that considered an embedded script?

Michael
Michael
4 years ago

I am using onedrivemapper in a Server 2012 R2 RDS environment. We are running Office 2013 in the RDS environment. The script runs and connects the users to their Z: drive that is on One Drive. The RDS environment is configured by GPO to not allow users to save to the C: drive on the connected remote desktop server. When a user tries to save an attachment the save function is trying to access the C: drive and not automatically accessing the Z: drive for saving. Is there a way to fix this with the OneDriveMapper script?

Jes
Jes
5 years ago

jos, great script. I got it to work on my environment as designed. However, the possible scenario that I am running into is if: if you have the desktop, documents, and pictures redirected, and you go offline, documents in these will not be available. However is there a way to access them via offline/cached mode? I can totally see someone freaking out if the user refreshes their desktop and all icons are gone, until they refresh again once online.

John
John
5 years ago

Hi, when a user is a member of the Power Users group on a W2K16 server the script runs by GPO at logon, but doesn’t map the drive. If I run the script manually it maps! When I remove the user from Power Users group and logon it works. Any ideas? TIA.

jeremy
jeremy
5 years ago

Hello,

I have a little problem with the script onedrivemapper. for each restart of many users. When they restart their computer, i have to relaunch the script otherwise access to the shared drive is denied. How can i do this for solve this problem ?

Cordialy

jeremy

jeremy
jeremy
5 years ago

Hello,

I have a little question in the script of OneDriveMapper 3.18, how can i force the script to ask me to enter my login name. Actualy, the script ask me only the password and i want him to ask me both. Can you explain or show me how i can do this ?

cordially,

Rob
Rob
5 years ago

Hi Jos, users are getting a Sign in Prompt to their Personal OneDrive when they try to save to the OneDrive Mapping. Any idea why

Steve
Steve
5 years ago

Hi, i am finding with the teams mapping that if my user hasn’t visited https://TENANT.sharepoint.com/_layouts/15/sharepoint.aspx?v=following before hand then it retrieves no following teams, however they have followed teams sites already. I also note that the first retrieval always fails, is there anyway to cache the groups for a time as they do change but not often? INFO | Retrieving favorited sites because autoMapFavoriteSites is set to TRUE INFO | Retrieving Sharepoint cookie step 2 at https://TENANT.sharepoint.com/_forms/default.aspx ERROR | Failed to retrieve favorited sites, mapping to these sites will fail if 2nd attempt fails INFO | Retrieving favorited sites because autoMapFavoriteSites… Read more »

Mark
Mark
5 years ago

Hi Jos, many thanks for providing this drive mapping script – it works great… when it works but I seem to be encountering a strange situation. During testing it only works on 2 out of 5 PCs. Not only that when the accounts that it works under log into one the machines the script fails on, it doesn’t work i.e. it doesn’t appear to be a user account issue. Confusingly if one of the affected user accounts logs onto a PC where it has worked for another account, it fails i.e. it doesn’t, on the surface at least, appear to… Read more »

AnthonyRN
AnthonyRN
5 years ago

Hello! Great script and much appreciate all your work. Having a small issue in that it maps the sharepoint sites that a user is following, but maps them all as the same letter (D by default) so they overwrite each other and you only end up with the last mapping. Any idea why it’s not mapping each as separate letters?

Ross Harris
Ross Harris
5 years ago

To disable webdav client file locking. Which server would I need to set this up. We’re not using webdav on the DCs or the ADFS server at present. Where would it need to be installed to make this work?

Jason L
Jason L
5 years ago

Is there a way to have an “autodetect” of office365 groups when trying to map a Teams Share, just like you have written for the OneDrive mapping?

Rob
Rob
6 years ago

Script works fine with 3.14 but only when IE is reset. Anybody have a way to push this out in bulk – without user interaction

Stevev
Stevev
6 years ago

Interesting. If I run the script via GPO, and whether I pull it from a network share or a local C:\folder it completes successfully and says in the log that it mapped the drive but the drive never shows in explorer. I have it set to restart explorer. I am mapping a SharePoint Online library to an S: drive only. If I run the script (as a regular user) on the same machine manually from the desktop with unelevated powershell it has all the same log messages in the appdata log, but the S: drive shows up in windows explorer.… Read more »

John
John
6 years ago

I have been using your script for months and only occasionally does it stop working usually there is a later version which fixes it for us but this time we are on the latest so am after a bit of help with the errors, I have been through the FAQ and nothing has helped solve it. To note nothing has changed on our network since it was last working to now so no updates to clients no policy changes no adfs changes etc. through the appdata log these are our errors. ERROR | IE Zone 3 protectedmode is enabled through… Read more »

SEAN
SEAN
6 years ago

Just figured I’d contribute a little here. .. I was able to get this working in my VDI enviornment after a few days of arguing with Microsoft about why it needs to work. Running Windows 7 VDI with most of the latest security updates/rollups. We are also ADFS with Azure AD sync for SSO. Had originally used “ie” as the authentication mechanism in the script, and was getting the 224 error. Based on alot of reading and research, downloaded and installed the Windows Management Framework 5.1 from MS (https://www.microsoft.com/en-us/download/details.aspx?id=54616) so that Powershell was brought up to 5.1 (it was originally… Read more »

Jan Krajcik
Jan Krajcik
6 years ago

Hi, we’ve got the script working and it is a great help. Unfortunately since implementing it our users are prompted to logon to SharePoint online every time they open Internet Explorer. First time after the reboot they even have to type in their email address. Is there any way to remember / keep the user signed in in IE please? We use ADFS SSO. Many Thanks, Jan.

Bill Hixon
Bill Hixon
6 years ago

It appears on Feb 1, 2018 Microsoft has dropped the old login. It also seems something else changed since I cannot get 3.12 or 3.13 to map. I constantly get Error 224 on Windows 10 using login method 6 with stored login/password. It successfully logs in, gets to the correct location, then gives error 224. Tried complete reset of IE with no joy.

Kip
Kip
6 years ago

Hello All. I just setup a local GPO on my workstation for testing with a logon script. I am using the standard script, not the powershell script tab. The name is powershell.exe and the parameters are:
-ExecutionPolicy ByPass -WindowStyle Hidden -File
The script runs fine after logon, but the powershell window isn’t hidden. Any ideas?

Matt
Matt
6 years ago

Anyone know a fix to easily-digitally sign the script? I have the ExecutionPolicy in our environment set to RemoteSigned (for security).

Mark
Mark
6 years ago

Hi, I have the script working well but the powershell opens up for the students to see and not hidden and just the drive mapping in bottom corner. How can i hide the powershell script please as students are closing the script before it has completed and not getting the mappings and the really younger students don’t understand and keep closing the scripts. Please anyone know how to run the script hidden via GPO. Thanks

David Cramp
David Cramp
6 years ago

Hi, this looks like exactly what I’m looking for, however I can’t get it working 🙁 The log file looks like it runs fine, other than the fact there is no mapping. I have turned Debug on and set auth method to IE but the debug file in empty. Please could you advise / suggest how I may go about debugging any problems.
Thanks very much in advance for any help you can give.

Mark
Mark
6 years ago

Hi using the scripts in GPO and have added in the login under powershell scripts is this correct? How can i get the powershell to hide for the users? You mentioned do not run the script as an embedded powershell script. Not sure what you mean. Thanks inadvance

Scott Adams
Scott Adams
6 years ago

Getting error 53 on clients that are RDP’ing into Server 2012 and Server 2016.

The script works flawlessly on clients logging into Windows 7, Windows 10, and RDP’ing into Server 2008 R2.

Thoughts?

I do not see a “trailing /” in my script.

Microsoft 365, Azure, Automation & Code

184
0
Would love your thoughts, please comment.x
()
x