Ghost vs Persistent Network Connections

  • Section(s): Network
  • Published on Apr 20, 2004.
  • Last Modified on Apr 20, 2004.
  • Last Modified by Wayne Maples.
  • Rated 4 out of 5 based on 9 votes.
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

About Wayne Maples

Share this article


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Network Inventory solution?