Discussion Locked

I need Help on a user script

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello..
I would like to configure my users with a logon script that sets their Word and Excell
Option/File location to be:
files: my document
location: \\server\users\%username%
How the script can be coded...

1 reply

by les

Your logon script should map drives first. e.g. amp a H drive to \\servers\users\myhdrive.

Now Use the registry.

Firstly - either point the my documents folder at the server based location or remove it completely, it could get confusing.
To change the location of the my documents folder
edit the registry key below...
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\
User Shell Folders]
Personal="c:\My Documents"

For word and excel default file locations edit the registry keys below...
[HKEY_USERS\.DEFAULT\Software\Microsoft\Office\8.0\Word\Options]
"DOC-PATH"="H:\"
"BackgroundSave"="1"
"AUTOSAVE-PATH"="H:\"

[HKEY_USERS\.DEFAULT\Software\Microsoft\Office\8.0\Excel\Microsoft Excel]
"DefaultPath"="H:\"

If you save these changes into a file called mysettings.reg you could then employ them through a logon script. ensure that the mysettings.reg file is stored with your logon script.
Call the registry file with the following line from your login script...

regedit.exe /s mysettings.reg

(this will silently add your registry settings at each logon.)

This discussion is closed to new replies.