A
A
Alexander2019-07-19 20:52:30
linux
Alexander, 2019-07-19 20:52:30

How to shut down Windows through Linux?

Please tell me the easiest way to implement to turn off a PC on Windows 10 using the Linux command line... Actually, a server on Linux should shut down the PC on schedule =)
Thank you

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
hint000, 2019-07-20
@SmoKE_xD

#!/bin/bash
DOMAIN="roga-i-kopyta.com"
USER="V.Pupkin"
PASS="Pa$$w0rd"
HOST="192.168.77.66"
net rpc shutdown -f -U "$DOMAIN"'\'"$USER"'%'"$PASS" -t 2 -I "$HOST"

D
Dmitry Derepko, 2019-07-19
@xEpozZ

poweroff
blog.sedicomm.com/2017/11/09/ponyatie-komand-shutd...

S
Sergey c0re, 2019-07-20
@erge

  1. To install either OpenSSH or FreeSSHD on Windows
    , there are some installation problems (with file permissions), see the docks
    Next... connect to a Windows PC via ssh or telnet with a user with administrator rights and execute a command
    or send a command via SSH
    PPS: and... yes, the windows user should most likely have a login of English letters so that there are no problems with the encoding when transferring the login (and they most likely will be)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question