Welcome, Guest
Please Login or Register.    Lost Password?

Login script to redirect My Docs
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Login script to redirect My Docs
#950
Login script to redirect My Docs 12 Years, 3 Months ago Karma: 0
Hi

To stop users from saving documents into their My Documents folder I wrote a logon script to redirct their My Documents to the e: drive, which is the only drive I have not hidden.

I have tested the script on pc's and the server itself and it runs ok, but when I add it to run as a global login script I recieve the error attached

Any help to get the script working or another way to redirect the users My documents to the E drive would be appreciated
Neil
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#951
Asign home folder to a user 12 Years, 3 Months ago Karma: 0
Hi~Neil
May the follow script is suit for you.
Using GoGlobal login script like
net user %username% /homedir:\\server\%username%
net use i \\server\%username%

and you can try
if exist i: net use i: /delete
if not exist \\server\profile$\%username% md \\Server\profile$\%username%
net user %username% /homedir:\\server\profile$\%username%
net use i \\server\%username%




good luck
Jack :shock:
jack
Expert Boarder
Posts: 97
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: troy, Andyl