An IT engineering family’s journey…
-

Step-by-Step Guide to Troubleshooting Windows Server 2016 Active Directory Replication Issues
To force replication, run the command: repadmin /syncall /e /d /A /P
-

HOWTO move an ESXi host from one vCenter to another
Storage Configuration: Ensure that datastores are accessible by the ESXi host and are compatible with the new vCenter.
-

Upgrade to PWSH Without Being Destructive (even for DCs)
-

Upgrade Windows 11 at Home
-

Update and Restart System
Something I was playing with to ensure my system updates every day, so I run this at the end of the day…
-

Fix the SoftwareDistribution Folder
“ensure your windows update works ”
-

Enable AD RDC Rules on Domain Controllers
-

PWSH: Get-Latest-WinEvent-Prompted-DCs
This is a VERY useful script that prompts for RWDC or RODCs, prompt to specify EventIDs or just get the last event on each DC, and refactored with Microsoft CoPilot 4 for locations where WinRM is disabled, using Invoke-Command (Enter-PSSession)
-

GPOs: List-GPOs-EnabledandLinked-AndBackup
How to backup the Group Policies you are actually using
-

Easy(er) Windows 11 Upgrade
1. Install kb50626912. Reboot3. Run Windows11InstallationAssistant.exe If you get a TPM error you need a new system
-

Use ISE in PS7
This is so easy you’re gonna spit… #-OR-#Just type ‘powershell_ise’ at the PWSH.exe prompt with the path\script name to edit in ISE
-
Step-by-Step Procedure to Analyze Group Policies
…be careful to be confident
-

Check-WinEvents-Prompted.ps1
‘Check-WinEvents-Prompted.ps1’ #************************************************************************************************************* # Script Name : Get-Latest-WinEvent-Prompted-DCs # Purpose : Check Latest Event log for DCs chosen # Date : #.\Get-UpdateDate.ps13:32 PM 3/13/2024 # – Initial version # Date : #.\Get-UpdateDate.ps11:12 PM 3/14/20244 # – Updated to reflect specific events, added credentials, added prompts # Author : Patrick Burwell #************************************************************************************************************* #Set location first set-location D:\PowerShell…
-
Confirm Windows Server In-place Upgrade to 2025
From 4SysOps: Confirm Windows Server in-place upgrade to 2025 Current version Upgrade to Windows Server 2025? Windows Server 2012 ❌ No Windows Server 2012 R2 ❌ No Windows Server 2016 ✅ Yes Windows Server 2019 ✅ Yes Windows Server 2022 ✅ Yes https://4sysops.com/archives/check-the-windows-server-version-to-determine-if-an-in-place-upgrade-to-server-2025-is-supported
-

AI Automation for PowerShell
“You may have experimented with Microsoft’s AI Shell for PowerShell and felt that you didn’t need another chatbot. However, AI Shell isn’t a shell at all. Like many of Microsoft’s Copilots, it functions merely as a chatbot attached to your terminal, providing enhanced copy-and-paste capabilities.” “The AI Shell is compatible with Windows, macOS, and Linux. Please ensure…
-
Patrick Burwell Resume
· Strong professional leadership on complex Infrastructure assignments and projects as the infrastructure subject matter expert · Proven ability to analyze problems, root causes, and develop innovative solutions to business challenges and streamlining operations · Lead Technical consultant responsible for analysis, engineering · Solution Provider working with development teams toward information technology resolutions · Ability…
-

Check-Uptime-DC-Prompt.ps1
Sometimes a simple script makes life easier…
-

FRS to DFSR Migration Can Be Reset!
The FRS migration to DFSR can be restarted, even after Eliminiated state… The simple steps to get back is to reset the DFSR Global Settings value from 48 to 0 using ADSIEdit: You then delete the entire “Migrating Sysvols” key on the DFSR services registry: Then, once every RWDC in the domain or forest isn…
-
Eval: Poly Voyager 5200 UC
Poly? Oh, there it is, that’s why it’s called “Poly”; Plantronics was acquired by Polycom. 7 hr. talk time diminishes down to 6 over time. You can get a full day if you plug in the headset during breaks and lunch. Also connects to Cell for hands-free calling by voice. The battery being directly in…
-
Get-Pagefile
Quickly get the remote pagefile of a window server
-

Log Specific IPV4 Traffic When Found
-

Looper
Having a good looper is a great script to keep available… I wish I could remember where I got this form, but I thank you, Anony-Mouse scripter! [::mouse::]
-

Check for GPO or run GPupdate Remotely
This script does lots of things that are handy when group policy (SysVol) replication is a problem… (like an environment still using FRS) My Thanks to Microsoft’s CoPilot for the help in sorting the logic of the try-else-catch commands…
-
Derek Hill
Email: [email protected]: +1 510-8331408Home: +1 901-326-7340WhatsApp: +1 901-326-7340
-
Greg Jackson
Email: [email protected]: 405.642.9308LinkedIn: www.linkedin.com/in/gregpjackson405
-

Reverse /24 IP Scope With PTR and Hostname
-

HOWTO-Run Robocopy Hard and Fast
To ignore errors and make Robocopy proceed without stopping, you can adjust the `/R` and `/W` switches in your command. The `/R` switch specifies the number of retries on failed copies, and the `/W` switch specifies the wait time between retries². To force Robocopy to copy a file regardless of its condition, you can use…
-

Reverse Ping a 255.255.254 Scope
To quickly obtain the devices using an IPv4Address in a scope reverse ping the scope in PowerShell (5.1) ‘#’ReverseLookup-Ipv4Address-By23Range.ps1’$subnet = read-host -Prompt “What IP scope with /23 range? -leave off the last octet numbers – like this 10.228.30. “for ($i=0; $i -le 511; $i++) { $ip = $subnet + $i Resolve-DnsName -name $ip -ea SilentlyContinue|select…
-

Find and Install SSH Module
$Module = (FIND-Module SSH).name Install-Module -Name $Module -AllowClobber -Verbose -SkipPublisherCheck -Repository PSGallery -AcceptLicense -PassThru|` Import-Module -NoClobber -DisableNameChecking -PassThru -Verbose|Update-Module -Verbose -AcceptLicense -PassThru|Get-Module
-

Remove Revoked Certificates
The removal of revoked certificates is not automatic…
-

Set PS 5.1 to use PS 7 PSModulePath
…might as well prepare by using the D:\PowerShell path now with PS 5.1…
-

Set PowerShell Credential
…you can make the script prompt you for you admin credential or you can type it in manually, or adjust from your username for more elevation
-

Update ADSS Subnets
The real advantage of this script is the ability it gives you to update your ADSS subnets quickly #Import the Active Directory moduleImport-Module ActiveDirectory -NoClobber -DisableNameChecking -Scope Local#Import the CSV with headers$csvData = Import-Csv -Path D:\powershell\input\subnets.csv#Checks for any count and breaks if not $nullif(!($csvData.Count)){break}#Loop through each row in the CSVforeach ($row in $csvData) {#Get the…
-

Update-Windows_Powershell.ps1
Updates Windows powershell modules, installs any not installed, and updates help for them all
-

Get ALL A User’s Groups
…get every group a user is in, including the Primary
-

Get Domain Users
The reason you cannot enumerate all ‘Domain Users’ members is due to size restrictions of the PowerShell commands,
-

VM PS Templates: Query VMs PoweredOn
This script renumerates through all the VCSAs and makes a big list of the PoweredOn VMs and runs a job against them, like TC (ping)
-

Illegals Voting???
Illegal immigrants are voting in US elections Mar-23-2024, Live at 1030hrs ET (click the link above) Regardless of what the legacy news outlets say, there is a growing number of municipalities in America where non-U.S. citizens can vote. In fact, there are very few state constitutions that explicitly outlaw this practice. Furthermore, the list of…
-

Get-ADGroup WildCard is BROKEN
In the past (2018) you could use ‘like’ on Get-adgroup, like this:
-

PS Script to Promote 2019 Server to RWDC
Add-WindowsFeature -Name “AD-Domain-Services” -IncludeManagementTools:$False -Confirm -ea Inquire -LogPath “C:\Users\$env:username\Documents\WindowsPowerShell\log\$day-RWDCPromo.log”
-

Set-MpPreference
As you can see, Microsoft’s syntax is wrong:They show the syntax for setting soft-passive mode as ‘Set-MpPreference -DisableRealtimeMonitoring $true’ when it is ‘Set-MpPreference -DisableRealtimeMonitoring:$true’ <– NOTE THE COLON??? Arrrrgghhhh! I cannot tell you how frustrating it is when code is not written to give you ANY response unless you get the syntax EXACTLY right. *SIGH*…
-

VMware-Backup ESXi Config File
-

Gpupdate Latency Errors Lookup Script
I cannot TELL you how hard this was to write. Holy smokes the help on this is terrible.
-

Buy SquirrelTribe A Coffee Too!
We love you too! Buy me a coffee -Patrick https://www.buymeacoffee.com/squirreltribe/c/8837404 SquirrelTribe Feb 6, 2024 Howdy Y’all Good morning! I just wanted to say a quick thank you to all of you for your support and friendship. I want 2024 to be the best year for all of us and I plan on doing my part…
-

Locate Pervasive Lockouts of AD Accounts
You can use PowerShell to search the Security event log for lockout events…
-

PowerShell: Install ActiveDirectory Easily
I have found this make installing the ActiveDirectory Module FAR easier.Quick.Painless.
-

PowerShell/PowerCLI: UMount All ISOs At Once
Get-VM -Name $vm | Get-CDDrive | Set-CDDrive -NoMedia -StartConnected $false
-

ChatGPT-AzureAI:Tail in Windows
To use this function, simply call it with the path to the file you want to tail and the number of lines you want to show: tail “C:\Path\To\File.txt” 10
-

PowerShell: Check your local server performance
Collects performance data for 30 seconds and exits
-

PowerShell: Copy $Profile to every Windows Server
…Just remember to put your domain in for the ‘-SearchBase’
-

PowerCLI: Add Hot Add / Hot Plug Status to a Specific VM Guest
Add Hot Add / Hot Plug Status to a specific VM Guest
-

PowerCLI: Get the report of Hot Add / Hot Plug Status of the VMS
Get the report of Hot Add / Hot Plug Status of the VMS (updated from www.vmwarearena.com)
-

🎓 AI is learning how to create itself | MIT Technology Review
A little stick figure with a wedge-shaped head shuffles across the screen. It moves in a half crouch, dragging one knee along the ground. It’s walking! Er, sort of. Yet Rui Wang is delighted. “Every day I walk into my office and open my computer, and I don’t know what to expect,” he says.
-

Check Wildcarded AD User Properties with PowerShell 5.1
Get all user properties, or just one, with a wildcard
-
Student suspended for talking about Jesus
The child’s father told radio host Todd Starnes of a meeting he was called upon to attend with school administrators over his son’s ‘continued behavior’
-

100 count restrictions in PowerShell and PowerCLI
Now why do ya think this may be so, there, now, yet?
-

Remove that annoying top output line
HOWTO get that annoying top line off the output of PowerShell exports
-

PowerShell: Make a list of every account that connected to a server in the last 30 days
Gets every connection made, but only the last one, in the last 30 days
-

Install Any Command Easily in PowerShell
That’s how you would install ANY module for a command you need. Now TELL me that’s not convenient!
-

Our Azure Resource Group, Tenant, and Subscription Questions to ChatGPT.org
Azure RGs, Subscriptions and Tenants can get confusing; This Q&A my son Ryan and I asked ChaGPT.org, during our AZ-104 training, should help.. Can an Azure Subscription be accessible by multiple tenants? And why?In Azure, can there be multiple subscriptions in a tenant? Can users access multiple subscriptions? How?
-

4sysops.com: how to change the PowerShell prompt (Mirror)
-

Are EVs Really Green, or SAFE????
A measured look at the electric vehicle and how green it really is… The Net-Zero Fairy Tale of Lithium batterieshttp://www.bitchute.com/video/xR1zcokuYvTz Take the Tesla Model S (below),. In the winter of 2012, producing the electricity for a full charge created 124g of carbon emissions per km driven is roughly the same as a 2L Range Rover…
-

Log4J scanning fails to create csv file
invoke-command -scriptblock {powershell -File “D:\batch\Fix-4Log4J.ps1”} -computer $Server -AsJob -JobName “Scan4Log4J” -Verbose -EA SilentlyContinueWhen I run this script locally, with enter-pssession the script works just fine but NO CSV & D:\batch\Fix-4Log4J.ps1Yet every time I try to invoke, directly or with SAPS it fails to create file When I run this script locally, with enter-pssession the script…
-

How to quiesce an AWS instance to perform an uninterrupted OS upgrade
How do we quiesce an AWS instance to perform an uninterrupted operating system upgrade in-place, like from Microsoft Server 2012R2 to 2019, which can be easily done on other virtualized platforms, like VMware? We have a problem in our upgrades in Windows Server where the install backs out at 90%. AWS has looked and claims the install is being…
-

How do YOU get GDPR reconciliation for versioned storage?
In this climate of heightened, even ridiculous, security compliance expectations (like the GDPR), businesses and their IT staff have mandates from multiple sources to reliably remove specific data content, on request, from every source. When this requirement falls to SharePoint site stored data, like from Microsoft Teams Projects, you run into the problem of ‘revisioned’…
-

Get-AdComputer is not showing originating server
When I run an AD enumeration script, the Server I am running FROM never shows in the list…
-

Why is the Interactive PowerShell 5.1 So Limited?
I have discovered that the interactive powershell in version 5.1 is badly limited.
-

Windows Server 2019 Safe_OS Error Correction Poll
…did you just bail to a new build?
-

HOWTO: Discover Where a LOCAL ISO is Mounted – Windows Server 2016/2012R2
..the ISO still throws the “Sorry…” error
-

Read a Linux Conf File Easily
The way to read a conf file without all the remarked lines.As Kevin Brown of Udemy.com likes to say:
-

THANK YOU KEVIN BROWN
http://rtsnetworking/demo Kevin is the consummate professional Windows, Azure, AWS, Cisco, Security Instructor!WOW have we learned allot from him! -Patrick and Ryan Burwell
-

Microsoft: Standardize PS Modules Development By Using Versioned Sub-Folders
This strategy could be instrumental in fostering a more modular and resilient PowerShell ecosystem.
-

Microsoft Hands-On-Labs
Microsoft’s Hands On Labs are here:https://learn.microsoft.com/en-us/training/?WT.mc_id=sitertzn_homepage_learn-redirect-handsonlabs …scroll to the bottom.Why build your own expensive lab when you can practice for free here? THANK YOU KEVIN BROWN:http://rtsnetworking/demo
-

PowerShell Module Bloat
#PLEASE GOD, Microsoft, USE STANDARDS in your PowerShell module development ..
-

$ENV:Temp use is best in PS scripting, not ‘C:\Temp’
…et tu’ CoPIlot Microsoft???
-

Find Password Change Source
CoPIlot suggests these changes: Centralized error handling Instead of inline try/catch with Write-Warning, capture failures into a structured object so you can see which DCs failed and why. Timeouts and fallbacks Get-WinEvent can hang if RPC is flaky. Use Invoke-Command with -AsJob or Parallel to query DCs concurrently, with a timeout per job. That way…
-
Weight Loss Math
⚖️ Weight Loss Math
-

Remote PWSH Session with PSEXEC64
You have installed PWSH (PS7) and have the path. You try to ‘enter-pssession’ and that’s when discover a remote session with PWSH shell will not work without being set native on the server operating system. But you can always use a remote PWSH session using PSEXEC64.
-
Repeating Rows in Excel
In excel 2016 how do I repeat the top row(s) on the print out? To have the first (or any) row repeat at the top of every printed page in Excel 2016, do the following: Now when you print (File → Print or Ctrl+P), row 1 will appear at the top of every page.
-
Install PowerCli from PS 5.1 Shell
‘Install-PowerCLI-2.ps1’#Install DOTNet Framework 4.7.2 first#Get DotNet Framework Install here and put in $ENV:USERPROFILE\downloads#”https://support.microsoft.com/en-us/topic/microsoft-net-framework-4-7-2-offline-installer-for-windows-05a72734-2127-a15d-50cf-daf56d5faec2″$url = “https://go.microsoft.com/fwlink/?linkid=863265″$output = “$ENV:UserProfile\Downloads\dotnet-framework-installer.exe” Invoke-WebRequest -Uri $url -OutFile $output #>. $ENV:USERPROFILE\downloads\\NDP472-KB4054530-x86-x64-AllOS-ENU.exe /q /norestart’Wait for the task to finish – watch with tasklist”…and then run this”Install-module -force -Name VMware.PowerCLI -AllowClobber -SkipPublisherCheck -AcceptLicense -AllowPrerelease|Out-Null”Import-Module VMware.PowerCLI -PassThru -FORCE -Verbose|Out-null”Update-module VMware.PowerCLI -Force -Verbose -PassThru|Add-PSSnapin’
