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 - Ping multiple remote Servers/Computers from text file
Save as a .ps1, or copy and paste, make the list to ping at c:\temp\servers.txt $ServerName = Get-Content "c:\temp\servers.txt" foreach...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Get Servers/Computers OU from text list
Save this as a .ps1, create c:\temp\servers.txt and add ALL servers to discover, Outputs all server or Computers AD OU information to...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Get AD DCs, OS with Site
Nice one liner, super simple, but super useful to get the DC site names in large topology scenarios. Get-ADDomainController -Filter * |...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Logoff all Disconnected/Stale logon sessions Remote Server
Fantastic script that prompts for the server name, then ALL sessions that are logged off or disconnected on the remote server are...
Jon Boyette
Jan 10, 20221 min read
PowerShell - Quickly discover text list of servers OS
Save as a .ps1, or copy and paste, add all server names to discover OS as well if in evaluation mode is displayed. Quickly parses...
Jon Boyette
Jan 10, 20221 min read
PowerShell - 3 part with .bat to clean Teredo, Isatap and 6to4 hidden adapters
Starting with the bat, save this simple .bat with name of choice, win it runs, it displays the network ID's for you NIC(s), These are in...
Jon Boyette
Jan 10, 20221 min read
PowerShell - 4 Complete scripts to run for VM Discovery
Save the below as a .ps1. runs and asks for server name. $A = Read-Host "Enter Server Name to Discover Hardware Details" #Specify the...
Jon Boyette
Jan 10, 20222 min read
PowerShell - List Stale Workstations in AD, Currently set to -120 days
Set as desired, searches the Workstations and add domain for OU. Outouts to c:\temp\workstationsstale120days - date.csv. This tests the...
Jon Boyette
Jan 7, 20221 min read
PowerShell - List all Stale Computers in AD, Set at 90 days currently
Can tweak the days however needed, change the -90, to a -120, -30, -60 etc, and the output is the servers that have been stale that long...
Jon Boyette
Jan 7, 20221 min read
PowerShell - OU Server Inventory
Copy below and save as Server OU Inventory.ps1, saves output details of servers in any OU specified, c:\temp\ServerInventory.csv is the...
Jon Boyette
Jan 7, 20221 min read
PowerShell - Get All AD Users Password Information
Get the Name, Expired or no, Last set and If set to never expire info, copy the below to a text file and save as UserssPasswordsInfo.ps1,...
Jon Boyette
Jan 7, 20221 min read
PowerShell - Ping and TCP Port Scan for subnet(s) ranges given
PowerShell: How to identify active hosts in your networks and perform horizontal TCP port scans - TechNet Articles - United States...
Jon Boyette
Jan 7, 20224 min read
PowerShell - Discover Server Details from Text file (Uses get-wmiobject)
Very Nicely Detailed on screen output from list, build a text and save as a .ps1 $A = Get-Content "c:\temp\addyourtextfile.txt" #Specify...
Jon Boyette
Jan 7, 20221 min read
PowerShell - Port Scanner, define ports and single ServerName in this "one-liner"
$Server = Read-Host -Prompt 'Input your target IP/host' ; 80, 135, 445, 3389, 5985 | % {$test= new-object system.Net.Sockets.TcpClient;...
Jon Boyette
Jan 7, 20221 min read
PowerShell - Check Port from List of Servers with email results
#Which port to scan $port = 445 #Path of the input server list $hostns=Get-Content c:\temp\yourtextfile.txt $body = @() foreach ($hostn...
Jon Boyette
Jan 7, 20221 min read
PowerShell - Port Scanner, one port, from text list of Computers/Servers
foreach($line in [System.IO.File]::ReadLines("C:\TEMP\TESTING2OU.txt")) { $servers=$line #$Why=Read-Host "Enter Port Number to Check from...
Jon Boyette
Jan 7, 20221 min read
PowerShell - Install Software Remotely by scripting a ps1
<# .SYNOPSIS Install software remotely in a group of computers and retry the installation in case of error. .DESCRIPTION This script...
Jon Boyette
Jan 7, 20228 min read
PowerShell - Get Remote users from list of Servers. (Get-Content and Test-Connection)
get-content C:\temp\yourtextfile.txt | foreach-object { $Comp = $_ if (test-connection -computername $Comp -count 1 -quiet) {...
Jon Boyette
Jan 7, 20221 min read
PowerShell - Computer Inventory from text list (Invoke-Command)
#Start PSRemoting. Invoke-Command -ComputerName (Get-Content C:\temp\yourtextfile.txt) -scriptblock { #Run the commands concurrently for...
Jon Boyette
Jan 7, 20221 min read
PowerShell - Inventory computers from text list to output csv
$serverList = "c:\temp\Serverlist.txt" $outputCSV = "c:\temp\ComputerInventoryFromText.csv" $scriptpath = $MyInvocation.MyCommand.Path...
Jon Boyette
Jan 7, 20221 min read
Home: Blog2
Home: Contact
bottom of page