Skip to content

Latest commit

 

History

History
148 lines (109 loc) · 2.71 KB

Register-DirectoryService.md

File metadata and controls

148 lines (109 loc) · 2.71 KB
title description author ms.topic ms.date ms.author ms.reviewer ms.lastreviewed
Register-DirectoryService privileged endpoint for Azure Stack Hub
Reference for PowerShell Azure Stack privileged endpoint -Register-DirectoryService
sethmanheim
reference
04/27/2020
sethm
fiseraci
04/27/2020

Register-DirectoryService

Synopsis

Script to register customer Microsoft Entra ID with Graph Service. CustomADGlobalCatalog is the global catalog for custom Active Directory. 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

Script to register customer Active Directory with Graph Service. CustomADGlobalCatalog is Global Catalog for custom Active Directory. This will be RootDomain value from output of Get-ADForest cmdlet.

Examples

Example 1

Register-DirectoryService -CustomADGlobalCatalog "contoso.com" -CustomADAdminCredential (Get-Credential) -TimeoutInSecs 1000

Parameters

-CustomADGlobalCatalog

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CustomADAdminCredential

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ValidateParameters

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-SkipRootDomainValidation

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Force

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-TimeoutInSecs

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: 1000
Accept pipeline input: False
Accept wildcard characters: False

-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Next steps

For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.