{"id":873,"date":"2016-07-07T13:24:33","date_gmt":"2016-07-07T13:24:33","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?page_id=873"},"modified":"2016-07-07T13:24:33","modified_gmt":"2016-07-07T13:24:33","slug":"onedrivemapper-faq","status":"publish","type":"page","link":"https:\/\/lieben.nu\/liebensraum\/onedrivemapper\/onedrivemapper-faq\/","title":{"rendered":"OnedriveMapper FAQ"},"content":{"rendered":"<p><strong>FAQ<\/strong><\/p>\n<h6>Debugging and support<\/h6>\n<p>Due to the high volume of emails and messages, I can&#8217;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 <a href=\"https:\/\/www.lieben.nu\/liebensraum\/onedrivemapper\/onedrivemapper-cloud\/\">get a product with support<\/a>.<\/p>\n<p>If that doesn&#8217;t help and you need more help, download <a href=\"https:\/\/www.telerik.com\/download\/fiddler-wizard\" target=\"_blank\" rel=\"noopener noreferrer\">Fiddler<\/a> and create a .saz recording of the issue make sure you enable SSL decrypting in the telerik options tab, it&#8217;ll install a certificate locally<strong>\u00a0if this fails the log is useless.<\/strong>\u00a0If 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% <a href=\"https:\/\/www.lieben.nu\/liebensraum\/contact\/\">to me.<\/a><\/p>\n<p>I cannot offer any guarantees but if i have time, I&#8217;ll try to help you out, but only if all logs \/ info is provided.<\/p>\n<p><strong>Failed to load Edge Driver<\/strong><\/p>\n<p>Check blocking GPO&#8217;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!<\/p>\n<h6>Restrictions when redirecting folders<\/h6>\n<p>The &#8216;Downloads&#8217; folder can be redirected but existing content won&#8217;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&#8217;s take precedence.<\/p>\n<p><strong>Files are not visible or a folder is empty<\/strong><\/p>\n<p>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 <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/microsoft-sharepoint-blog\/troubleshooting-explorer-view-and-mapped-drives-to-sharepoint\/ba-p\/1185909\" target=\"_blank\" rel=\"noopener\">client side tweaking<\/a> by modifying <strong>FileAttributesLimitInBytes<\/strong> that you can attempt, but try to split up into multiple folders or libraries before you hit this number.<\/p>\n<h6>Office asks me to sign in<\/h6>\n<p>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&#8217;s config<\/p>\n<p><strong>Adobe Reader prompts for sign in when opening PDF files on a mapped drive<\/strong><\/p>\n<p>Add the following registry key (thanks to Martin Wedege Bohse for supplying it!):<\/p>\n<p><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2019\/02\/thumbnail_image008.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3029\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2019\/02\/thumbnail_image008.png\" alt=\"\" width=\"733\" height=\"44\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2019\/02\/thumbnail_image008.png 733w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2019\/02\/thumbnail_image008-300x18.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/a><\/p>\n<h6>Can I map the &#8216;Shared with me&#8217; folder?<\/h6>\n<p>No, this is not an actual folder but a virtual folder. Microsoft&#8217;s WebDAV client does not support such folder types and therefore does not display them in your mapping.<\/p>\n<h6>What about Cryptolockers?<\/h6>\n<p>As you&#8217;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 \ud83d\ude42<\/p>\n<h6>How do I run the script\u00a0from a shortcut?<\/h6>\n<p><a href=\"https:\/\/www.lieben.nu\/liebensraum\/2016\/10\/running-onedrivemapper-from-a-shortcut\/\">Read this post<\/a><\/p>\n<h6>How do I run the script\u00a0from a GPO?<\/h6>\n<p>First off,\u00a0<strong>do not run it as an embedded powershell script.<\/strong> Add it under &#8216;scripts&#8217; as a normal script with commandline\/name:<\/p>\n<p>Powershell.exe<\/p>\n<p>Then the arguments or parameters you should specify are:<\/p>\n<p>-ExecutionPolicy ByPass -WindowStyle Hidden\u00a0-File &lt;PATH TO OnedriveMapper_v2.33.ps1&gt;<\/p>\n<p>if you omit -WindowStyle Hidden the script will execute visibly. File HAS to be the last parameter.<\/p>\n<h6>\u00a0ERROR | Failed to set a cookie: Exception calling \u201cSetWinINETCookieString\u201d with \u201c3\u201d argument(s): \u201cException setting cookie: Win32 Error code=4317\u201d<\/h6>\n<p>I&#8217;m not sure about the cause, but this can be fixed by resetting Internet Explorer. The cookie is required for the WebDav client&#8217;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<\/p>\n<h6>How can I use an ADFS smartlink to speed things up?<\/h6>\n<p>An ADFS smartlink can significantly speed up your logon process and reduce complexity (so, less chance for errors). If you don&#8217;t know how to make an ADFS Smartlink, google it.<\/p>\n<p>Make an ADFS smartlink to\u00a0&#8220;https:\/\/{YOUR TENANT NAME}-my.sharepoint.com\/_layouts\/15\/MySite.aspx?MySiteRedirect=AllDocuments&#8221;, replace the tenant name with your tenant, example:\u00a0&#8220;https:\/\/ogd-my.sharepoint.com\/_layouts\/15\/MySite.aspx?MySiteRedirect=AllDocuments&#8221;<\/p>\n<p>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).<\/p>\n<h6>How do I troubleshoot native auth with ADFS?<\/h6>\n<p>You may have to <a href=\"http:\/\/www.agileit.com\/news\/disable-extended-protection-in-adfs-2-0-for-office-365-to-allow-ie-google-chrome-and-firefox-to-authenticate-using-ntlm\/\" target=\"_blank\" rel=\"noopener noreferrer\">disable Extended Protection<\/a>\u00a0or alternatively <a href=\"https:\/\/blogs.msdn.microsoft.com\/fiddler\/2011\/09\/04\/fiddler-and-channel-binding-tokens-revisited\/\" target=\"_blank\" rel=\"noopener noreferrer\">play with FiddlerScript as a workaround<\/a>.<\/p>\n<p>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.<\/p>\n<h6>What about maximum file sizes?<\/h6>\n<p>The larger the file size, the less fluent the user experience will be.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"70\"><strong>Size<\/strong><\/td>\n<td width=\"80\"><strong>Mode<\/strong><\/td>\n<td width=\"111\"><strong>Browser based<\/strong><\/td>\n<td width=\"99\"><strong>Drivemapping<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"71\">&lt;128MB<\/td>\n<td width=\"80\">Upload<\/td>\n<td width=\"110\">OK<\/td>\n<td width=\"76\">OK<\/td>\n<\/tr>\n<tr>\n<td width=\"71\">&lt;128MB<\/td>\n<td width=\"82\">Download<\/td>\n<td width=\"110\">OK<\/td>\n<td width=\"75\">OK<\/td>\n<\/tr>\n<tr>\n<td width=\"71\">&lt;512MB<\/td>\n<td width=\"80\">Upload<\/td>\n<td width=\"110\">OK<\/td>\n<td width=\"76\">OK<\/td>\n<\/tr>\n<tr>\n<td width=\"71\">&lt;512MB<\/td>\n<td width=\"82\">Download<\/td>\n<td width=\"110\">OK<\/td>\n<td width=\"75\">OK<\/td>\n<\/tr>\n<tr>\n<td width=\"70\">&lt;1GB<\/td>\n<td width=\"80\">Upload<\/td>\n<td width=\"110\">OK<\/td>\n<td width=\"78\">X<\/td>\n<\/tr>\n<tr>\n<td width=\"70\">&lt;1GB<\/td>\n<td width=\"82\">Download<\/td>\n<td width=\"110\">OK<\/td>\n<td width=\"76\">OK<\/td>\n<\/tr>\n<tr>\n<td width=\"70\">&lt;10GB<\/td>\n<td width=\"80\">Upload<\/td>\n<td width=\"110\">OK<\/td>\n<td width=\"78\">X<\/td>\n<\/tr>\n<tr>\n<td width=\"70\">&lt;10GB<\/td>\n<td width=\"82\">Download<\/td>\n<td width=\"110\">OK<\/td>\n<td width=\"76\">OK<\/td>\n<\/tr>\n<tr>\n<td width=\"70\">&gt;10GB<\/td>\n<td width=\"80\">X<\/td>\n<td width=\"110\">X<\/td>\n<td width=\"78\">X<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If very large files are handled (&gt;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).<\/p>\n<h6>My mapped drive does not show the correct amount of free space, it copies my C-drive<\/h6>\n<p>This is <a href=\"https:\/\/support.microsoft.com\/nl-nl\/kb\/2386902\">by design<\/a> and how Microsoft designed the WebDav client service in Windows, which is used to map the drive.<\/p>\n<h6>How do I map to an Office 365 Group?<\/h6>\n<p>Follow these <a href=\"https:\/\/www.lieben.nu\/liebensraum\/2016\/04\/getting-the-webdav-url-of-an-office-365-group\/\">instructions on how to get the Office 365 Group Webdav URL<\/a><\/p>\n<h6>My files are becoming locked<\/h6>\n<p>Assuming you already disabled WebDAV file locking support:\u00a0Your library name probably contains one or more spaces, this can cause read\/write issues, try mapping with a different number of spaces<\/p>\n<h6>I don&#8217;t use ADFS, my users have to enter their password each time them log in, why?<\/h6>\n<p>You&#8217;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&#8217;t touch it, it&#8217;ll be back on a future logon, assuming you&#8217;re using Roaming Profiles. If the script does not detect the drive, it will go through the full mounting process.<\/p>\n<h6>Office applications keep prompting me for a password when I open word or excel files.<\/h6>\n<p>Try\u00a0<a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/943280\" target=\"_blank\" rel=\"noopener noreferrer\">KB943280<\/a>\u00a0to set WebDav to forward your credentials to the right server.<\/p>\n<h6>\u00a0My users immediately see an error, and I notice that the log shows this:\u00a0Het ophalen van de COM-classfactory voor het onderdeel met CLSID {0002DF01-0000-0000-C000-000000000046} is mislukt vanwege de volgende fout: 80080005.<\/h6>\n<p>Something (probably RES) is blocking the script from starting an Internet Explorer COM object to fetch the login token for OneDrive.<\/p>\n<h6>Error 67, network name not found<\/h6>\n<p>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.<\/p>\n<h6>Error 53, path not found<\/h6>\n<p>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)<\/p>\n<h6>My Office 2013 files are getting locked, and won&#8217;t unlock<\/h6>\n<p>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):<\/p>\n<p>HKLM\\SYSTEM\\CurrentControlSet\\Services\\WebClient\\Parameters\\SupportLocking<\/p>\n<h6 class=\"indent\">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.\u00a0<span style=\"font-size: 1em; font-weight: 600;\">Error 0x800700DF: The file size exceeds the limit allowed and cannot be saved.<\/span><\/h6>\n<div class=\"indent\">the WebDav client&#8217;s file size limit is lower than the file you&#8217;re trying to access. You can adjust it using <a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/900900\" target=\"_blank\" rel=\"noopener noreferrer\">this kb<\/a><\/div>\n<h6 class=\"indent\">Browsing directories is very slow on Windows 8 RTM and Windows 2012 RTM machines<\/h6>\n<div class=\"indent\">This is a known bug in the WebClient, please install <a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/2782826\" target=\"_blank\" rel=\"noopener noreferrer\">KB2782826<\/a>, or <a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/2445570\">KB2445570<\/a><\/div>\n<h6 class=\"indent\">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.<\/h6>\n<div class=\"indent\">Ensure trusted sites are not misconfigured (wrongly entered wildcards, multiple overriding GPO&#8217;s etc) and check if wiping your cookies resolves the issue.<\/div>\n<div><\/div>\n<div class=\"indent\">Also ensure that KMSI is enabled in the AzureAD portal:<\/div>\n<div><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3476\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt.png\" alt=\"\" width=\"1513\" height=\"908\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt.png 1513w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt-300x180.png 300w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt-1024x615.png 1024w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt-768x461.png 768w\" sizes=\"auto, (max-width: 1513px) 100vw, 1513px\" \/><\/a><\/div>\n<p>OR use a conditional access policy to always auto set KMSI:<\/p>\n<p><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt-conditional-access.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3479\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt-conditional-access.png\" alt=\"\" width=\"849\" height=\"698\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt-conditional-access.png 849w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt-conditional-access-300x247.png 300w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/09\/kmsi-prompt-conditional-access-768x631.png 768w\" sizes=\"auto, (max-width: 849px) 100vw, 849px\" \/><\/a><\/p>\n<h6 class=\"indent\">My C-Drive fills ups<\/h6>\n<div class=\"indent\">The Windows builtin WebDav client&#8217;s cache may have filled up, this can be wiped with the following command:<\/div>\n<div class=\"indent\">\n<pre class=\"bbcode_code\">del \"C:\\Windows\\ServiceProfiles\\LocalService\\AppData\\Local\\Temp\\TfsStore\\Tfs_DAV\\*.*\" \/q \/f<\/pre>\n<\/div>\n<h6 class=\"indent\">After a few days of inactivity, my drive becomes disonnected and I have to rerun the script to connect it again<\/h6>\n<div class=\"indent\">This is by design, <a href=\"https:\/\/support.office.com\/en-us\/article\/Session-timeouts-for-Office-365-37a5c116-5b07-4f70-8333-5b86fd2c3c40\">Sharepoint Online has a 5 day idle timeout.<\/a><\/div>\n<h6>I&#8217;m getting prompted for passwords after a reboot on another machine.<\/h6>\n<div>Also by design, if you&#8217;re using password caching, this is encrypted using the machine key by default and thus only usable on the same machine for security.<\/div>\n<h6>Error 224 in conjunction with ADFS (non persistent cookies)<\/h6>\n<div>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. <a href=\"https:\/\/blogs.technet.microsoft.com\/sposupport\/2017\/09\/16\/cookie-persistence-in-sharepoint-online\/\" target=\"_blank\" rel=\"noopener noreferrer\">If you&#8217;re using ADFS, you may have to set cookie persistence to allow OnedriveMapper to work.<\/a><\/div>\n<h6 class=\"indent\">Other<\/h6>\n<p>If you&#8217;re still having problems, like error 224, try installing this KB from Microsoft:<\/p>\n<p><a href=\"http:\/\/support.microsoft.com\/en-us\/kb\/2846960\" target=\"_blank\" rel=\"noopener noreferrer\">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<\/a><\/p>\n<p>Or run the <a href=\"https:\/\/github.com\/edbarnes-msft\/DrDAV\/blob\/master\/Test_MsDavConnection.ps1\" target=\"_blank\" rel=\"noopener\">WebDAV diagnostics script by Ed Barnes<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FAQ Debugging and support Due to the high volume of emails and messages, I can&#8217;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 &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/onedrivemapper\/onedrivemapper-faq\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">OnedriveMapper FAQ<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":129,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_crdt_document":"","footnotes":""},"class_list":["post-873","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages\/873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=873"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages\/873\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages\/129"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}