Get the App
SLTechnology News&Howtos  ›  Servers  › 

Command line administration windows server role

Shulou Source: shulou.com Published: 2022-06-03 08:27:34 12月06日 Update

1. Windows server 2008

1. Use servermanagercmd.exe

Servermanagercmd.exe-query query

Servermanagercmd.exe-install... Installation

Servermanagercmd.exe-remove... Unloading

2. Use powershell

First of all, powershell import-module servermanager.

Powershell-Get-WindowsFeature...

Powershell-Install-WindowsFeature...

Powershell-Remove-WindowsFeature...

II. Windows server 2012

Powershell-Get-WindowsFeature...

Powershell-Install-WindowsFeature...

Powershell-Remove-WindowsFeature...

Tags: Queries commands servers roles services management Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology OPPO Reno macOS Docker Linux