Search Results for

    Show / Hide Table of Contents

    Class PasswordInfo

    Structure that contains information about password of managed object and password history (if present on object) Returned by the following cmdlets:

    Get-AdmPwdPassword

    Get-AdmPwdManagedAccountPassword
    Inheritance
    System.Object
    PasswordInfo
    Namespace: AdmPwd.Types
    Assembly: AdmPwd.PDSWrapper.dll
    Syntax
    public class PasswordInfo : Object

    Constructors

    PasswordInfo(string, string, DateTime, uint, string)

    Constructs the object

    Declaration
    public PasswordInfo(string name, string dn, DateTime expiration, uint keyId, string password)
    Parameters
    Type Name Description
    string name

    Name of account password is for

    For domain user accounts pass userPrincipalName

    For local admin accounts pass computer name

    string dn

    Distinguished name of object password is for. Computer object or Domain User account.

    System.DateTime expiration

    Expiration time of password

    uint keyId

    Id of key that was used to encrypt the password stored in AD

    string password

    Password itself

    Fields

    PasswordHistory

    Password history information

    Declaration
    public readonly List<PasswordHistory> PasswordHistory
    Field Value
    Type Description
    System.Collections.Generic.List<><PasswordHistory>

    Properties

    DistinguishedName

    DistinguishedName of object

    Declaration
    public string DistinguishedName { get; }
    Property Value
    Type Description
    string

    ExpirationTimestamp

    Expiration time of password

    Declaration
    public DateTime ExpirationTimestamp { get; }
    Property Value
    Type Description
    System.DateTime

    KeyId

    ID of RSA key that was used to encrypt the password

    0 means that password is not encrypted in AD
    Declaration
    public uint KeyId { get; }
    Property Value
    Type Description
    uint

    Name

    Name of object

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Password

    Password of managed account - local admin account on managed computer or managed domain account

    Declaration
    public string Password { get; }
    Property Value
    Type Description
    string
    ☀
    ☾
    Back to top Generated by DocFX