Windows2012
标准版 = NB4WH-BBBYV-3MPPC-9RCMV-46XCB
数据中心版 = BH9T4-4N7CW-67J3M-64J36-WW98Y
Win2012R2具备四种运行模式简单的说就是: GUI+桌面体验 (Win8.1桌面模式) serverwithGUI (基础桌面模式) Minimal Server (Server Core+ServerManager+MMC) Server Core (命令行模式) 安装时只有2个选项就是Server Core 和serverwithGUI ,不过Server2012改进得已经可以在这四种模式之间随意切换而不需要重装整个系统了,我们可以装了系统之后用powershell随意的切换运行模式: 1,比如我们安装系统时选择Server Core ,安装完以后想切换到Minimal模式,运行以下Powershell命令安装模块: install-windowsfeature server-gui-mgmt-infra 2,重启后进入Minimal模式了除了Sconfig之外还可以使用图形界面的服务器管理器和MMC,想进一步切换到基础桌面模式,我们运行以下powershell命令来安装模块: install-windowsfeature server-gui-shell 3,重启后就是serverwithGUI模式了,如果想要Windows8.1桌面体验: install-windowsfeature desktop-experience 4,如果想从GUI模式切换回Server Core模式,可以运行以下命令: uninstall-windowsfeature user-interfaces-infra |
命令行:
http://www.netadmin.com.tw/article_content.aspx?sn=1311060001
基本设定
sconfig
进入 PowerShell
PowerShell
离开 PowerShell
Exit
检查 Windows 版本
Get-WindowsEdition-Online
帮助
Get-Help
Update-Help
防火墙
Get-NetFirewallProfile
Set-NetFirewallProfile -Name <节点> <字段> <值>
服务
Get-Service
Get-Service <> | FL
Stop-Service <>
Start-Serivce <>
服务器功能和角色
Get-WindowsFeature
Install-WindowsFeature <> [-Source]
UnInstall-WindowsFeature <> [-Remove]