vBulletin statistics
Configuring Server Roles and Features in Windows Server 2008 R2 - Windows Server blog by Kurt Roggen [BE]
maandag 7 december 2009 0:05 Kurt Roggen

Configuring Server Roles and Features in Windows Server 2008 R2

Windows Server 2008 includes a command-line utility called ServerManagerCmd.exe that allows administrators to configure roles, role services and features from the command line. Beginning with Windows Server 2008 R2, ServerManagerCmd.exe has been deprecated.  When you attempt to run servermanagercmd.exe you will receive the following message:

“Servermanagercmd.exe is deprecated, and is not guaranteed to be supported in future releases of Windows. We recommend that you use the Windows PowerShell cmdlets that are available for Server Manager.”

Servermanagercmd.exe has been replaced with new PowerShell Server Manager cmdlets (pronounced ‘command-lets’). Before we can use these new cmdlets we must first import them as a PowerShell module.  There is a Powershell module called “ServerManager”.

Open an elevated PowerShell command prompt and enter the following command:

import-module ServerManager

There are 3 new PowerShell cmdlets:

get-command -module ServerManager

CommandType     Name
-----------     ----
Cmdlet          Add-WindowsFeature
Cmdlet          Get-WindowsFeature
Cmdlet          Remove-WindowsFeature

Their corresponding ServerManagerCmd.exe equivalents [in brackets]:

Add-WindowsFeature [servermanagercmd.exe –install]

Get-WindowsFeature [servermanagercmd.exe –query]

Remove-WindowsFeature [servermanagercmd.exe –remove]

For more information: Microsoft Technet: Overview of Server Manager Commands

Filed under: ,

# Configuring Server Roles and Features in Windows Server 2008 R2 … | hostwebsitereview.com

Pingback from  Configuring Server Roles and Features in Windows Server 2008 R2 … | hostwebsitereview.com

# Configuring Server Roles and Features in Windows Server 2008 R2 … | Windows (7) Affinity

Pingback from  Configuring Server Roles and Features in Windows Server 2008 R2 … | Windows (7) Affinity