Hi
To restart cmd:
shutdown /r /m \PC_name
To logoff cmd:
shutdown /l /m\PC_name
with power shell>
Restart-Computer -ComputerName PC_NAME -Force
you cand use a interface too >
shutdown /i
Regards
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am logged in to the client computer using PowerShell remotely. I am trying to logoff or restart this client computer but nothing working out. Please let me how to properly turn of the client computer using remote PowerShell.
#Actve Directory #Window Server 2019 Datacenter
Hi
To restart cmd:
shutdown /r /m \PC_name
To logoff cmd:
shutdown /l /m\PC_name
with power shell>
Restart-Computer -ComputerName PC_NAME -Force
you cand use a interface too >
shutdown /i
Regards
Hello,
As the error message states, there are users logged in to the computer. They would need to log off before the device is restarted or risk losing data.
To restart the device regardless, try
Restart-Computer -Force