[Eisfair] Win7 vom eisfair-Server runterfahren
Thomas Bork
tom at eisfair.org
Fr Mai 15 21:27:43 CEST 2015
Am 15.05.2015 um 11:52 schrieb Marcus Roeckrath:
> wie muss ein "net rpc shutdown" Kommando auf dem eis aussehen, damit man
> einen Win7-Client rrunterfahren kann?
In etwa so:
/usr/bin/net -S WIN7 -d 0 -U roc%password rpc shutdown -t 180 -C
'Shutdown in 3 minute(s). Please save your data and disconnect now!'
Das stellt Dir das Skript /var/install/bin/samba-remote-shutdown
zusammen. Allerdings erhalte ich damit im Moment auch ein
Could not initialise pipe winreg. Error was NT_STATUS_OBJECT_NAME_NOT_FOUND
Das hat schon mal funktioniert...
Nach
https://technet.microsoft.com/de-de/library/cc770416.aspx
und dem Aktivieren der Firewallausnahmen Remoteverwaltung und
Windows-Verwaltungsinstrumentation und dem Starten des
Remoteregistrierungsdienstes wie unter
https://technet.microsoft.com/de-de/library/cc754820.aspx
verändert sich die Fehlermeldung zu
result was: WERR_CALL_NOT_IMPLEMENTED
rpc command function failed! (NT_STATUS_INVALID_SID)
test3267 # net rpc shutdown -t 60 -f -C 'bla' -I WIN7 -U tb -d 1
Enter tb's password:
../source3/rpc_client/cli_pipe.c:482: RPC fault code WERR_ACCESS_DENIED
received from host 192.168.0.52!
rpc command function failed! (NT_STATUS_ACCESS_DENIED)
initshutdown pipe failed, trying winreg pipe
Shutdown of remote machine failed
result was: WERR_CALL_NOT_IMPLEMENTED
rpc command function failed! (NT_STATUS_INVALID_SID)
Dann fehlte noch:
https://support.microsoft.com/en-us/kb/951016
test3267 # net rpc shutdown -t 60 -f -C 'bla' -I WIN7 -U tb -d 1
Enter tb's password:
Shutdown of remote machine succeeded
--
der tom
[eisfair-team]
Mehr Informationen über die Mailingliste Eisfair