Windows – Utility scripts

I do love a good batch file! Or a nice PowerShell script… Lost count of the number written over the years. They can be VERY useful and save a bunch of time.

Here is a collection of scripts for your arsenal of scripting:

Networking

Bunch of networking tools and scripts

HOSTS

Edit your hosts file easily.
Right-click and run as Administrator so you can save it after

Certificates

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit.

DevOps

Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit.

Networking

HOSTS

Network devices

List network devices and optionally show details. Run:
ListNetwork.bat [args, see below]
list = List all network devices
status = List network devices and show connected status
config = List network device config values

Whats my IP

Show your gateway IP address.
Uses an external API to process the result (https://api.my-ip.io)

Certificates

Current User

Open certificates for the current user

Local Machine

Open certificates for the local machine

DevOps

Test website SSL

Script to test the SSL on a given website. Shows the start/end time for the certificate and the number of days before expiry.
Call with:
./TestDomainCert.ps1 -url “https://…..”

Generate password

Generates a password with a specified length
Call with:
./MakePassword.ps1 -length 32