Get-AdSyncObjectUnlinked cmdlet enables to display objects (from AdSync cache), which are not linked with corresponding objects in CP: Users, Company contacts, Distribution lists, excluding hidden objects.

Input parameters

#
Parameter
Type

Mandatory (R/O)

Description
Valid Values
1 Authentication Information  (all parameters)  
2 Count int O The number of the returned items (after Offset parameter is specified and processed)

Min value is 1, max - 1000.

If not specified, equals to 100 (the default value).

3 Filter string O This parameter allows to filter values by condition  
4

Identity

(aliases: ObjectID, DistinguishedName, EmailAddress, Name)

string O A property, that identifies the object of another Active Directory

Value of one of these parameters can be used as Identity:

#ParameterDescription
1 ObjectID GUID of the object in another AD
2 DistinguishedName Unique name of the object in another Active Directory
3 EmailAddress Email of the object in another Active Directory
4 Name Name of the object in another Active Directory
5 ObjectType string[] O Type of the object
  • User
  • Contact
  • Group
6 Offset int O A number of the item, starting from which the items should be returned

Min value is 1.

If not specified, equals to 1 (the default value)

Output parameters

ADSyncObjectInfo

Examples of using Get-ADSyncObjectUnlinked cmdlet

Getting all unlinked objects from another Active Directory:

Get-AdSyncObjectUnlinked

Getting the unlinked object with EmailAddress "test@test.test" from another Active Directory:

Get-AdSyncObjectUnlinked -Identity "test@test.test"

Getting unlinked objects with ObjectType "User" or "Contact" from another Active Directory:

Get-AdSyncObjectUnlinked -ObjectType User, Contact