[Samba] RPCClient - Shutting down a Windows machine from Linux

Andrew Bartlett abartlet at samba.org
Tue Mar 23 23:22:29 GMT 2004


On Wed, 2004-03-24 at 05:53, barsenault at gto.net wrote:
> Hello everyone,
> 
> As part of a backup routine, my Linux machine wakes a remote Windows
> machine using Wake-on-LAN, mounts a share using Samba, and copies the
> backup across the network to the Windows machine.  As a final step in
> this process, I'd like to shut the Windows machine down.
> 
> To accomplish this I am using rpcclient which comes with Samba.  The
> funny thing is that rpcclient's shutdown command will only work if a
> user is logged into the Windows machine.  My backup routine does not
> have an interactive login, so shutdown fails with error code 0x00000015
> (??).  I don't understand this, and expect that something is wrong with
> the Windows Setup. 

Try 'net rpc shutdown' instead.  They use slightly different codepaths
now.

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20040324/794fb9fa/attachment.bin


More information about the samba mailing list