How to make WebDav 2012 R2 server work with Windows 7
(despite Microsofts effort not to support it except for Windows 10)
SETTINGS UP THE WINDOWS 7 COMPUTER
1) Using Regedit or a <name>.REG file, create a new REGISTRY key in:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters
Type: REG__MULTI_SZ
Name: AuthForwardServerList
Value: https://webdav.minserver.se
Add more targets if needed on a new line in the multi-string registry settings.
2) Add server credentials by using the Control Panel\All Control Panel Items\Credential Manager
Example, add a "Generic Credentials" entry:
Network address: webdav.minserver.se
Username: hemma\Mittkonto
Password: MyPassword
3) Import the server Certificate (either self-signed or a real one) to your computer. Store the imported certificate in "Place all certificate in the following store -> Browse..." (show physical stores) "Trusted Root Certification Authorities -> Registry" – or just let it decide for itself.
Via PowerShell (requires windows 8 or later):
$pfx = 'webdav.minserver.se.pfx'
Import-Certificate -FilePath $pfx -CertStoreLocation Cert:\LocalMachine\Root
4) When/if Windows asks you to select a certificate, just use whatever, or... The server is set to ignore client certificates. Anyhow, your local Windows 7 may however want to use a certificate. If no certificates are shown, import a (for example, the server cert) certificate to your "Place all certificate in the following store -> Browse... <show physical stores> -> Trusted Root Certification Authorities > Registry". This way you can use selfsigned certificates as you imported them manually and placed them into the "Trust".
5) Restart the local computers services "Cryptographic Services" and "Web Client" by issuing the following at the elevated (administrator) command prompt (cmd):
net stop CryptSvc & net start CryptSvc
net stop WebClient & net start WebClient
The ampersand & character serializes (waits) the commands one at a time despite being a one-liner.
6) Link a local drive letter to a server network share, such as:
net use z: https://webdav.minserver.se/utdelning /user:mittkonto mittpassword
or
net use z: https://webdav.minserver.se:666/utdelning /user:mittkonto mittpassword
SETTING UP THE SERVER
Install and setup WebDav in the Windows Server 2012 R2 according to:
https://docs.microsoft.com/en-us/iis/configuration/system.web...
Set the Site "Default Web Site" authentication to "Basic" and "Windows". Disable "Anonymous" and disable ASP.NET authentication.
Create a sub-directory, like C:\utdelning
Add a virtual directory "mittkonto" to the WebDav enabled web instance "Default Web Site" that points to C:\mittkonto
Modify "WebDav Authoring Rules" by adding path "mittkonto" to the user "mittkonto" and set access rights to "read/write/source".
Restart the server IIS.