<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>windows server shutdown Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/windows-server-shutdown/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 24 Feb 2021 01:01:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to shutdown and reboot Windows Server 2022 with commands.</title>
		<link>https://www.osradar.com/how-to-shutdown-and-reboot-windows-server-2022-with-commands/</link>
					<comments>https://www.osradar.com/how-to-shutdown-and-reboot-windows-server-2022-with-commands/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Sat, 27 Feb 2021 22:57:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[windows server 2022]]></category>
		<category><![CDATA[windows server shutdown]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28712</guid>

					<description><![CDATA[<p>We continue to explore the features of Windows Server 2022. It is well known that this is Microsoft&#8217;s next solution for enterprise environments. Well, like its predecessors, this version has variants with and without a graphical environment. In addition, it is well known that a common task is to shut down or restart the server. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-shutdown-and-reboot-windows-server-2022-with-commands/">How to shutdown and reboot Windows Server 2022 with commands.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>We continue to explore the features of <a href="https://www.osradar.com/how-to-install-windows-server-2022-on-vmware/" target="_blank" rel="noreferrer noopener">Windows Server 2022</a>. It is well known that this is Microsoft&#8217;s next solution for enterprise environments. Well, like its predecessors, this version has variants with and without a graphical environment. In addition, it is well known that a common task is to shut down or restart the server. Therefore, this can be done from the start menu. However, in environments without a graphical plug-in, then we can do it from the command line. Read on to find out How to shutdown and reboot <a href="https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewserver" target="_blank" rel="noreferrer noopener">Windows Server 2022 </a>with commands.</p>



<h2>How to restart Windows Server 2022</h2>



<p>The first thing you have to do is to open a CMD as administrator. Then use the following syntax:</p>



<pre class="wp-block-preformatted">shutdown /r /t <em>time</em></pre>



<p>Please replace <em>Time </em>with the time you want to wait for the server to restart.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="979" height="511" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/02/re.png" alt="Scheduling Windows Server 2022 reboot" class="wp-image-28713" srcset="https://www.osradar.com/wp-content/uploads/2021/02/re.png 979w, https://www.osradar.com/wp-content/uploads/2021/02/re-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/re-768x401.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/re-696x363.png 696w" sizes="(max-width: 979px) 100vw, 979px" /><figcaption>Scheduling Windows Server 2022 reboot</figcaption></figure>



<p>This means that after 200 seconds, the server will be restarted. On the other hand, it is possible to add a message at restart time. For this purpose, just add the <strong>-c</strong> parameter:</p>



<pre class="wp-block-preformatted">shutdown /r /t time -c  <em>message</em></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="979" height="510" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/02/re2.png" alt="" class="wp-image-28714" srcset="https://www.osradar.com/wp-content/uploads/2021/02/re2.png 979w, https://www.osradar.com/wp-content/uploads/2021/02/re2-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/re2-768x400.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/re2-696x363.png 696w" sizes="(max-width: 979px) 100vw, 979px" /></figure>



<p>The server will restart after the timeout period has elapsed. On the other hand, sometimes there are open programs that prevent a restart. In such a case it is possible to force a shutdown using the following command:</p>



<pre class="wp-block-preformatted">shutdown /r /f</pre>



<p>It is even possible to schedule this task for a remote computer. With this in mind, use the following syntax:</p>



<pre class="wp-block-preformatted">shutdown /r /f /m \\Computer</pre>



<h2>How to shutdown Windows Server 2022 with commands</h2>



<p>The commands for shutting down the server are very similar to that for restarting it. In fact, only the first element changes. So use the following syntax:</p>



<pre class="wp-block-preformatted">shutdown /s /t time</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="978" height="513" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/02/re3.png" alt="Scheduling server shutdown after 400 seconds" class="wp-image-28715" srcset="https://www.osradar.com/wp-content/uploads/2021/02/re3.png 978w, https://www.osradar.com/wp-content/uploads/2021/02/re3-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/re3-768x403.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/re3-696x365.png 696w" sizes="(max-width: 978px) 100vw, 978px" /><figcaption>Scheduling server shutdown after 400 seconds</figcaption></figure>



<p>To add a message we use the -c parameter as follows:</p>



<pre class="wp-block-preformatted">shutdown /s /t time -c message</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="972" height="505" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/02/re4-2.png" alt="" class="wp-image-28718" srcset="https://www.osradar.com/wp-content/uploads/2021/02/re4-2.png 972w, https://www.osradar.com/wp-content/uploads/2021/02/re4-2-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/re4-2-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/re4-2-696x362.png 696w" sizes="(max-width: 972px) 100vw, 972px" /></figure>



<p>To force applications to close we run:</p>



<pre class="wp-block-preformatted">shutdown /s /f</pre>



<p>It is also possible to use it with remote computers:</p>



<pre class="wp-block-preformatted">shutdown /s /f /m \\COMPUTER</pre>



<p>Ultimately, we have seen how to shutdown and reboot Windows Server 2022 with commands. Consequently, we have an expeditious way to manage these tasks on the server. Bye!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-shutdown-and-reboot-windows-server-2022-with-commands/">How to shutdown and reboot Windows Server 2022 with commands.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-shutdown-and-reboot-windows-server-2022-with-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
