Roles windows

De Linuxmemo.

(Différences entre les versions)
Ligne 8 : Ligne 8 :
==Installation d'un Rôle==
==Installation d'un Rôle==
-
Via Le Gestionnaire de Serveur (Server Manager) ou le commande Sconfig.cmd
+
 
 +
*Via Le Gestionnaire de Serveur (Server Manager)
 +
 
 +
*Via la commande Sconfig.cmd
 +
 
 +
*Via PowerShell
 +
 
 +
To add roles or features by using Windows PowerShell
 +
 
 +
Open a Windows PowerShell session with elevated user rights. To do this, click Start, click All Programs, click Accessories, click Windows PowerShell, right-click the Windows PowerShell shortcut, and then click Run as administrator.
 +
 
 +
Load the Server Manager module into the Windows PowerShell session before working with Server Manager cmdlets. Type the following, and then press Enter.
 +
 
 +
Import-Module Servermanager
 +
noteNote
 +
Windows PowerShell cmdlets are not case-sensitive.
 +
 
 +
If you do not know the command name of the role, role service, or feature that you want to install, type the following, and then press Enter to return a list of all command names in the Name column. The command name is required for the next step.
 +
 
 +
Get-WindowsFeature
 +
 
 +
Type the following, in which name represents the command name of the role, role service, or feature that was obtained in the previous step, and then press Enter to install a role or feature. The -restart parameter restarts the computer automatically after installation is complete, if a restart of the computer is required by the role or feature.
 +
 
 +
Add-WindowsFeature name -restart
 +
 
 +
You can install multiple roles, role services, and features by using commas to separate the command names, as shown in the following example.
 +
 
 +
Add-WindowsFeature Application-Server,Hyper-V,WAS

Version du 17 novembre 2012 à 21:37

  • Par défaut aucun rôle n'est installé sur Windows 2008 srv

Exemples de Rôles: Contrôleur de domaine, serveur DNS, serveur de fichier, serveur d'applications, etc ...

  • Les rôles on une ou plusieurs fonctions:

Exemples de fonctions:

Installation d'un Rôle

  • Via Le Gestionnaire de Serveur (Server Manager)
  • Via la commande Sconfig.cmd
  • Via PowerShell

To add roles or features by using Windows PowerShell

Open a Windows PowerShell session with elevated user rights. To do this, click Start, click All Programs, click Accessories, click Windows PowerShell, right-click the Windows PowerShell shortcut, and then click Run as administrator.

Load the Server Manager module into the Windows PowerShell session before working with Server Manager cmdlets. Type the following, and then press Enter.

Import-Module Servermanager
noteNote
Windows PowerShell cmdlets are not case-sensitive.

If you do not know the command name of the role, role service, or feature that you want to install, type the following, and then press Enter to return a list of all command names in the Name column. The command name is required for the next step.

Get-WindowsFeature

Type the following, in which name represents the command name of the role, role service, or feature that was obtained in the previous step, and then press Enter to install a role or feature. The -restart parameter restarts the computer automatically after installation is complete, if a restart of the computer is required by the role or feature.

Add-WindowsFeature name -restart

You can install multiple roles, role services, and features by using commas to separate the command names, as shown in the following example.

Add-WindowsFeature Application-Server,Hyper-V,WAS
Outils personnels