Get PasswordWillExpire1

Embed Size (px)

DESCRIPTION

script check pwd expiry 1

Citation preview

  • #requires -version 2.0

    #this script assumes all users have the same policy and does#not take fine grained password policies into account.

    #The -Next parameter indicates how many days to check. In other words#user accounts with expiring passwords in the next X days. The script#defaults to the user domain, but you can specify another search base