Get-RMDeletedActiveDirectoryObject

From PowerGUI Wiki

Jump to: navigation, search

Retrieves deleted Active Directory objects.

Contents

Syntax

Get-RMDeletedActiveDirectoryObject [[-DirectoryHost] <String>] [-Partition <String>] [-Port <Int32>] [-Credential <PSCredential>] [-User <String>] [-Password <SecureString>] [<CommonParameters>]

Detailed Description

Retrieves all deleted Active Directory objects or deleted Active Directory objects from the specified Active Directory partition only.



Related Commands

Parameters

Name Description Required? Pipeline Input Default Value
DirectoryHost Specifies the domain controller or ADAM instance host from which deleted objects are to be retrieved.

The domain controller can be specified by its computer name, IP address, or domain name. If you specify a domain name, deleted objects are retrieved from any available domain controller in the specified domain. The ADAM instance host can be specified by its computer name or IP address. If this parameter is omitted, deleted objects are retrieved from any available domain controller in the current domain.

false true (ByValue)
Partition Specifies the distinguished name of the Active Directory partition from which deleted objects are to be retrieved. If this parameter is omitted, the default naming context is used.

This parameter is required if you specify an ADAM instance host in the DirectoryHost parameter.

false false
Port Specifies the port number to be used for connection. If this parameter is set to 0 or not specified, the default LDAP port (389) is used. false false
Credential The user name and password of the user account with which you want to connect, in the form of a PSCredential object. Use the Get-Credential cmdlet provided by Windows PowerShell to pass a PSCredential object to this parameter. false false
User The user logon name of the account with which you want to connect, in the form Domain\UserName, or in the form of a user principal name. false false
Password The password of the user account with which you want to connect. The parameter value must be a SecureString object. Use the Read-Host cmdlet provided by Windows PowerShell to pass a SecureString object to this parameter. false false

Examples

Example

Get-RMDeletedActiveDirectoryObject

Retrieves deleted Active Directory objects in the current domain.

Personal tools