Voici les commandes pour ajouter toutes les features nécessaires pour l’install d’un serveur OCS (utile lorsqu’on en a 3 à faire pour automatiser l’installation)
Import-Module ServerManager
Add-WindowsFeature Web-Windows-Auth
Add-WindowsFeature Web-Mgmt-Compat
Add-WindowsFeature MSMQ-Server
Add-WindowsFeature MSMQ-Directory
Add-WindowsFeature WAS-Process-Model
Add-WindowsFeature WAS-Config-APIs
Add-WindowsFeature Web-Mgmt-Console
Add-WindowsFeature Web-HTTP-Logging
Add-WindowsFeature RSAT-AD-Tools
Attention, si vous sauvez ceci dans un fichier .ps1 afin d’avoir un script tout prêt, il faut autoriser l’exécution d’un script powershell non signé et exécuter la commande suivante : Set-ExecutionPolicy -ExecutionPolicy unrestricted