[Samba] Shutting down a remote PC via "net rpc"

Stefan G. Weichinger lists at xunil.at
Thu Dec 17 09:14:52 UTC 2020

Am 16.12.20 um 12:59 schrieb Michael Howard via samba:
> On 16/12/2020 11:36, Michael Howard via samba wrote:
>> On 16/12/2020 09:55, Stefan G. Weichinger via samba wrote:
>>> Am 14.12.20 um 19:17 schrieb Stefan G. Weichinger via samba:
>> net rpc shutdown -C "MESSAGE" -t 60 -f -I HOSTNAME 
>> -UAdministrator%'PASSWORD' -W DOMAIN
>> Works for me here from the command line, from a bash script and the 
>> same script from cron. The tested PC is Windows 10 Ent. The only 
>> quoting used is on the password as it contains a pipe sign, amongst 
>> other non alphabetics.
> .... obviously the 'message' is in double quotes.

Looks nearly like my try. I had the whole 'user%pw' quoted. We'll try 
that variation, thanks.

More information about the samba mailing list