Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: kippi on February 10, 2010, 10:58:18 AM
-
Hi
I seem to be having a problem with netlogon.bat. It seems to be working fine on windows vista but on a few of my other machine that are XP are not running the script correctly.
If I run the script \\my-server-ip\netlogon\netlogon.bat all works fine, just isn't running when they first login.
Could someone help me troubleshoot this.
Many Thanks
Chris
-
Ok, looking more into this it only seems to work with vista and not xp pro.
Thanks
Chris
-
Ok, Not sure how but it is working on most machines but there are still machines that the login script it not working correctly on.
Many Thanks
Chris
-
Chris:
are you using smeserver-loginscript contrib?
-
Hey
Sorry to waste everyones time but it's nothing to do with SME server its because I am trying to delete all network drives and then map new drives and it doesn't seem to like it.
Many Thanks
Chris.
-
kippi
Look up the command
net use
Something like this works
net use /delete H: /yes
net use /delete J: /yes
net use /delete K: /yes
net use /delete P: /yes
net use /delete R: /yes
net use /delete S: /yes
net use /delete T: /yes
net use /delete U: /yes
net use /delete Y: /yes
net use H: /home
net use J: \\server\cd-dvd
net use K: \\server\k
net use P: \\server\p
net use R: \\server\r
net use S: \\server\s
net use T: \\server\t
net use U: \\server\u
net use Y: \\server\y
net use \\server\hplaserxxxx
net use \\server\hplaserxxxx
net time \\server /set /yes
net use /delete Z: /yes
-
I wanted to remove all mapped drives that might off be mapped from the machine before.
Thanks
-
kippi
Just add a line for each letter of the alphabet
net use /delete D: /yes
net use /delete E: /yes
net use /delete F: /yes
net use /delete G: /yes
and so on ......
net use /delete X: /yes
net use /delete Y: /yes
net use /delete Z: /yes
-
or, in a easier way, you can simply do
NET USE * /DELETE /Y
This will clear all mapped drives, without prompting, and allow you to create new ones without conflict.
-
This is where the problems come. Everything is fine up to the point of adding in NET USE * /DELETE /Y and it stops re-mapping the drives.
Many Thanks
Chris
-
Chris, did you try to search with google? something like "logon script remove all mapped drives"?
you'll find many results..
anyway, you din not answer my previous question: are you using smeserver-loginscripts contrib?
-
Stefano
I know how to remove drives it when you add it to their logon script that it stops the other drives from mapping.
I did download this and install it but have not used it yet, I am using:
call \\192.168.20.250\netlogon\scripts\%USERNAME%.bat to load the users login script.
Thanks
Chris.
-
Ok,
Long and short of it all I needed to do was to add C: at the start of my netlogon script and all is working now.
Thanks for all your help.
Chris.