Powershell Script to Create Random Complex Passwords suitable for O365

By Tom Kitching

This script enables you to generate a set of random complex passwords for a list of users which is imported as a CSV file.  The password will contain upper and lowercase letters, symbols, numbers and will always be between 8-16 characters in length (meeting the O365 requirements).  Obviously the functions can be tweaked to make…

Very Simple Powershell Ping test or IP scanner script

By Tom Kitching

This simple Powershell script will carry out a quick check against each IP in a 24 bit subnet and return a value of true or false dependent on whether or not it receives a reply.  It’s similar to using an IP scanner or a ping script. [cc lang=”powershell”]$subnet = “10.20.6.” 1..254 | Foreach-Object {write-host “$Subnet$_…”…

Add AD security group to local administrators on Hyper-V server running core

By admin

First connect to the remote server with powershell [cc lang=”powershell”]Enter-PSSession -ComputerName contoso\hv01[/cc] Next run the command to add the group: [cc lang=”powershell”]Add-LocalGroupMember -Group “Administrators” -Member “CONTOSO\Hyper-V Admins”[/cc] If you’re paranoid (like me) and want to check this worked you can use: [cc lang=”powershell”]Get-LocalGroupMember “Administrators”[/cc]