Notify manager of contractor Active Directory user account expiry via email and notify the service desk of any incomplete user accounts. I personally think that notifying employees/managers of accounts that are due to expire creates a better customer experience than that employee/contractor coming in one day and not being able to log in. With this […]
Category: Powershell
Perhaps this is just my own OCD but I think email addresses should all be formatted in the same way in active directory but inevitably some will put john@company.com and others will put John@company.com and all variations in between. The below can be run to fix the formatting as you like it and will change […]
GUI: LAPS Password Recovery Tool
The below LAPS Password Recovery Tool For Deleted Objects and those still in AD is created to allow you also recover the Microsoft LAPS administrator password of objects that have been deleted but that are still within the tombstone period of your Active Directory Forest. This is the only advantage over Microsofts own GUI but […]
The below uses the PowerShell invoke web request cmdlet to control a Roberts Internet Radio using the Frontier Silicon API. I have tied this in with my home automation to turn the radio on and off as feedback what is playing.
The below can be run as a scheduled task to detect and disable accounts that have not been used for a specified amount of days or for accounts which have never been used. Report outputs to a CSV and is displayed as follows:
The below can be run as a scheduled task to detect Active Directory User accounts that have passwords that expire today. Any objects where the password is due to expire today will automatically have the “Change password at next logon” ticked meaning that they wont suddenly lose connection to things such as mapped drives at […]
The below can be run as a scheduled task to detect and disable accounts that have not been used for a specified amount of days or for accounts which have never been used. Report outputs to a CSV and is displayed as follows:
Auditing: Audit AD Groups
This script will perform AD group member auditing by fetching all AD Groups and their members and then email the owner of that group a list to be checked to ensure they are still correct. It utalises the Description field for the group name e.g Sales File Share or Sales Distribution Group and the MangedBy […]
This is a PowerShell Function written to obtain a users password expiry date and time in a friendly format. It allows you to search using a username, first name or surname. This may be useful on a helpdesk to ascertain if the issue a user is experiencing is due to password expiry.
GUI: System Information Collector
WMI System Information Collector uses WMI to obtain a variety of system information where it may not be possible to use WINRM and CIM. This tool may be used on helpdesks to provide some immediate triage as the call is logged in ticketing system. Any suggestions are welcomed.