Windows server 2008 – How to install or remove role using command line

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 05-05-2009

0

This post will show how to use command line in Windows server 2008 to install and remove role.  In our case we will install and then remove Web server role with all IIS components onboard.

To install role type:

servermanagercmd -install Web-Server

To remove Web Server role type:

servermanagercmd -remove Web-Server

More roles can be found here .

Windows server 2008 Core – How to add Hyper-V virtualization role via command line

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 02-05-2009

0

In this post you`ll see how to add Hyper-V virtualization role to your Windows server 2008 Core server. For that open command line and type:

start /w ocsetup Microsoft-HYPER-V

To check available roles use Oclist command .