For extra security against Ransomware or Malware attacks it may be desirable to ensure that backup targets on a NAS or a Windows shared folder are disconnected as soon as your backup has finished.
If necessary, Macrium Reflect will automatically create a network connection whenever a backup is created on a network share. Network connections persists until the number of seconds in the Windows network session 'time-out' value is reached. This value is Windows setting and defaults to 15 minutes. Since Windows doesn't share credentials and only one user can have an authenticated network access to a share at any one time, concurrent connections are not allowed by Windows networking.
Disconnect Active Shares
The following command will disconnect an active share when run in an elevated command prompt:
net use /delete \\server\sharename
Macrium Reflect also has a way to automatically delete active connections
Authenticated Network connections created by Macrium Reflect at the start of a backup can be automatically terminated on application exit rather than waiting for the default Windows timeout.
To enable this, create the following registry entry:
Key: | HKEY_LOCAL_MACHINE\SOFTWARE\macrium\reflect\Settings |
Name: | DeleteNetworkConnection |
Type: | DWORD 32 bit |
Value: | 1 |