Register-DirectoryServiceRegister-DirectoryService
摘要Synopsis
用于将客户 Active Directory (Azure AD) 注册到 Graph 服务的脚本。Script to register customer Active Directory (Azure AD) with Graph Service.
CustomADGlobalCatalog**** 是自定义 Active Directory 的全局编录。CustomADGlobalCatalog is the global catalog for custom Active Directory.
这将是 Get-ADForest**** cmdlet 的输出中的 RootDomain
值。This will be RootDomain
value from output of Get-ADForest cmdlet.
语法Syntax
Register-DirectoryService [-Force] [[-TimeoutInSecs] <Object>] [-SkipRootDomainValidation]
[[-CustomADAdminCredential] <Object>] [-ValidateParameters] [[-CustomADGlobalCatalog] <Object>] [-AsJob]
说明Description
用于将客户 Active Directory 注册到 Graph 服务的脚本。Script to register customer Active Directory with Graph Service.
CustomADGlobalCatalog**** 是自定义 Active Directory 的全局编录。CustomADGlobalCatalog is Global Catalog for custom Active Directory.
这将是 Get-ADForest**** cmdlet 的输出中的 RootDomain
值。This will be RootDomain
value from output of Get-ADForest cmdlet.
示例Examples
示例 1Example 1
Register-DirectoryService -CustomADGlobalCatalog "contoso.com" -CustomADAdminCredential (Get-Credential) -TimeoutInSecs 1000
parametersParameters
-CustomADGlobalCatalog-CustomADGlobalCatalog
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CustomADAdminCredential-CustomADAdminCredential
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ValidateParameters-ValidateParameters
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-SkipRootDomainValidation-SkipRootDomainValidation
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Force-Force
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-TimeoutInSecs-TimeoutInSecs
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: 1000
Accept pipeline input: False
Accept wildcard characters: False
-AsJob-AsJob
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
后续步骤Next steps
若要了解如何访问和使用特权终结点,请参阅使用 Azure Stack Hub 中的特权终结点。For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.