[Samba] Remote Shutdown PC

Giedrius giedrius+samba at su.lt
Sun Sep 29 05:36:12 MDT 2013

    Try winexe ( http://sourceforge.net/projects/winexe/) (or PSexec for
that matter)
    One downside - this will install additional service winexesvc and
issue commands (between "") in plain text.
    If you specify -U DOMAIN/User%password (instead of default
LOCAL_SERVICE) this will also be plain-text visible from network

    kinit (for Kerberos ticket)
    winexe -k1 //NETBIOSNAME "shutdown -s -f"
    Works for me.

2013.09.29 14:11, Szymon Życiński rašė:
> W dniu 2013-09-29 13:04, Szymon Życiński pisze:
>> Hello
>> How can i remotely shutdown machines joined to Samba4 PDC? I tried:
>> $ net rpc shutdown -C "comment" -I IPADDRESS -U USERNAME%PASSWORD
>> using domain admin username and account but it does not work. I was only
>> able to shutdown 1 XP machine. Vista and 7 didn't work. Do i have to add
>> some GPO/Firewall settings?
>> Szymon
> I have also tried local admin account but it does not work too.
> Szymon

More information about the samba mailing list