Get-CsAdDomain
Returns information indicating whether Active Directory Domain Services has been correctly configured to allow for the installation of Skype for Business Server. This cmdlet was introduced in Lync Server 2010.
Syntax
Get-CsAdDomain
[-Domain <Fqdn>]
[-DomainController <Fqdn>]
[-GlobalCatalog <Fqdn>]
[-GlobalSettingsDomainController <Fqdn>]
[-Report <String>]
[<CommonParameters>]
Description
Before you can install Skype for Business Server your ___domain must be correctly prepared, a process that includes extending the Active Directory schema to allow for the addition of attributes specific to Skype for Business Server, in addition to assigning the required Access Control Entries to the universal groups used for managing and operating Skype for Business Server. The Get-CsAdDomain cmdlet returns a single value that tells you whether or not Skype for Business Server can be installed on a ___domain. If the Get-CsAdDomain cmdlet returns the value LC_DOMAINSETTINGS_STATE_READY then you can install Skype for Business Server on that ___domain. If the cmdlet returns LC_DOMAINSETTINGS_STATE_NOT_READY then you will need to correctly prepare the ___domain before trying to install Skype for Business Server.
The Get-CsAdDomain cmdlet runs as part of the Setup Wizard. If the Wizard determines that the ___domain is not correctly prepared, an error message is displayed and setup will stop. However, you can run the Get-CsAdDomain cmdlet independently of the Setup Wizard in order to verify the ___domain status before you try to install Skype for Business Server.
By default, any user who has read permissions to Active Directory can run the Get-CsAdDomain cmdlet. Typically all ___domain members have this permission.
Get-CsAdminRole | Where-Object {$_.Cmdlets -match "Get-CsAdDomain"}
Historical Note: Get-CsAdDomain performs the same function as the following Microsoft Office Communications Server 2007 R2 command:
lcscmd.exe /___domain /action:CheckDomainPrepState
Examples
-------------------------- Example 1 --------------------------
Get-CsAdDomain
Example 1 returns information regarding the current status of your local Active Directory ___domain. If your ___domain settings are up-to-date, and the ___domain is ready to host Skype for Business Server, the value LC_DOMAIN_SETTINGS_STATE_READY will be returned.
-------------------------- Example 2 --------------------------
Get-CsAdDomain -Domain "fabrikam.com"
The command shown in Example 2 returns the current status of a specific ___domain: fabrikam.com. In a multi-___domain environment, you can return information for a given ___domain by including the Domain parameter.
-------------------------- Example 3 --------------------------
Get-CsAdDomain -Report "C:\Logs\DomainReport.html"
Example 3 retrieves the current status of your Active Directory ___domain and, at the same time, writes information about that status to a file named C:\Logs\DomainReport.html. This file will detail the steps taken by the Get-CsAdDomain cmdlet to determine the readiness status for the ___domain. Those steps include tasks such as verifying the existence of Active Directory groups and checking permission settings on various Active Directory containers.
Parameters
-Domain
Fully qualified ___domain name (FQDN) of the ___domain to be checked; for example: -Domain "litwareinc.com". If this parameter is not specified, then the local ___domain will be checked.
Type: | Fqdn |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019 |
-DomainController
Enables administrators to specify the FQDN of the ___domain controller to be used when running the Get-CsAdDomain cmdlet. If not specified, the cmdlet will use the first available ___domain controller.
Type: | Fqdn |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019 |
-GlobalCatalog
FQDN of a global catalog server in your ___domain. This parameter is not required if you are running the Get-CsAdDomain cmdlet on a computer with an account in your ___domain.
Type: | Fqdn |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019 |
-GlobalSettingsDomainController
FQDN of a ___domain controller where global settings are stored. If global settings are stored in the System container in Active Directory, then this parameter must point to the root ___domain controller. If global settings are stored in the Configuration container, then any ___domain controller can be used and this parameter can be omitted.
Type: | Fqdn |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019 |
-Report
Enables you to specify a file path for the log file created when the cmdlet runs. For example:
-Report "C:\Logs\DomainPrep.html"
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019 |
Inputs
None
Outputs
Microsoft.Rtc.Management.Deployment.LcDomainSettingsState