[Samba] Problem shutting down Win7 Clients with net rpc

Florian Götz f.goetz at hs-mannheim.de
Fri Oct 19 05:42:36 MDT 2012


Hi everybody,

I used to shutdown our workstation pools with the net rpc command. 
Something like this:

net rpc SHUTDOWN -t 300 -f -C "Nice closing message" -W MYDOMAIN -U 
WORKSTATION_NAME\\administrator%localadminpasswd -S 192.168.7.49
Could not connect to server 192.168.7.49
Connection failed: NT_STATUS_BAD_NETWORK_NAME


This worked perfectly with Windows XP, but now all workstations were 
freshly installed with Windows 7.
After a long google session I tried all different kind of solutions (no 
firewall, regedit LocalAccountTokenFilterPolicy, etc)
But I still don´t get it to work.

When the Windows 7 Clients is running, some user is logged in and 
working I get the following result to the net rpc command above:

Could not connect to server 192.168.7.49
Connection failed: NT_STATUS_BAD_NETWORK_NAME

If the Client is in the sleep mode (seems to be standard in Win7) after 
some minutes doing nothing the message changes to:

Could not connect to server 192.168.7.49
Connection failed: NT_STATUS_BAD_NETWORK_NAME

Has anyone got a solution for this?
I would turn of the sleep mode, that is no problem, but even if the 
client is awake....I have no solution yet to shutdown the client.



Best regards
Florian Götz


-- 
Mit freundlichen Grüßen
Florian Götz


-----------------------------------------------------------------

Dipl.-Inf. (FH) Florian Götz
Rechenzentrum Hochschule Mannheim
Paul-Wittsack-Straße 10
68163 Mannheim
Tel: 0621/292-6232

EMail:     f.goetz at hs-mannheim.de
Internet:     http://www.rz.hs-mannheim.de

-----



More information about the samba mailing list