top of page

Boyette Technical Services
All My Latest PowerShell Goodness to share
Welcome to Boyette Technical Services, My very own contact landing spot to share my PowerShell passions/collections. I write/collect PS scripts daily and find it very fulfilling to quickly do what masses cannot do, all utilizing PowerShell :) , I hope you enjoy my site starts, I intend it to become a viable resource, feel free to comment or make a request, I probably have it already. :). Enjoy!
Home: Welcome
Search
PowerShell - Generate random 16 Character Passwords
Useful as a .ps1 or pasted, if you save as a ps1 and just have handy, it launches and sleeps 10 and disappears Add-Type -AssemblyName...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Check Any OU for machines with Spooler running
Save as a .ps1, This checks whatever OU defined/prompted servers/computers spooler running, this being known vulnerable areas to stop as...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Discover usernames from lastname, firstname in a csv path
Save as a .ps1, When ran asks for path of populated CSV. then Outputs Usernames to C:\Temp\LastNamesToSAM.csv $a = Read-Host "Enter CSV...
Jon Boyette
Jan 10, 20221 min read
PowerShell - List all Subnets with Site Name in Forest
Save as a .ps1. run and exports all Subnets in Forest and Site Names to user profile folder as AD-Subnets.csv ## Get a list of all domain...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Get Network Details any Remote server, prompts for server name
Save as a .ps1, Gives IP, Description, DNS, WINS, Domain, Gateway, Mac any remote Server $colComputers = Read-Host "Enter ServerName to...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Discover ALL AD Servers with OS, IP and OS Version
Save as a .ps1 or copy and paste, gets all AD servers and outputs details to c:\temp\AllADServers_OS_Version_IP_.csv Get-ADComputer...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Get OU GPO details to screen
Save as a .ps1, Prompts for the OU to display the GPO's to it on screen $a = Read-Host "Enter Domain OU Name to Discover GPO's applied"...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Server Uptime Report to HTML/Email
Save as a .ps1, populate c:\temp\servers.txt to check uptime, reports out to C:\temp\ServerUptimeReport.html and smtp settings to...
Jon Boyette
Jan 10, 20222 min read
PowerShell - Get all AD Users Account creation and changed dates
Save as a .ps1 and run, outputs all Users to c:\temp\AllADUsersCreationInfo.txt with account creation and changed info, includes if...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Get folder sizes by UNC
Save as a .ps1 or paste, enter UNC share OR Drive$ by \\server\drive$ name to get all folder sizes recursive, outputs to...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Permission walk by UNC
Save the code as a .ps1, run it and enter the \\server\share to discover, outputs to the profile that runs its directory....
Jon Boyette
Jan 10, 20221 min read
PowerShell - Discover SID to Username Prompts to paste SID
Save as .ps1, run it and paste SID to discover UserName $sid = Read-Host "Paste SID to discover here" Get-ADObject –IncludeDeletedObjects...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Add to Local Admin Group Prompts for info
Save this as a .ps1, It will ask for domain, user to add, and server/computer to add to function button ($title,$domain, $user, $Server)...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Discover Entire Subnet to Hostname resolved
This will scan an entire 255 subnet and resolve the name if it is in DNS $IPsubnet = Read-Host "Add entire subnet to discover as x.x.x.x"...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Resolve Hostnames from text file to IP.
List server/Computer names in c:\temp\computers.txt, outputs IP and if cannot resolve to c:\temp\computersip.txt foreach ($computer in...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Discover if list of servers/computers is running a particular service
This prompts for the service name, and checks all in c:\temp\servers.txt if it exists or not and reports to screen, $servicename =...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Get-ADUser from text to discovery home directory remote
Save as a .ps1 or copy and paste, this script gets the ADUsers home directory current location from c:\temp\servers.txt, outputs to...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Discover Local admins from text list of servers/computers
This saved as a .ps1 or copy and pasted in a PowerShell Window Get-Content from c:\temp\servers.txt and outputs all the local admins...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Get Last Updates applied on list of servers/computers
Save this as a .ps1, add servers to check to c:\temp\servers.txt, Outputs HotFixreport.txt to the desktop. function Hotfixreport {...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Get certificate Information from text list of servers
This saved as a .ps1. grabs machines from c:\temp\servers.txt and collects the x509 certificate information for each server, Outputs to...
Jon Boyette
Jan 10, 20221 min read
Home: Blog2
Home: Contact
bottom of page