jeudi 1 mars 2012

[Windows 8 Server] Module Powershell ADDSDeployment

Windows 8 Server et Powershell V3 nous offre la possibilité de déployer AD DS en powershell.
Voici les différentes commandes qui vous permettront cela.

On commence par installer le rôle AD DS, pour cela rien de compliqué :
Import-Module ServerManager
Add-windowsfeature -name AD-Domain-Services –IncludeManagementTools

Le module qui nous intéresse est le module ADDSDeployment.
Pour voir les différentes commandes disponibles dans le module ADDSDeployment (celles-ci sont au nombre de 73) :
Get-command –module ADDSDeployment

 La commande pour installer une nouvelle forêt :

Install-ADDSForest [SkipPreChecks] –DomainName <string> -SafeModeAdministratorPassword <SecureString> [-CreateDNSDelegation] [-DatabasePath <string>] [-DNSDelegationCredential <PS Credential>] [-DNSOnNetwork] [-DomainMode <DomainMode> {Win2KNative | Win2003 | Win2008 | Win2008R2 | Win8}] [-DomainNetBIOSName <string>] [-ForestMode <ForestMode> {Win2KNative | ] Win2003 | Win2008 | Win2008R2 | Win8}] [-InstallDNS] [-LogPath <string>] [-RebootOnCompletion] [-SkipAutoConfigureDNS] [-SYSVOLPath] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]


La commande pour installer un nouveau domaine :

Install-ADDSDomain [SkipPreChecks] –NewDomainName <string> -ParentDomainName <string> -SafeModeAdministratorPassword <SecureString> [-ADPrepCredential <PS Credential>] [-AllowDomainReinstall] [-CreateDNSDelegation] [-Credential <PS Credential>] [-DatabasePath <string>] [-DNSDelegationCredential <PS Credential>] [-DNSOnNetwork] [-DomainMode <DomainMode> {Win2KNative | Win2003 | Win2008 | Win2008R2 | Win8}] [DomainType <DomainType> {Child Domain | TreeDomain} [-InstallDNS] [-LogPath <string>] [-DoNotConfigureGlobalCatalog] [-NewDomainNetBIOSName <string>] [-RebootOnCompletion] [-ReplicationSourceDC <string>] [-SiteName <string>] [-SkipAutoConfigureDNS] [-Systemkey <SecureString>] [-SYSVOLPath] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]


La commande pour installer un nouveau contrôleur de domaine :

Install-ADDSDomainController -DomainName <string> [SkipPreChecks] –SafeModeAdministratorPassword <SecureString> [-ADPrepCredential <PS Credential>] [-AllowDomainControllerReinstall] [-ApplicationPartitionsToReplicate <string[]>] [-CreateDNSDelegation] [-Credential <PS Credential>] [-CriticalReplicationOnly] [-DatabasePath <string>] [-DNSDelegationCredential <PS Credential>] [-DNSOnNetwork] [-DoNotConfigureGlobalCatalog] [-InstallationMediaPath <string>] [-InstallDNS] [-LogPath <string>] [-MoveInfrastructureOperationMasterRoleIfNecessary] [-RebootOnCompletion] [-ReplicationSourceDC <string>] [-SiteName <string>] [-SkipAutoConfigureDNS] [-SystemKey <SecureString>] [-SYSVOLPath <string>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]


La commande pour créer un compte de RODC :

Add-ADDSReadOnlyDomainControllerAccount [-SkipPreChecks] –DomainControllerAccuntName <string> -DomainName <string> -SiteName <string> [-AllowPasswordReplicationAccountName <string []>] [-DoNotConfigureGlobalCatalog] [-Credential <PS Credential>] [-DelegatedAdministratorAccountName <string>] [-DenyPasswordReplicationAccountName <string []>] [-InstallDNS] [-ReplicationSourceDC <string>] [-Force] [-WhatIf] [-Confirm] [<Common Parameters>]


La commande pour désinstaller un contrôleur de domaine :

Uninstall-ADDSDomainController [-skipprechecks] –LocalAdministratorPassword <SecureString> [-Credential <PS Credential>] [-DemoteOperationsMasterRole] [-DNSDelegationRemovalCredential <PS Credential>] [-ForceRemoval] [-IgnoreLastDCInDomainMismatch] [-IgnoreLastDNSServerForZone] [-LastDomainControllerInDomain] [-RebootOnCompletion] [-RemoveApplicationPartitions] [-RemoveDNSDelegation] [-RetainDCMetadata] [-Force] [-WhatIf] [-Confirm] [<common parameters>]


Plus d'informations sur le Technet : Deploy Active Directory Domain Services

Aucun commentaire:

Enregistrer un commentaire