Skip to content

Instantly share code, notes, and snippets.

View geegeek's full-sized avatar

61615m1 geegeek

View GitHub Profile
@geegeek
geegeek / 0-Readme.md
Created November 3, 2022 09:51 — forked from cloudcap10/0-Readme.md
PowerShell Active Directory Password Expiration Email Notification

Password-Expiration-Notifications.ps1 is a powerShell script designed to be run on a schedule to automatically email Active Directory users of soon-to-expire and recently-expired passwords.

This version is a highly modified fork of the original v1.4 by Robert Pearman from https://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27. Pearman's 2.x version was completely re-written.

New in this version:

  • Added Office 365 SMTP - Password-Expiration-Notifications-office365.ps1
  • No SMTP Authentication - Password-Expiration-Notifications.ps1
  • A SearchBase is required.
  • When logging, the CSV will always be overwritten.
  • Accounts with recently-expired passwords can be notified by specifying a "negativedays" value.
@geegeek
geegeek / it-ebooks.md
Created October 5, 2021 21:53 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
@geegeek
geegeek / unifi_ubuntu_2004.sh
Created October 5, 2021 20:35 — forked from davecoutts/unifi_ubuntu_2004.sh
Install Ubiquiti Unifi Controller on Ubuntu 20.04
# Install Ubiquiti Unifi Controller on Ubuntu 20.04.
# As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020.
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps.
sudo apt update
sudo apt install --yes apt-transport-https
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg