Followers

Server Manager command-line tools, dism, pkgmgr, and ocsetup

Server Manager command-line tools differ from other command-line tools, such as dism, pkgmgr and ocsetup, that are used to install and remove Windows software packages. We recommend that you use Windows PowerShell cmdlets for Server Manager or the ServerManagerCmd.exe command prompt utility for installing or removing roles, role services, and features on a computer that is running Windows Server 2008 R2.

The following list includes ways in which the Server Manager cmdlet set and command prompt utility differ from dism, pkgmgr and ocsetup, and describes advantages of Server Manager command tools for administrators who want to deploy a server as efficiently as possible.

The Server Manager command line is consistent in function and terminology with the deployment and management capabilities of the Server Manager console in the Windows Server 2008 R2 UI.

The type of packages or files in which a role, role service, or feature are contained do not have to be known by users. The Server Manager command line requires only the name of the role, role service, or feature that the administrator wants to install or remove. Administrators do not have to provide any path or file names of role, role service, or feature packages.

Administrators do not have to specify dependencies between roles, role services, and features when they are using the Server Manager command line. The Server Manager command prompt utility automatically installs any other software packages that are required to use the role, role service, or feature specified in the command.

If problems occur with an installation or removal, error handling for ServerManagercmd.exe simplifies troubleshooting and provides clear actions to the user.

The -whatIf parameter of ServerManagercmd.exe lets users verify what actions their commands will perform before they initiate commands and change the system. There is no comparable command parameter included with dism, pkgmgr, and ocsetup.

The Get-WindowsFeature cmdlet and the -query parameter of ServerManagerCmd.exe give users complete views of which roles, role services, and features are available for installation on the computer, and which are currently installed. There is no comparable parameter included with dism, pkgmgr and ocsetup.

Both the input and output of the Server Manager command line is XML based. ServerManagercmd.exe accepts an XML answer file itemizing roles, role services, and features to be installed or removed. Both the results of installation and removal operations, and -query results can be exported to XML files. This enables automation scenarios in which other software can generate and interpret the XML files that are used with the Server Manager command prompt utility.




Source:
technet.microsoft.com

Published By
S.G.Godwin Dinesh.MCA
Sr.System Administrator

No comments:

Post a Comment