Powershell changing computer state

Why Us? Forums Business Sector Code Snippets Powershell changing computer state

  • This topic has 0 replies, 1 voice, and was last updated 8 months ago by Art.
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.