

Line105 – Changed $driveletter to “H:” – My preference homedrive letter Line104 – Changed $Domain to “WILKYIT.COM” – My domain name in Office365 Option is office is now gone within Office. USER – Administrative Templates\Microsoft Office 2016\Miscellaneous – Disable Show OneDrive Sign In As the script is mapping a Nework Drive we want to hide all other options to OneDrive in Office Step 5: Disable OneDrive Options in Office 2016īy default, Office has OneDrive Option during Save/Save As which is linked to the Desktop Application.
#Map drive webdav netdrive windows
This setting will remove it from Windows ExplorerĬOMPUTER – Administrative Templates\Windows Components\OneDrive – Enabled Prevent the usage of OneDrive for file storage. Step 5: Disable OneDrive In-built Application in Windows Server 2016Īs the script is mapping a Nework Drive we want to hide all other options to OneDrive in Windows. Untick Enable Protected Mode, as per below image Step 4: Ensure IE Protectmode is disabled in Trusted Sites. This will be done by the OneDriveMapper Script, but can be added to GPO and detailed here for that purpose. VALUE DATA 0 (0 disabled the file locking) Step 3: Adding O365 URL’s to trusted sites HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters Step 2: Ensure WebDAV client file locking is disbaled NOTE: A reboot of the server will be required. Server Manager / Manage / Add Roles & Feature / Next (4 times until Features appears) Out of the box, windows 2016 does not have WebDav Redirector enabled which is required for the script to run successfully. Citrix Profile Manager for roadming profiles.Windows Server 2016 Standard (Desktop Experience), with XenApp 7.12.Use prompt username/password for mapping (although ADFS/Azure AD Joined Windows) option within script.My Office 365 small business subscription.

We have used v2.53 during this article/lab testing.įor testing in this Article Lab environment i will be using the following: + FullyQualifiedErrorId : DriveRootError,Īs one can see the term " successfully evaluates to "".First off, All credit goes to Jos Lieben for the developing the script that this article is based on. + CategoryInfo : ReadError: (Z:PSDriveInfo), IOException OR without the parameter -Persist New-PSDrive –Name $networkDrive –PSProvider FileSystem –Root " New-PSDrive : The specified drive root "" either does not exist, or it is not + FullyQualifiedErrorId : DriveRootNotNetworkPath, + CategoryInfo : InvalidArgument: (Z:PSDriveInfo), NotSupportedException + New-PSDrive –Name $networkDrive –PSProvider FileSystem –Root ". New-PSDrive : When you use the Persist parameter, the root must be a file system location on a remote computer.

New-PSDrive –Name $networkDrive –PSProvider FileSystem –Root " –Persist Via PowerShell I have tried to use the command New-PSDrive and get errors as you see. That confirms that the WebDAV server is configured correctly. I can successfully map manually the network drive via Windows Explorer to the WebDAV server (using the option to use different credentials). I have a script that automatically creates an Azure VM with IIS installed and WebDAV configured.

My goal is to map a network drive in Windows to a WebDAV server via PowerShell.
