Scripting

Uncle_John

Beta member
Messages
5
I'm looking for examples of a script that will allow me to dynamically map the "My Documents" folder to a folder on the network.
 

root

Site Team
Staff member
Messages
8,181
Location
UK
I don't think it can be done, th My Documents Folder is unnique to profiles...

You can map network drives in a batch file...

net use z: \\server\share
 

daydreamer

In Runtime
Messages
137
well somewhat of that can be done... you just need to create a domain and make a policy in that domain for the user that will automatically share the users "my documents" folder on that network when they login.

However, I don't think it's possible to specify the folder "my documents or any other folder" to be shared under a different folder on the network. It will just share it on the network itself.

The reverse of this is way easier which is what "root" explain by just mapping a network drive to your local computer. You can setup batch file policies to do this. But doing it the other way around i'm not exactly sure if it will work the way u want.
 

root

Site Team
Staff member
Messages
8,181
Location
UK
I've found how to do it..
I'm so happy...

first map the drive, then edit the registry...
My documents folders are set per user in

hkey_local_machine\ software\microsoft\windows\explorer\Docsfolderpath
 

Zderadicka

Baseband Member
Messages
59
Adding on

How do you get a batch file to startup? Ok, say I want to incorporate this batch file with net use z: \\server\share. How do I get it to run when a specific domain user logs on?
 
Top