Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: mjlyon on June 04, 2009, 03:26:02 PM
-
I am tring to get the loginscript package to work so I can have different groups map different drives. I can manually map the drives when I log in, but they do not manually run.
My sample script is such:
@ECHO OFF
net use h: /home /persistent:no
-
Looks like you're trying to map your home drive to a drive letter? But there is an option at the bottom of the login script manager to map that automatically to whatever drive letter you like, so I don't think you need to do this?
This is a sample of my login script in case it helps:
echo Hello %USERNAME%, welcome to the network!
echo You are accessing the network from %COMPUTERNAME%
echo And you are running the %OS% os.
echo Please wait, authenticating %USERNAME% with the %LANGROUP% domain
REM To set the time when clients logon to the domain:
net time \\smeserver /set /yes
#ifg cad_users
net use j: /del /yes >nul
net use j: \\Nas_engdev_01\Cadkey %PASSWORD% /USER:%USERNAME%
#endif
if exist Z: net use Z: /del /yes
#ifu supervisor
net use z: \\Nas_engdev_01\FILES %PASSWORD% /USER:%USERNAME%
#endif
This maps windows drive letters to connect to our existing NAS server according to the SME user group. The NAS box is configured with the same user name and pwd as the SME user.
Hope this helps. Rgds. John
-
Looks like you're trying to map your home drive to a drive letter? But there is an option at the bottom of the login script manager to map that automatically to whatever drive letter you like, so I don't think you need to do this?
This is a sample of my login script in case it helps:
echo Hello %USERNAME%, welcome to the network!
echo You are accessing the network from %COMPUTERNAME%
echo And you are running the %OS% os.
echo Please wait, authenticating %USERNAME% with the %LANGROUP% domain
REM To set the time when clients logon to the domain:
net time \\smeserver /set /yes
#ifg cad_users
net use j: /del /yes >nul
net use j: \\Nas_engdev_01\Cadkey %PASSWORD% /USER:%USERNAME%
#endif
if exist Z: net use Z: /del /yes
#ifu supervisor
net use z: \\Nas_engdev_01\FILES %PASSWORD% /USER:%USERNAME%
#endif
This maps windows drive letters to connect to our existing NAS server according to the SME user group. The NAS box is configured with the same user name and pwd as the SME user.
Hope this helps. Rgds. John
What is your drive letter selected for home in the loginscript window for server-manager?
Thanks!
-
Ours is set to U: but that's only for consistency with previous NT server, so users have same drive letter. You should be able to set it to any unused drive letter, but you don't need to manually map it in the logon script.
FYI, we are using XP pro on the client machines.
-
We're also an XP shop. I still cannot get the login script to run when a user logs in.
-
There should be a netlogon.bat file created in the user's home directory. Can you see that file? In my case it is in the root of my U:\ drive. You shouldn't edit this file as it's what's created by the login script manager.
I assume that the login script saves correctly when you press the SAVE button?
Is this a new SME installation? Are you sure that the users are logging onto the domain correctly? I have occasional problems with users logging on wirelessly, where the wireless connection isn't made at the logon point, and this means that the logon script doesn't run. If the logon script runs, you will see a DOS window appear on the toolbar, if you maximise it in time, you can see the commands in the netlogon.bat batch file running.
Are you running XP Pro? as only Pro allows domain logon. XP Home doesn't, so batch file won't run.
-
We're also an XP shop. I still cannot get the login script to run when a user logs in.
are they domain clients? I mean, did you join them to SME's domain?
Ciao
Stefano
-
Yes, they are joined to the domain and I can log on just fine.
-
ok..
then check for errors in /var/log/messages
if you find something wrong, please raise a bug, thank you
Stefano
-
mjlyon, please don't cross post (http://forums.contribs.org/index.php/topic,44209.0.html)