How to Restart Computer with PowerShell

0 votes

Hi Guys,

I have launched an EC2 instance for Windows. I am trying to connect it using python script so that I can turn off the Windows system using PowerShell. How can I do that?

Oct 7, 2020 in Others by akhtar
• 38,260 points
2,440 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use the Restart-Computer command in your PowerShell. But first, your instance should be in running state. You can see the below command.

$ Restart-Computer -ComputerName "Server01" -Wait -For PowerShell -Timeout 600 -Delay 2
answered Oct 7, 2020 by MD
• 95,460 points

Related Questions In Others

0 votes
1 answer

How to communicate gRPC example working with Node.js?

hi.. you can read below link, it ...READ MORE

answered Dec 2, 2019 in Others by Narendra Reddy Dalli
2,389 views
0 votes
1 answer
+1 vote
0 answers

How to split a number with coma betweeen two colunms

Jul 3, 2019 in Others by anonymous
868 views
0 votes
1 answer

How to deal with a Project Manager with controlling nature?

It depends on whether the Project Manager ...READ MORE

answered Jul 29, 2020 in Others by Sirajul
• 59,230 points
830 views
0 votes
1 answer

How to restart docker for windows using Powershell?

Try this: $processes = Get-Process "*docker for windows*" if ...READ MORE

answered Oct 23, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
7,555 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

how to install Amazon AWS Command Line Interface tools on Bamboo build agent.

Hi@Abhishek, You need to set the following parameters ...READ MORE

answered Apr 6, 2020 in Others by MD
• 95,460 points
1,874 views
0 votes
1 answer

How to install Flutter in Windows system?

Hi@akhtar, You can follow the below-given steps to ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,460 points
1,795 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP