[Samba] Problems with Windows7-Clients and Samba-Shares
Hullen at t-online.de
Thu Feb 10 09:48:00 MST 2011
Du meintest am 10.02.11:
> The logoff from the network shares on the Windows 7 clients is
> realised by a simple "net use * /d /yes"
But you can't assure that every user disconnects via this command.
> The little programm sends username
> und password to the server and the server creates then the *.bat file
> with the net use-command to connect the shares. To do so the
> connection uses the linux-server ip adress e.g.
> "\\10.94.1.3\login$\connect.exe" and user nobody as guest. The
> created *.bat file contains the net use commands as
> "\\servername\share" with the username and individual password.
Windows is a multitasking system. Subsequent lines in a *.bat or *.cmd
may be executed nearly parallel.
To avoid that you should work with "start /w ...", p.e.
start /w net use * /del /yes
start /w net use u: \\%SERVER%\%USERNAME%
More information about the samba