Currently we are not using any logon scripts at all. All mapping in the
past was done on the users local computer. Now we are beginning to have a
need for users to use different computers at different times and I would
like to be able to write a script to change the network drives. I can use
the user manager to assign the H: to their home directory on a server and a
script to assign each user in a department to a departmentally shared volume
designated as P:. What I need to be able to do is make these settings over
ride the locally mapped settings. We are going to start moving everone to a
new server this month and the old one is going away. I would like to:
Drop or delete the old maps that were set up at the workstation with the
user logged in.
H:\\oldserver\userhome
P:\\oldserver\groupshare
and put in
H:\\newserver\userhome (Maybe done through the user manager)
P:\\newserver\groupshare (done with a script)
This way I can move their home directory and group directory at night and
when they log on the next morning they won't know they were moved.
Also can I add a network printer (not LPT on or LPT2 as in net use LPT1:
\\server\printer) through a login script so that it will show up as a
windows printer.
Am I dreaming? I will be glad to supply any more info.
Thanks
Byron
Scott Harding - MS MVP said:
it really is not too complicated. Here is the output from the command line.
Simple mappings to drives are very easy to create and the info below should
get you started. If this doesn't help do you have a specific need we can
help with? Here's a website with some help
http://www.enterpriseitplanet.com/resources/scripts_win/
The syntax of this command is:
NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]
--
Scott Harding
MCSE, MCSA, A+, Network+
Microsoft MVP - Windows NT Server
Byron Kendrick said:
Does any one have a good document explaining the net use commands and login
scripts. Maybe someone can point me to a URL or any good resource.
Thanks
Byron