Shutdown NT server w/ samba client?

Andrew Bartlett abartlet at
Mon Nov 19 13:01:05 GMT 2001

jon_monroe at wrote:
> Hey all,
> I was wondering if a tool existed in samba to remotely shutdown NT/2K servers --
>  something like the shutdown.exe program included w/ the NT4 resource kit? I
> apologize if this has been answered someplace else -- I've looked through the
> message archive, and scanned the source. But, I didn't see anything like this.
> It could be useful, and seems like it wouldn't be too hard to implement using
> the existing samba/smb libraries?

Yep, thats been done.

Grap rpcclient from the HEAD branch, and there is a 'shutdown' command
you can execute on the remote server.  Samba can also shut its machine
down with the same code (ie in the same way an NT4 box is shut down)
once some smb.conf options are set (in HEAD only).

You can thank Simo Sorce <idra at> for this neat little bit of

Andrew Bartlett

Andrew Bartlett                                 abartlet at
Manager, Authentication Subsystems, Samba Team  abartlet at
Student Network Administrator, Hawker College   abartlet at

More information about the samba mailing list