Connecting to an Object GUID
This topic explains how to use the Active Directory module for Windows PowerShell to connect to an object’s globally unique identifier (GUID) in Active Directory Domain Services (AD DS).
Example
The following example demonstrates how to connect to the user object SaraDavis using the object’s GUID:
Get-ADObject -Identity ccc6c0f8-5dd9-42bc-93da-407c6f9695ef
Get-ADObject -Identity ccc6c0f8-5dd9-42bc-93da-407c6f9695ef
Additional information
For a full explanation of the parameters that you can pass to Get-ADObject, at the Active Directory module command prompt, type Get-Help Get-ADObject –detailed, and then press ENTER.
Dynamically Linking an Auxiliary Class
This topic explains how to use the Active Directory module for Windows PowerShell to dynamically link an auxiliary class in Active Directory Domain Services (AD DS).
Example
The following example demonstrates how to dynamically link the auxiliary class object member-Fabrikam-User to the user SaraDavis:
Set-ADObject SaraDavis -Add @{ObjectClass="Fabrikam-User"}
Set-ADObject SaraDavis -Add @{ObjectClass="Fabrikam-User"}
Additional information
You can use the following parameters when you set many of the common values of Active Directory objects:
- -Description
- -DisplayName
- -ProtectedFromAccidentalDeletion
Refreshing a Dynamic Object
This topic explains how to use the Active Directory module for Windows PowerShell to refresh a dynamic object in Active Directory Domain Services (AD DS).
Example
The following example demonstrates how to refresh the Time to Live (TTL) attribute of the dynamic user object Brad Sutton:
Set-ADObject -Identity ‘CN=Brad Sutton,OU=Accounting,DC=Fabrikam,DC=com’ -Replace @{entryTTL="200000"}
Set-ADObject -Identity ‘CN=Brad Sutton,OU=Accounting,DC=Fabrikam,DC=com’ -Replace @{entryTTL="200000"}
Additional information
You can use the following parameters when you set many of the common values of Active Directory objects:
- -Description
- -DisplayName
- -ProtectedFromAccidentalDeletion
No comments:
Post a Comment