windows-powershell-docs icon indicating copy to clipboard operation
windows-powershell-docs copied to clipboard

-DateTime parameter not usable with -PasswordExpired switch

Open RichMath opened this issue 3 years ago • 0 comments

The description of the -DateTime parameter states "Specifies a distinct time value for Search-ADAccount parameters such as AccountExpiring, AccountInactive, and PasswordExpired." However, the -DateTime parameter is not part of the same parameter set as the -PasswordExpired switch. Attempting to use -DateTime results in the error "Search-ADAccount : Parameter set cannot be resolved using the specified named parameters." [Enter feedback here]


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

RichMath avatar Jun 07 '22 14:06 RichMath