Monthly Archives: November 2016

Command Line VPN Dial

In Windows 10 you can select a VPN connection from the Network Tray icon. But instead of dialing the connection directly it takes you to the VPN screen where you have to find the correct VPN connection and hit dial. It is no big deal but just feels slow using the mouse.

While Googling for a way to dial a VPN connection with PowerShell I found that Rasdial.exe can be used to dial an already configured VPN connection and also terminate it when done. Launcing this from the Windows Run box is easy.

rasdial "Connection Name"
rasdial "Connection Name" /Disconnect

Fix Windows Offline Files Cache

It can happen that the Windows Offline File Cache becomes corrupt. A simple solution that I used to do was just have it reset the cache by setting the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CSC\FormatDatabase to 1.

Although this works, it removes all offline data and requires a full sync of all offline files which can take time.

Continue reading