Aug 272019
 

We use this to keep track of domain users. We watch for logins that are getting old, and disable the account. This will email a list of all active (non-disabled) users last login date/time, to the email address defined. You will need an email to send this from also.

Time needed: 15 minutes.

Configure the following details

  1. Variables

    $EmailUser = “email@email.com
    $EmailPass = ‘password
    $EmailFrom = “email@email.com
    $EmailTo = “email@email.com
    $SMTPServer = “smtp.gmail.com
    $SMTPPort = ###

  2. Configure a Scheduled task to run this script weekly

    I like it to show up Monday morning.

 Posted by at 9:17 pm

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)