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

Michael Howard mike at dewberryfields.co.uk
Wed Dec 16 11:59:08 UTC 2020


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.

-- 
Michael Howard




More information about the samba mailing list