Map desktop to network drive

2

2

I love using my desktop to store all of my latest projects and work however It troubles me this is kept on my local machine. Is there any way to map the desktop so that everything it contains is stored onto a network location instead?

I already have shortcuts to network folders/drives on my desktop, but what I'm after is a more pure solution.

agradl

Posted 2011-09-28T14:15:26.420

Reputation: 255

Are you on a Windows Server Active Directory domain? – Dave M – 2011-09-28T14:46:58.320

yes, its on our corporate network – agradl – 2011-09-28T16:34:48.767

Answers

5

I think you're saying that you would like your desktop to be populated with the contents of a folder that is somewhere on the network, presumably with better management, backups, etc. (since your desktop is really just a folder anyway). Also, I will assume you have permissions to the network locations and local admin permissions. Warning, if you network goes down you won't be able to get your desktop!

  1. Start by making a folder in the network location you want your desktop to be. Then "Map Network Drive" from "Computer" in Explorer (XP: Tools > Map Netowrk Drive). Select the drive letter and the \\server\folder (you can browse if you want).
  2. Then (Vista/7), go into your user folder (typing %USERNAME% works in all versions): C:\Users\<username>\ and right click on the Desktop folder, click Properties, Click Location tab and type in <mapped drive letter>:\ or click Move to find the network mapped drive. That should do it. You may need to restart.

OR: 2. In XP I think you would have to change a registry setting.

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

On the right sind you should see the path to Desktop: change it to your mapped network drive. Big warnings here about changing your registry. Also, I've never changed this key so I can't predict if there are any issues or complications with it. Research this more before you do it.

Of course, all this could be done by cmd with junctions, but I think this is messy.

mklink /J "%USERNAME%\Desktop" "<mapped drive letter>:\ or network folder"

or in XP (requires linkd.exe from the Resource Kit)

linkd "%USERNAME%\Desktop" "<mapped drive letter>:\ or network folder"

I hope this helps.

Ryan Clarke

Posted 2011-09-28T14:15:26.420

Reputation: 1 422

I need help, my desktop is located on a network drive but I work from home sometimes and it's really slow to log in when Offline? – JPelletier – 2015-09-24T18:59:55.317

@JPelletier this is because windows tries to connect to the network share before finishing the logon. Run gpedit.msc  > Computer Configuration\Administrative Templates\System\User Profiles\

and set maximum wait time for the network to 10 seconds. – Ryan Krage – 2018-08-28T10:20:11.550

No need to map a Network drive. You can put network path directly into Location – Veton – 2014-04-11T22:03:30.500