Koozali.org: home of the SME Server

Map My Documents to network share

Offline danfulton

  • *
  • 19
  • +0/-0
Map My Documents to network share
« on: November 08, 2007, 01:28:51 PM »
Hi,

I am trying to map the My Documents folder on XP Pro machines to a users home drive on the network, but am getting very confused looking at the info I've found ...

I've got the smeserver-loginscript-0.2-8.noarch.rpm contrib to change the netlogon.bat script, and map users shares happily, but can not figure out how to map the 'My Documents' folder.

I think I need to apply the following registry patch,

[Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"AppData"="H:\.windows_settings\Application Data"
"Desktop"="H:\.windows_settings\Desktop"
"Programs"="H:\.windows_settings\Start Menu\Programs"
"Recent"="H:\.windows_settings\Recent"
"Start Menu"="H:\.windows_settings\Start Menu"
"Startup"="H:\.windows_settings\Start Menu\Programs\Startup"
"My Pictures"="H:\My Documents\My Pictures"
"Personal"="H:\My Documents"

But I'm not sure how to do it, for safety I think it should be installed everytime a user logs in, but have no idea how to achieve this :(

Any help much appreciated.

Dan

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Map My Documents to network share
« Reply #1 on: November 08, 2007, 02:25:38 PM »
danfulton

Assuming you already have mapped users home folders to H: drive.
In Windows, right click My Documents/Properties then
enter H:\ in the Target field, then click Move and then OK.
...

Offline danfulton

  • *
  • 19
  • +0/-0
Re: Map My Documents to network share
« Reply #2 on: November 08, 2007, 02:44:09 PM »
That will work, but I'm after a way of doing it automatically, hopefully via a login script.

Dan

Offline shell

  • ****
  • 117
  • +0/-0
Re: Map My Documents to network share
« Reply #3 on: November 09, 2007, 12:26:54 AM »
You could create a small bat file that runs via the login script - use a call command.  The batch file can apply a reg key silently - use the /s switch.

For example:

In login script:

call \\servername\sharename\batchfile.bat

In batch file batchfile.bat:

regedit /s \\servername\sharename\printer.reg

Cheers,
Shelley

Offline danfulton

  • *
  • 19
  • +0/-0
Re: Map My Documents to network share
« Reply #4 on: November 09, 2007, 09:21:18 AM »
shell,

That looks like a possible solution, I'll try it out, and let you all know the outcome.

Cheers

Dan

Offline steever

  • *
  • 185
  • +0/-0
    • Open-Sesame
Re: Map My Documents to network share
« Reply #5 on: November 13, 2007, 02:33:42 PM »
You can always use poledit and http://open-sesame.com.au/redirect.zip
Saving the world ... one server at a time.