Utility scripts made by myself over the years. They are provided under the MIT License
This script will add a batch of sample users to your AD structure based on a few criteria you provide.
An unofficial pushbullet script to send Pushbullet notifications to all your devices.
python3 pushbullet.py -key XXXXXXXXXXXXX -title "Test message" -message "This is a test"
PowerShell script that retrieves information about a the SSL certificate.
.\check_ssl.ps1 -URL https://example.com -Timeout 10
This is a PowerShell script that allows you to easily do a DNS lookup on any of your Route 53 Amazon records.
Use Test-Uptime to compile a list of hosts and test connectivity. Run it on a schedule and view the last time your hosts were last up. The list of hosts is stored in a CSV file, and results are updated in that file each time the function is run. The default CSV is .\lastonline.csv
With Show-Chart you can create a chart on the screen and optionally save it to a file. It uses the Windows Forms control to create the chart, then can be controlled using various parameters. See the examples for details.
This script will create an EC2 instance, a key pair to connect, add a Route 53 A record for it.
.\aws_create_instance.ps1 -AMI ami-d2c924b2 -Subnet subnet-8e3bf3a2 -Type t2.nano -KeyName aws-test -Script c:\scripts\centos_init.sh -Hostname test.example.com -ZoneId Z1W5966G181726
This script will terminate an EC2 instance, delete the attached volumes, remove the A record.
.\aws_destroy_instance.ps1 -InstanceId i-XXXXXX -Hostname test.example.com -ZoneId Z1W5966G181726
Use this function to display a color menu on the console screen. It can display a number of menu items and await a choice, returning this choice. Optionally, it can also display some non-menu options. You can specify a title, a sub title, a prompt, menu options and non-menu options.
Show-Menu -Title "This is a test of the menu system" -MenuOptions @("The first choice", "The good choice", "The last choice")
This function returns an excuse to be used in a system administration or helpdesk role, based on the BOFH series. The excuses originate from the Bastard Operator From Hell excuse server at http://pages.cs.wisc.edu/~ballard/bofh/ and were modified to fit this module. Requires bofh.xml
This function will return all metadata information about a specific file. It can be used to access the information stored in the filesystem.
Each IP block is assigned to a specific organization. This function queries the webservicex.net API to retrieve the last known country for a specific IP.
This script creates a random password including upper case letters, lower case letters, numbers, and optionally complex characters.
Get-RandomPassword -Length 12 -Complex
The Read-InputBox function creates a Windows Forms dialog box with custom text and awaits user input. The dialog box can be customized with various parameters. The text entered is then returned to the user:
This function uses the native .NET API to resize an image file, and optionally save it to a file or display it on the screen. You can specify a scale or a new resolution for the new image.
Resize-Image -InputFile "C:\kitten.jpg" -Scale 30 -OutputFile "C:\kitten2.jpg"
Produces an HTML report of available file shares.
This should be run on the Task Scheduler every hour as a local administrator. Comment out any section you don't want. The only resource intensive one seems to be Windows Updates. The AntiVirus/AntiMalware sections only work on workstations, they will return empty strings on Windows Server. Look near the bottom of the script to configure alarm report emails / notifications.
This script creates an Active Directory user and an hMailServer user.
This script will play a number of mp3 files in random order
Uses the wikipedia module to define words on the command line
Converts a RSS feed into an HTML output
Monitors the event log fromn the console
Shows a graphical list of user logins.
Lists all AD users who haven't logged in 90 days
Search the Windows file system for files modified within the last week using the Windows Search indexer
This script will download all master branches on Github for a specific user.
This script will check a web page every 10 secs and show you a message box should it become unavailable or return an error message.
Uses a web API to get random names, emails, addresses and so on then makes AD users.
Uses a web API to create random users on a Linux system.
Sample playbooks for Ansible.