---
title: "Get-PPEPasswordTest"
description: "Use the Get-PPEPasswordTest cmdlet to run the Password Policy Enforcer password test for a user, with syntax, parameters, and an example."
sidebar_position: 110
---

# Get-PPEPasswordTest

The **Get-PPEPasswordTest** cmdlet runs the Password Policy Enforcer password test for a user.

**SYNTAX**

**Get-PPEPasswordTest** **-Password** `<_string_>` **-Username** `<_string_>` [__-OldPassword__
`<_string_>`] [`<_CommonParameters_>`]

**PARAMETERS**

**-Password** `<_string_>`

The password to test.

**-User** `<_string_>`

The username to test. Can also use **-U** or **-u**.

**-OldPassword** `<_string_>`

The old password to test.

`<_CommonParameters_>`

This cmdlet supports the common parameters: **Verbose**, **Debug**, **ErrorAction**,
**ErrorVariable**, **WarningAction**, **WarningVariable**, **OutBuffer**, **PipelineVariable**, and
**OutVariable**. See [about_CommonParameters](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7.5).

**EXAMPLE**

PS C:\> Get-PPEPasswordTest -Password qwerty -User PPETestUser

**Assigning default policy "Eval Policy"**

Log

- Info : Reading configuration from NT-DC03.nwxtech.com.

- Info : DN is "CN=PPE Test User,CN=Users,DC=NWXTECH,DC=COM"

- Info : Current password is 5 days old.

- Info : Extended Maximum Age group not found.

- Info : Dictionary rule found "QWERTY".

- Info : Password rejected.

Password must:

- Accepted : contain a lower alpha character

- Rejected : contain an upper alpha character

- Accepted : contain at least 1 of these character types:

- upper alpha

- lower alpha

- Rejected : not be similar to a common password

- Rejected : contain at least 7 characters

- Accepted : not be similar to your logon name
