Logon-Script

Michael Kaschel m.kaschel at sf.hs-wismar.de
Wed Mar 1 15:01:46 GMT 2000


            
>Hi there,
>
>my logon-script is mapping a lot of drives from my PDC with the clients.
>This script is executed the first time a User logs on the PDC.
>When the User log on the second time the script is giving some 
>errormessages:
>"Can´t map the drives the drives are already in use or something like 
>that.
>Is there a possibility to delete the "net use" commands in first step and 

>the connect them again?
>Like 
>delete all net use
>and then
>net use \\PDC\drive
>
>Thank you
>--------------------------------------------------------------------------------------------------

>Mit freundlichen Grüßen
>
>Cord-H. Fricke 
>Fon: 0 52 1 / 52 51-111 
>Fax: 0 52 1 / 52 51-115
>
>..keep on headbangin´ , that rocks!!!
>

You have to use the net command in following manner:

net use Y: \\SERVER\ShareName /persistent:no

This will disconnect the drive, when the user logged out.
Otherwise the connection will restored again when the user
logs in again. When then the script is executed and the
drive is already connected you get the above mentioned
error message.

Best regards

Michael Kaschel
++

          


More information about the samba-ntdom mailing list