Network share connections established are either persistent or ghosted.
Persistent connections are reconnected at relogon. Setting to ghosted
connections is a good privacy measure.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Control\NetworkProvider
Name:
RestoreConnection
Type: REG_DWORD
Value: 0 ghost connection
Value: 1 persistent
The command-line syntax of whether connections are persistent is
net use drvltr: \\servername\sharename /persistent:YES|NO
To include in a policy modify:
Hive: HKEY_USERS
Key: .DEFAULT\Software\Microsoft\WindowsNT\CurrentVersion\Network\Persistent
Connections
Name: SaveConnections
Type: REG_SZ
Value: no not persistent
Value: yes persistent