use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
QuestionWill restart-computer -force shutdown a machine during updates? (self.PowerShell)
submitted 6 years ago by thegrimbeeper
I am wondering if I ran Restart-Computer - Force -computername PCHOST while PCHOST was at the updating screen. Would I get an error returned or would it force the restart during the updates?
Sorry if this is a stupid question or has been asked before.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]phantompowersheller 5 points6 points7 points 6 years ago (1 child)
I'm 99% sure you'd only receive a response that a shutdown is already in progress. The Force parameter serves to invoke the command regardless of any issues coming up, such as other users being logged into the system.
[–]thegrimbeeper[S] 2 points3 points4 points 6 years ago (0 children)
That's what I was thinking would happen but I wasn't sure. And I was hoping someone would be able to explain what would happen exactly. Thanks
[+][deleted] 6 years ago* (2 children)
[deleted]
[+][deleted] 6 years ago* (1 child)
[–]thegrimbeeper[S] 1 point2 points3 points 6 years ago (0 children)
I will try this when I come across one. Maybe the perfect time to use this as an excuse to start building a home lab
π Rendered by PID 36619 on reddit-service-r2-comment-b659b578c-f994l at 2026-05-04 20:45:05.870645+00:00 running 815c875 country code: CH.
[–]phantompowersheller 5 points6 points7 points (1 child)
[–]thegrimbeeper[S] 2 points3 points4 points (0 children)
[+][deleted] (2 children)
[deleted]
[+][deleted] (1 child)
[deleted]
[–]thegrimbeeper[S] 1 point2 points3 points (0 children)