

Step 2: After a short period,the username and then the password prompted will be presented Step1: After Desktop shows during login, the bottom right will start the below (when it disappears this means script has completed successfully)
DRIVE MAP TO ONEDRIVE FOR BUSINESS WINDOWS
USER Windows Settings\Scripts\Logon – Copy Powershell Login Script worked on above to the “show files” section of Logon Script and Add the OneDriveMapper_v2.53.ps1 so that it runs on logon. Line138 – Changed $versionCheck to “false” – stop checking if script is the latest version Add OneDriveMapper Script to Log on Script/GPO Line114 – Changed $showElevatedConsole to “false” – hide any console from end user Line113 – Changed $showConsoleOutput to “false” – hide any powershell output (info/errors)

Line115 – Changed $UserlookupMode to “4” – Prompt for Username/password Line109 – Changed $O365customername to “Wilky” – My Office365 organisational name Line108 – Changed $drivelabel to “OneDrive – Personal” – My preference homedrive letter 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. 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.
