Powershell changing computer state

Homepage Forums Business Sector Code Snippets Powershell changing computer state

This topic contains 0 replies, has 1 voice, and was last updated by  Art 3 months, 1 week ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1276
    Helpful
    Up
    0
    Down
    Not Helpful

    Art
    Keymaster

    (Get-WmiObject -Class Win32_OperatingSystem -ComputerName .).Win32Shutdown(0)

    Stop-Computer

    Restart-Computer -Force

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.