<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://goxia.maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://goxia.maytide.net/read.php/1642.htm</link>
<title><![CDATA[[WS2012] HOWTO：切换至 Windows Server 2012 的 Minimal Server 模式]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Windows Server]]></category>
<pubDate>Tue, 04 Dec 2012 06:03:29 +0000</pubDate> 
<guid>https://goxia.maytide.net/read.php/1642.htm</guid> 
<description>
<![CDATA[ 
	<p><a href="http://goxia.maytide.net/ftpupfiles/-Windows-Server-2012_A734/logo_winserver2012.png"><img title="logo_winserver2012" border="0" alt="logo_winserver2012" src="http://goxia.maytide.net/ftpupfiles/-Windows-Server-2012_A734/logo_winserver2012_thumb.png" width="220" height="44"></a></p> <p><font color="#fd3f0d" size="4"><strong>HOWTO：切换至 Windows Server 2012 的 Minimal Server 模式</strong></font></p> <p><font color="#000000" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;《<a href="http://goxia.maytide.net/read.php/1641.htm" target="_blank">Windows Server 2012 的四种运行界面模式</a>》这篇日志中 <a href="http://goxia.maytide.net/" target="_blank">gOxiA</a> 讲述了 Windows Server 2012 的四种运行界面模式，相信大家对其中的 Minimal 最为敢兴趣！今天 gOxiA 将用一些时间与大家分享如何切换到 Minimal 模式。在开始前我们先来了解一张图示：</font></p> <p><a href="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/image.png"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/image_thumb.png" width="520" height="237"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在这种图中显示了 Windows Server 2012 四种运行界面模式的层次以及对应的模块名称，以官方的说法，WS2012提供的只有两种安装选项，Server Core 和 Server with GUI，后者便是文中所讲的 FullServer。但是我们可以通过命令行在实际的四种模式间进行灵活的切换。如果我们先前安装系统时选择的是 Server Core，之后我们可以借助 Powershell 将界面模式切换至 Minimal，或 FullServer，最终则是更全面的 Desktop Experience，而这些也是我们要了解的重点。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/image_3.png"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/image_thumb_3.png" width="633" height="476"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;例如，我们要将一个处于 FullServer 界面模式的系统切换至 Server Core，那么可以直接运行下面的命令行：</p> <p><div class="code">uninstall-windowsfeature user-interfaces-infra</div></p> <p><a href="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/ServerCore.png"><img title="ServerCore" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="ServerCore" src="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/ServerCore_thumb.png" width="633" height="476"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在执行完上面的命令后，需要重启计算机（restart-computer），之后我们便会看到当前的系统已经是 Server Core 界面模式。如果日后需要切换到 Minimal 模式，则只需安装“server-gui-mgmt-infra”模块即可，命令参考如下：</p> <p><div class="code">install-windowsfeature server-gui-mgmt-infra</div></p> <p><a href="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/install_windowsfeature_server_gui_mgmt_infra.png"><img title="install_windowsfeature_server_gui_mgmt_infra" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="install_windowsfeature_server_gui_mgmt_infra" src="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/install_windowsfeature_server_gui_mgmt_infra_thumb.png" width="633" height="476"></a></p> <p><a href="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/minimal.png"><img title="minimal" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="minimal" src="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/minimal_thumb.png" width="633" height="476"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重新启动计算机后，进入的系统便是 Minimal 模式，如上图所示，我们除了能运行 sconfig 外，还能启动“ServerManager”或“MMC”。如果我们需要再继续切换到 FullServer 模式除了可以通过“添加角色和功能”以外，我们仍旧可以使用 Powershell 执行切换。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/server_gui.png"><img title="server_gui" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="server_gui" src="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/server_gui_thumb.png" width="633" height="476"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Powershell 切换到 FullServer 的参考命令如下：</p> <p><div class="code">install-windowsfeature server-gui-shell</div></p> <p><a href="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/FullServer.png"><img title="FullServer" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="FullServer" src="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/FullServer_thumb.png" width="633" height="476"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这样我们便能切换到完整的服务器运行界面模式，如上图所示。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如果希望通过 Powershell 获取当前 Windows Server 2012 的组件安装情况可以使用“get-windowsfeature”命令。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/get_windowsfeature.png"><img title="get_windowsfeature" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="get_windowsfeature" src="http://goxia.maytide.net/ftpupfiles/026a0c0eb051_9AC0/get_windowsfeature_thumb.png" width="633" height="476"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在掌握了 Windows Server 2012 四种运行模式的切换方式后，IT人员就能轻松，灵活地根据实际的管理需求，对服务器界面进行选择和部署。</p><br/>Tags - <a href="https://goxia.maytide.net/go.php/tags/microsoft/" rel="tag">microsoft</a> , <a href="https://goxia.maytide.net/go.php/tags/windows/" rel="tag">windows</a> , <a href="https://goxia.maytide.net/go.php/tags/server/" rel="tag">server</a> , <a href="https://goxia.maytide.net/go.php/tags/2012/" rel="tag">2012</a> , <a href="https://goxia.maytide.net/go.php/tags/powershell/" rel="tag">powershell</a> , <a href="https://goxia.maytide.net/go.php/tags/fullserver/" rel="tag">fullserver</a> , <a href="https://goxia.maytide.net/go.php/tags/servercore/" rel="tag">servercore</a> , <a href="https://goxia.maytide.net/go.php/tags/minimal/" rel="tag">minimal</a>
]]>
</description>
</item>
</channel>
</rss>