Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Allow Basic Authentication with Windows 7 and Windows Vista WebDAV Client
@echo off
:: Allow Windows explorer on Vista and up to use basic auth (for use with 1&1 webdav for example: )
:: Difference with 1&1 script is that it automatically restart the webclient service for changes to be applied immediately.
echo Windows Registry Editor Version 5.00 >"%Temp%\WebDavBasicAuthLevel.reg"
echo. >>"%Temp%\WebDavBasicAuthLevel.reg"
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters] >>"%Temp%\WebDavBasicAuthLevel.reg"
echo "BasicAuthLevel"=dword:00000002 >>"%Temp%\WebDavBasicAuthLevel.reg"
"%windir%\regedit.exe" /s "%Temp%\WebDavBasicAuthLevel.reg"
net stop webclient
del "%temp%\WebDavBasicAuthLevel.reg"
net start webclient
echo Over, Have a nice Dav.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.