0

I want to automate test using powershell. I want to write a script to shutdown the computer, wait for 3minutes and then power on the computer. Is it possible using Powershell? I know that reboot is possible, but I want the system to remain in shutdown stage for 3min and then power on.

1
  • That would only be possible I would think using a WOL solution on a different system. Why 3 minutes? It is possible you are trying to address a different problem? Commented Apr 15, 2015 at 4:26

2 Answers 2

1

If you mean a "real computer" (not a Virtual Machine) so it's not possible. But you can achieve that using Virtual Machine setup. Take look at this documentation: https://technet.microsoft.com/en-us/library/hh848589.aspx

Sign up to request clarification or add additional context in comments.

Comments

0
  1. You can shutdown computer with Stop-Computer command
  2. Wait with Start-Sleep
  3. But to poweron PC you need something more complex, take a look at WOL. However there are some difficulties:
    • It would work only with PCs that allow to be awakened with magic packets
    • You need to know MAC-address of machine
    • Target machine should be in the current network subnet of the caller.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.