Translate

miércoles, 17 de octubre de 2012

Adding new roles to Windows 2008 R2 with powerShell

Actually you can visually add any role to your server with the Server Administrator. But now we have a new tool to work faster with our Windows 2008 Server.

This is the WIndows Powershell, which is Microsoft's task automation framework, consisting of a command-line shell and associatedscripting language built on top of, and integrated with the .NET Framework. PowerShell provides full access to COM andWMI, enabling administrators to perform administrative tasks on both local and remote Windows systems.

For example. We are going to add the .net role to our OS with the powershell, but first of all we need to know the name for the role, so we must type and enter:

get-WindowsFeature

This must show a list of all the features names an wich of them are installed. In our case we found that .net role is called NET-Framework.
So finally to install this rolle we must use the command Add-WindowsFeature in the following way:

Add-WindowsFeature NET-Framework -restart

The final command -restar, restart the server if it is required.


No hay comentarios: