Click to See Complete Forum and Search --> : Logon Scripts


EmsPat
January 14th, 2001, 11:37 PM
I am running Windows 2000 Advanced Server at home and I had a machine running 2000 Professional logging into it for a while. I had problems with Professional finding my ECP port so I just gave up and went back to Win98. I have it logging into my domain, and that's fine and I can see the files. However, I'd like to create a logon script. I'm getting an error with the one I currently have which is simply:

net use E: \\Upstairs01\Network\KJohnson

KJohnson is the folder that I'd like for the user KJohnson to log onto and use. I have it as a batch file and I'm getting the error that it can't do it for whatever reason. Can anyone help and give me better direction in writing these scripts and the like?
I'd appreciate it!

lmadajczyk
January 15th, 2001, 03:27 PM
I just happened to be wandering through this section and I saw your post. I've been using Kixtart at work, it seems to handle most everything I throw at it. It will allow you to create a script that includes a line like this:

USE X: @HOMESHR

Where the @HOMESHR is the directory you set in your account. Or you can try this:

USE X: \\Upstairs01\Network\@USERID

or something to that effect. I hate to preach this scripting utility, but it's been a godsend to me, and has done everything from logon scripts to software rollouts!

You can find it at www.kixtart.org (http://www.kixtart.org)

Hope that helps!

------------------
Lee Madajczyk, MCP
Systems Administrator

a3aanw
January 16th, 2001, 03:42 AM
The syntax of net use is :
net use driveletter \\servername\sharename.
So you can only connect to a share. If you want a user to connect directly to his homedirectory, you've got to share it on the server. If you don't want everybody to see the usre shares then you have to make them hidden. So for your example share the directory KJohnson as KJohnson$ (Hidden Share) Then in your logonscript you can use : Net Use E: \\Upstairs01\%username%$