Set-​Msol​Dir​Sync​Enabled

Turns directory synchronization on or off for a company.

Syntax

Set-MsolDirSyncEnabled
   -EnableDirSync <Boolean>
   [-TenantId <Guid>]
   [-Force]
   [<CommonParameters>]

Description

The Set-MsolDirSyncEnabled cmdlet turns directory synchronization on or off for a company.

Examples

Example 1: Turn on directory synchronization

PS C:\> Set-MsolDirSyncEnabled -EnableDirsync $True

This command turns on directory synchronization for a company.

Required Parameters

-EnableDirSync

Specifies whether to turn on directory synchronization on for your company.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TenantId

Specifies the unique ID of the tenant on which to perform the operation. The default value is the tenant of the current user. This parameter applies only to partner users.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False