#SCCM Expert #Private Cloud Consultant#SQL Expert#Corporate Trainer #Automation Consultant

Mapped drives disappear after logoff or reboot

Hi everyone, usually we see that mapped drives disappear after logoff or reboot. So below are the following 2 ways to prevent that from happening . I had an issue today where i was running the orchestrator and it had to connect to mapped drive but as i soon as i logged off the runbook was failing . I had to disconnect the session in order for the mapped drive to work . But that was not the solution . Please find the steps mentioned below to get around the problem:

Method 1:

  1. Open a Command Prompt as the user that the drives are not being remembered. Do not use the “Run as Administrator”. In this case we don’t want to do that. At the Command Prompt type: net use <enter>
  2. Does it say something like this: C:\>net use. New connections will not be remembered.
  3. If it says they “will not be remembered”, then you need to change that. Type: net use /p:yes

That will change the system setting for the user to make the drives remembered all the time and will be the default action.

If the above is not the case then map the drive through the Command Prompt and see if the mapping is remembered.

net use /p:yes

net use r: \\servername\sharename

You may change the drive letter R: above to any free letter you wish. However remember that if you use a letter that is too close to the beginning of the alphabet you may overlap with USB devices and then one or the other will be missing. You can replace the R: with * and it will start with the next free drive letter starting at the bottom of the alphabet. That should make the drive be remembered through log off and reboot.

Method 2:

The long-term fix is a registry edit that will make mapped drives visible in both standard and administrative sessions.

  1. Press Windows +R and type in : regedit
  2. In Regedit, navigate to HKLM//SOFTWARE//Microsoft//Windows //Current Version//Policies //System.
  3. Create a new REG_DWORD entry named “EnableLinkedConnections”.
  4. Set its value to 1.
  5. Reboot after adding the registry entry and programs will be able to see mapped drives forever.

Note: This section, method, or task contains steps that tells you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs.

Hope this helps 🙂

Advertisements

Tagged as: , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Translate

%d bloggers like this: