TOAN NGUYEN IT OZ • ADELAIDE, AUSTRALIA 🇦🇺

100 Enterprise PowerShell Scripts & Command Center

A complete collection of 100 enterprise-grade PowerShell automation scripts designed for IT Support Engineers, Help Desk Professionals, and Systems Administrators. Features smart category filtering, 1-click clipboard copy, standalone .ps1 file downloads, and HD visual infographics.

100
Production Scripts
10
Enterprise Categories
100%
Native & Zero-Dependency
Free
Open Source IT Tools
EPISODE #001 Windows Health & Diagnostics

Automated Windows 11 Health & File Restorer

Automate DISM, SFC, Component Store Repair & OS Health

Scans component store, restores corrupted files using DISM, executes SFC repair, and cleans up obsolete WinSxS packages.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Invoke-SystemHealthRepair.ps1
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
DISM /Online /Cleanup-Image /StartComponentCleanup
Download .ps1
EPISODE #002 Windows Health & Diagnostics

Windows Update Reset & Cache Purger

Clear SoftwareDistribution, Restart WUAUSERV, Fix Error 0x80070002

Diagnoses and repairs stuck Windows Update loops by gracefully stopping services, purging SoftwareDistribution and Catroot2 caches.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Reset-WindowsUpdateCache.ps1
Stop-Service wuauserv, bits, cryptsvc -Force
Rename-Item $env:SystemRoot\SoftwareDistribution SoftwareDistribution.bak
Start-Service wuauserv, bits, cryptsvc
usoclient StartScan
Download .ps1
EPISODE #003 Windows Health & Diagnostics

BSOD Crash Dump & Minidump Analyzer

Extract Bugcheck Codes, Faulting Drivers & Kernel Crashes

Scans C:\Windows\Minidump, parses bugcheck codes, identifies culprit sys/dll drivers, and exports structured crash telemetry.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Analyze-BSODMinidump.ps1
Get-WinEvent -FilterHashtable @{LogName='System'; Id=1001,41} -MaxEvents 10 | Select TimeCreated, Id, Message
Get-ChildItem 'C:\Windows\Minidump\*.dmp'
Download .ps1
EPISODE #004 Windows Health & Diagnostics

Windows Critical Service Watchdog & Auto-Healer

Monitor, Restart & Remediate Broken Core Windows Services

Audits business-critical services (Spooler, WinRM, LanmanServer, W32Time), detects stopped states, and heals them with automatic restart.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Watchdog-CriticalServices.ps1
$services = @('Spooler','WinRM','LanmanServer','W32Time')
foreach ($s in $services) { if ((Get-Service $s).Status -ne 'Running') { Start-Service $s } }
Download .ps1
EPISODE #005 Windows Health & Diagnostics

Print Spooler Deep Purge & Stuck Queue Cleanser

Flush Corrupted SPL/SHD Files & Reset Spooler Subsystem

Safely stops Print Spooler, purges locked .SHD/.SPL spool files in System32\spool\PRINTERS, and restarts print subsystem without server reboot.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Clear-PrintSpoolerQueue.ps1
Stop-Service Spooler -Force
Remove-Item $env:SystemRoot\System32\spool\PRINTERS\* -Force
Start-Service Spooler
Download .ps1
EPISODE #006 Windows Health & Diagnostics

Critical System Event Log & Error Extractor

Filter Event ID Errors, Warnings & Disk Failures to HTML/CSV

Extracts critical and error level events from System and Application event logs over the last 24-48 hours, highlighting disk bad blocks and driver timeouts.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Export-CriticalSystemEvents.ps1
Get-WinEvent -FilterHashtable @{LogName='System'; Level=1,2; StartTime=(Get-Date).AddDays(-1)} -MaxEvents 50 | Select TimeCreated, ProviderName, Id, Message
Download .ps1
EPISODE #007 Windows Health & Diagnostics

Windows Fast Startup & Hibernation Storage Optimizer

Disable Hiberfil.sys & Free 16GB-32GB of SSD Storage

Disables Windows Fast Startup and removes hiberfil.sys to reclaim RAM-equivalent disk space on SSDs while eliminating hybrid sleep boot bugs.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Optimize-WindowsFastStartup.ps1
powercfg.exe /hibernate off
Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name HiberbootEnabled -Value 0
Download .ps1
EPISODE #008 Windows Health & Diagnostics

WMI & Winmgmt Repository Integrity Verifier & Repair

Fix Broken WMI Queries, 0x80041003 & SCCM/Intune Agent Errors

Checks the consistency of the Windows Management Instrumentation (WMI) repository and repairs corrupted database indexes safely.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Repair-WMIRepository.ps1
winmgmt /verifyrepository
winmgmt /salvagerepository
winmgmt /resetrepository
Download .ps1
EPISODE #009 Windows Health & Diagnostics

Group Policy (GPO) Force Refresh & Diagnostic Auditor

Run GPUpdate, Detect GPO Sync Failures & Export RSOP Report

Forces Group Policy background sync, validates Domain Controller connectivity, and generates an HTML Resultant Set of Policy (RSOP) audit report.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Invoke-GPODiagnostics.ps1
gpupdate /force /wait:0
Get-GPResultantSetOfPolicy -ReportType Html -Path 'C:\IT_Support_Logs\GPO_Report.html'
Download .ps1
EPISODE #010 Windows Health & Diagnostics

Windows Driver Store Clean & Corrupt Driver Fixer

Enumerate Third-Party Drivers & Remove Obsolete INF Packages

Lists third-party OEM drivers using pnputil, identifies superseded or disconnected hardware drivers, and frees up driver repository storage.

⚡ KEY ENTERPRISE FEATURES:
  • Deep Image Scan: Verifies OS component store and file integrity.
  • Automated Remediation: Replaces corrupt DLL and SYS files automatically.
  • Cache & Dump Cleanup: Purges gigabytes of obsolete update and dump caches.
  • Zero Server Reboot: Executes safely in live production user sessions.
Clean-DriverStorePackages.ps1
pnputil.exe /enum-drivers
pnputil.exe /delete-driver oem*.inf /uninstall /force
Download .ps1
EPISODE #011 Active Directory & IAM

AD Inactive & Stale User Account Auditor (90+ Days)

Detect Inactive Employees, Export to CSV & Flag for Disable

Queries Active Directory for user accounts that have not authenticated in over 90 days, distinguishing service accounts from human employees.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
Audit-ADInactiveUsers.ps1
$date = (Get-Date).AddDays(-90)
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -UsersOnly | Select Name, SamAccountName, LastLogonDate
Download .ps1
EPISODE #012 Active Directory & IAM

Bad Password & Locked Out Account Instant Unblocker

Identify Lockout Source DC, Unlock User & Audit Failed Attempts

Finds all currently locked-out domain users, determines which workstation/DC triggered the bad password count, and unlocks them instantly.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
Unlock-ADUserFast.ps1
Search-ADAccount -LockedOut | Select SamAccountName, Name
Unlock-ADAccount -Identity $username
Download .ps1
EPISODE #013 Active Directory & IAM

Bulk New Hire User Provisioning from CSV

Auto-Create AD Accounts, Generate Secure Passwords & Assign Groups

Reads a new-hire employee CSV spreadsheet, creates AD user objects, provisions home folders, sets required GPO groups, and forces password change.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
New-ADUsersBulkCSV.ps1
Import-Csv users.csv | ForEach-Object {
    New-ADUser -Name $_.Name -SamAccountName $_.Username -Department $_.Dept -AccountPassword (ConvertTo-SecureString $_.Password -AsPlainText -Force) -Enabled $true
}
Download .ps1
EPISODE #014 Active Directory & IAM

Expiring User Password Alert & Email Reporter

Audit Passwords Expiring in 7-14 Days & Send Automated Notices

Calculates password expiration dates based on domain fine-grained password policies and notifies users via email or teams webhook before lockout.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
Send-PasswordExpiryAlert.ps1
Get-ADUser -Filter {Enabled -eq $true -and PasswordNeverExpires -eq $false} -Properties msDS-UserPasswordExpiryTimeComputed | Select Name, @{N='Expires';E={[DateTime]::FromFileTime($_.'msDS-UserPasswordExpiryTimeComputed')}}
Download .ps1
EPISODE #015 Active Directory & IAM

Domain Controller Replication & Health Diagnostic

Verify Repadmin Status, SYSVOL Share & Active Directory Topology

Tests replication links between all domain controllers, verifies SYSVOL and Netlogon shares, and flags replication delays or tombstone errors.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
Test-ADReplicationHealth.ps1
Get-ADDomainController -Filter * | ForEach-Object { repadmin /showrepl $_.HostName }
Test-NetConnection -ComputerName $DC -Port 389
Download .ps1
EPISODE #016 Active Directory & IAM

AD Group Membership Differential & Orphan Cleaner

Audit Nested Groups, Detect Ghost Members & Export Matrix

Extracts all security groups, identifies disabled user accounts still clinging to sensitive groups, and exports full membership matrix for audits.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
Audit-ADGroupMemberships.ps1
Get-ADGroup -Filter * | ForEach-Object { $grp = $_.Name; Get-ADGroupMember $grp | Select @{N='Group';E={$grp}}, Name, SamAccountName, Enabled }
Download .ps1
EPISODE #017 Active Directory & IAM

Privileged Domain Admin & Enterprise Admin Security Auditor

Scan Tier-0 Admins, Enforce Least Privilege & Alert on New Admins

Audits members of Domain Admins, Enterprise Admins, Schema Admins, and Account Operators, comparing against authorized baseline.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
Audit-PrivilegedAdmins.ps1
Get-ADGroupMember 'Domain Admins' -Recursive | Select Name, SamAccountName, DistinguishedName
Download .ps1
EPISODE #018 Active Directory & IAM

Stale Computer Account Tagger & OU Archiver

Locate Obsolete Domain Workstations & Move to Disabled OU

Discovers computer accounts that have not contacted Active Directory in over 120 days, disables the computer trust, and moves them to an Archive OU.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
Move-StaleADComputers.ps1
$cutoff = (Get-Date).AddDays(-120)
Get-ADComputer -Filter {LastLogonDate -lt $cutoff -and Enabled -eq $true} | Move-ADObject -TargetPath 'OU=Disabled_Computers,DC=corp,DC=local'
Download .ps1
EPISODE #019 Active Directory & IAM

Active Directory Recycle Bin Deleted Object Restorer

Search Tombstoned Objects & Instant Undelete with Permissions

Queries the Active Directory Recycle Bin for accidentally deleted users, groups, or computers, and restores them intact with their SIDs and group links.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
Restore-ADDeletedObject.ps1
Get-ADObject -Filter 'isDeleted -eq $true -and name -like "*$search*"' -IncludeDeletedObjects | Restore-ADObject
Download .ps1
EPISODE #020 Active Directory & IAM

AD Forest Trust & Kerberos Ticket Lifetime Verifier

Validate Two-Way Forest Trusts, KDC Sync & SPN Health

Checks bidirectional domain forest trusts, tests Kerberos Ticket Granting Service (TGS) authentication paths, and identifies duplicate SPNs.

⚡ KEY ENTERPRISE FEATURES:
  • Domain-Wide Search: Queries AD DS directory partitions with zero latency.
  • Least Privilege Audit: Pinpoints over-privileged or stale security principals.
  • Automated Remediation: Unlocks, disables, or archives objects immediately.
  • Cross-DC Replication: Validates replication state across all Domain Controllers.
Test-ADForestTrusts.ps1
Get-ADTrust -Filter *
setspn.exe -X
Download .ps1
EPISODE #021 Microsoft 365 & Entra ID

Entra ID Hybrid Join & PRT Token Diagnostics

Run dsregcmd, Verify AzureAdJoined, DomainJoined & TPM PRT

Parses dsregcmd /status output into structured PowerShell objects, inspecting AzureAdJoined, EnterpriseJoined, and AzureAdPrt status.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
Test-EntraHybridJoin.ps1
dsregcmd /status | Select-String 'AzureAdJoined|DomainJoined|AzureAdPrt'
Get-Service -Name IntuneManagementExtension
Download .ps1
EPISODE #022 Microsoft 365 & Entra ID

Microsoft 365 Inactive License Reclaimer & Usage Auditor

Scan Inactive 60-Day Accounts & Reclaim Expensive E3/E5 Licenses

Audits Microsoft 365 user mailbox activity and OneDrive sign-in logs, flagging assigned Business Premium/E3/E5 licenses that are unused.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
Reclaim-M365Licenses.ps1
Get-MgUser -Filter 'accountEnabled eq false' -Property AssignedLicenses | ForEach-Object { Set-MgUserLicense -UserId $_.Id -RemoveLicenses $_.AssignedLicenses.SkuId }
Download .ps1
EPISODE #023 Microsoft 365 & Entra ID

Exchange Online Inbox Forwarding Rule & Phishing Auditor

Detect Stealth External Auto-Forwarding Rules Set by Hackers

Scans all cloud mailboxes for client-side inbox rules forwarding enterprise emails to external Gmail, Yahoo, or suspicious domains.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
Audit-ExchangeInboxRules.ps1
Get-Mailbox -ResultSize Unlimited | Get-InboxRule | Where-Object { $_.ForwardTo -or $_.ForwardAsAttachmentTo } | Select MailboxOwnerId, Name, ForwardTo
Download .ps1
EPISODE #024 Microsoft 365 & Entra ID

M365 Mailbox Permission & Delegate Access Reviewer

Audit FullAccess, SendAs, SendOnBehalf Across All Mailboxes

Generates a complete security matrix of all FullAccess and SendAs permissions assigned to executives, accounting, and shared mailboxes.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
Audit-MailboxPermissions.ps1
Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission | Where-Object { $_.User -notlike 'NT AUTHORITY*' -and $_.IsInherited -eq $false }
Download .ps1
EPISODE #025 Microsoft 365 & Entra ID

Shared Mailbox Auto-Provisioning & Retention Setup

Create Free Shared Mailbox, Assign Delegation & Set Retention Policy

Provisions cloud-only shared mailboxes, grants Read/SendAs delegation to designated team members, and configures auto-mapping and retention.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
New-M365SharedMailbox.ps1
New-Mailbox -Shared -Name $Name -DisplayName $DisplayName -PrimarySmtpAddress $Email
Add-MailboxPermission -Identity $Email -User $Delegate -AccessRights FullAccess
Download .ps1
EPISODE #026 Microsoft 365 & Entra ID

Intune Device Compliance & Remote Sync Trigger

Force Immediate Intune Agent Check-In & Diagnostics Export

Triggers the Microsoft Intune Management Extension (IME) to sync company portal apps, re-evaluate device compliance, and export IME logs.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
Invoke-IntuneDeviceSync.ps1
Get-Service IntuneManagementExtension | Restart-Service
& "$env:ProgramFiles\Microsoft OneDrive\OneDrive.exe" /reset
Download .ps1
EPISODE #027 Microsoft 365 & Entra ID

Entra ID Password-Never-Expires User Security Audit

Locate Non-Compliant Cloud Users Violating Password Standards

Scans Microsoft Entra ID (Azure AD) for user accounts configured with PasswordNeverExpires enabled, ensuring alignment with corporate policy.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
Audit-EntraPasswordNeverExpires.ps1
Get-MgUser -All -Property Id, DisplayName, UserPrincipalName, PasswordPolicies | Where-Object { $_.PasswordPolicies -match 'DisablePasswordExpiration' }
Download .ps1
EPISODE #028 Microsoft 365 & Entra ID

Microsoft Teams Meeting Cache & Client Reset

Purge Stalled Teams 2.0 Webview2 Cache, Logs & Credential Tokens

Completely flushes Microsoft Teams classical and new 2.0 cache, clearing corrupted local storage, cookie jars, and Webview2 database locks.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
Clear-TeamsAppCache.ps1
Stop-Process -Name ms-teams, teams -Force -ErrorAction SilentlyContinue
Remove-Item "$env:LOCALAPPDATA\Packages\MSTeams_8wekyb3d8bbwe\LocalCache" -Recurse -Force
Download .ps1
EPISODE #029 Microsoft 365 & Entra ID

OneDrive Sync Stall & Credential Cache Resolver

Unfreeze Stuck Sync Engine, Reset Client & Reconnect Tenant

Restarts stuck OneDrive sync clients, clears pending credential tokens, executes onedrive.exe /reset, and verifies tenant synchronization status.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
Reset-OneDriveSyncEngine.ps1
& "$env:ProgramFiles\Microsoft OneDrive\OneDrive.exe" /reset
Start-Sleep -Seconds 3
Start-Process "$env:ProgramFiles\Microsoft OneDrive\OneDrive.exe"
Download .ps1
EPISODE #030 Microsoft 365 & Entra ID

Microsoft 365 Multi-Factor Authentication (MFA) Status Audit

Verify Enforced / Enabled MFA & Registered Auth Methods

Audits Microsoft 365 accounts for Authenticator app, FIDO2 key, or SMS registration, reporting unprotected cloud users to compliance teams.

⚡ KEY ENTERPRISE FEATURES:
  • Cloud Tenant Discovery: Queries Microsoft Graph & Exchange Online endpoints.
  • License Optimization: Flags unassigned, inactive, or wasted cloud licenses.
  • Security Posture Audit: Verifies MFA, forwarding rules, and conditional access.
  • Zero Downtime Setup: Applies mailbox and tenant changes asynchronously.
Audit-M365MFAStatus.ps1
Get-MgUserRegistrationFeatureDetail | Select UserPrincipalName, IsMfaRegistered, IsMfaCapable, DefaultMfaMethod
Download .ps1
EPISODE #031 Network & DNS Diagnostics

60-Second Full Network & Gateway Health Probe

Test Gateway, DNS, MTU, Egress Latency & M365 Handshakes

Runs an end-to-end network connectivity audit, validating local gateway ping, DNS resolution, internet egress, and Microsoft 365 endpoint handshakes.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Test-NetworkHealthProbe.ps1
Test-NetConnection -ComputerName 1.1.1.1 -CommonTCPPort HTTP
Test-NetConnection -ComputerName 'login.microsoftonline.com' -Port 443
Download .ps1
EPISODE #032 Network & DNS Diagnostics

DNS Cache Flush & Multi-Server Query Validator

Purge Resolver Cache, Query 8.8.8.8 vs Internal Domain DNS

Flushes the local DNS client cache, tests resolution across multiple DNS servers (internal AD vs public 1.1.1.1), and reveals split-brain DNS issues.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Resolve-DNSDiagnostics.ps1
Clear-DnsClientCache
Resolve-DnsName -Name 'autodiscover.company.com' -Server 10.0.0.1 -DnsOnly
Resolve-DnsName -Name 'google.com' -Server 8.8.8.8
Download .ps1
EPISODE #033 Network & DNS Diagnostics

TCP Port Handshake & Latency Profiler

Modern Telnet Replacement with Test-NetConnection & Route Trace

Tests target TCP ports (443, 3389, 80, 25, 53) without installing legacy Telnet, recording round-trip time and packet loss metrics.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Test-PortLatencyProfiler.ps1
Test-NetConnection -ComputerName 'mail.corp.com' -Port 25 -InformationLevel Detailed
Test-NetConnection -ComputerName 'dc01.corp.com' -Port 3389
Download .ps1
EPISODE #034 Network & DNS Diagnostics

Rogue DHCP & IP Address Conflict Scanner

Detect Unauthorized DHCP Routers & Duplicate IP Workstations

Broadcasts DHCP discover packets to uncover rogue Wi-Fi routers plugged into the office LAN handing out wrong IP subnets to employees.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Find-RogueDHCPConflict.ps1
Get-NetIPConfiguration | Select IPv4Address, IPv4DefaultGateway, DNSServer
arp -a | Group-Object -Property {$_.Split()[0]} | Where-Object {$_.Count -gt 1}
Download .ps1
EPISODE #035 Network & DNS Diagnostics

Wi-Fi Signal Quality & Saved Profile Password Exporter

Audit BSSID Signal RSSI, Channel Crowding & Export Keys

Extracts all saved Wi-Fi SSIDs and cleartext passwords for authorized IT troubleshooting, and analyzes real-time signal strength and channel crowding.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Export-WiFiProfilesAndSignal.ps1
(netsh wlan show profiles) | Select-String 'All User Profile' | ForEach-Object {
    $name = ($_.ToString() -split ':')[1].Trim()
    netsh wlan show profile name="$name" key=clear
}
Download .ps1
EPISODE #036 Network & DNS Diagnostics

Static Route & Routing Table Optimization Audit

Inspect Persistent IPv4 Routes, Detect Metric Loops & Flushes

Audits the Windows IPv4 routing table, flags conflicting metrics or rogue persistent routes breaking VPN tunnels, and optimizes default gateway priority.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Audit-SystemRoutingTable.ps1
Get-NetRoute -AddressFamily IPv4 | Sort-Object RouteMetric | Format-Table DestinationPrefix, NextHop, RouteMetric, InterfaceAlias -AutoSize
Download .ps1
EPISODE #037 Network & DNS Diagnostics

Local Windows Defender Firewall Port Rule Auditor

Enumerate Inbound Port Exceptions, Detect Risky Any-Any Rules

Scans all active Windows Firewall inbound rules, pinpointing overly permissive rules allowing unauthorized outside access to local ports.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Audit-FirewallPortRules.ps1
Get-NetFirewallRule -Direction Inbound -Enabled True | Where-Object { $_.Action -eq 'Allow' } | Select DisplayName, Direction, Action, Profile
Download .ps1
EPISODE #038 Network & DNS Diagnostics

Network Adapter Driver Reset & IP Stack Rebuilder

Full Winsock Reset, IP Stack Rebuild, Adapter Power Cycle

Executes a complete network plumbing overhaul: netsh winsock reset, netsh int ip reset, releases DHCP leases, and cycles network adapter power.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Reset-NetworkStackAndAdapter.ps1
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
Download .ps1
EPISODE #039 Network & DNS Diagnostics

Public IP & ISP Egress Latency / Hop Tracker

Query Public IP, ASN, Geolocation & Continuous Ping Profiler

Queries external public IP and ISP details via API, running continuous ping and packet drop tests against Cloudflare, Google, and AWS gateways.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Track-ISPLatencyAndEgress.ps1
$ipInfo = Invoke-RestMethod 'https://ipinfo.io/json'
Write-Host "Public IP: $($ipInfo.ip) | ISP: $($ipInfo.org) | Loc: $($ipInfo.city)"
Download .ps1
EPISODE #040 Network & DNS Diagnostics

Bandwidth & Listening Socket Process PID Mapper

Map Open Ports to Owning Process Names & Detect High Traffic

Lists all active TCP/UDP connections, instantly mapping the foreign port and PID to the active running application executable name.

⚡ KEY ENTERPRISE FEATURES:
  • Multi-Hop Latency Probe: Measures TCP SYN/ACK handshake round-trip times.
  • DNS Resolver Analysis: Validates authoritative vs cache records directly.
  • Port Security Audit: Maps open listening sockets to executable binaries.
  • Adapter Stack Rebuild: Resets Winsock, IP routing table, and ARP tables.
Get-NetworkSocketProcesses.ps1
Get-NetTCPConnection -State Established | Select LocalAddress, LocalPort, RemoteAddress, RemotePort, OwningProcess, @{N='Process';E={(Get-Process -Id $_.OwningProcess -EA SilentlyContinue).ProcessName}}
Download .ps1
EPISODE #041 Security & Threat Auditing

Microsoft Defender Automation & Offline Scan Scheduler

Update Signatures, Trigger Quick/Full Scan & Schedule Offline

Updates Microsoft Defender definitions directly from Microsoft Cloud, runs quick/full scans silently, and logs threat detection history.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Invoke-DefenderAutomation.ps1
Update-MpSignature
Start-MpScan -ScanType FullScan
Get-MpThreatDetection | Select ThreatName, InitialDetectionTime, Resources
Download .ps1
EPISODE #042 Security & Threat Auditing

Open Listening Port to Owning Process PID Threat Scanner

Audit All TCP Listeners & Flag Suspicious Backdoors

Audits every port in a 'Listen' state on the computer, validating whether the owning process resides in a trusted System32 path or untrusted Temp folder.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Scan-OpenListeningPorts.ps1
Get-NetTCPConnection -State Listen | Select LocalAddress, LocalPort, OwningProcess, @{N='Path';E={(Get-Process -Id $_.OwningProcess -EA SilentlyContinue).Path}}
Download .ps1
EPISODE #043 Security & Threat Auditing

Local Administrator Account Audit & Rogue Admin Stripper

Detect Unauthorized Users in Local Administrators Group

Scans the local 'Administrators' group on workstations, reporting any non-standard user accounts or unauthorized employees with admin rights.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Audit-LocalAdministrators.ps1
Get-LocalGroupMember -Group 'Administrators' | Select Name, PrincipalSource, ObjectClass
Download .ps1
EPISODE #044 Security & Threat Auditing

USB Storage Device Access Lock & Audit Logger

Disable USB Mass Storage or Restrict to Read-Only Mode

Controls USB removable storage access via registry keys, switching between Fully Blocked, Read-Only, or Enabled, and logging USB plug-ins.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Set-USBStorageSecurity.ps1
Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR' -Name 'Start' -Value 4
Write-Host 'USB Storage Blocked.' -ForegroundColor Red
Download .ps1
EPISODE #045 Security & Threat Auditing

PowerShell Script Block Logging & Transcription Enabler

Enable Event ID 4104 Deep Script Auditing & Command History

Turns on deep PowerShell Script Block Logging, Module Logging, and Transcription to C:\IT_Support_Logs, capturing malicious script execution.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Enable-PowerShellAuditing.ps1
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging' -Force
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging' -Name 'EnableScriptBlockLogging' -Value 1
Download .ps1
EPISODE #046 Security & Threat Auditing

BitLocker Encryption Status & Recovery Key Escrow Validator

Verify XTS-AES 256 Encryption & Check AD/Entra Key Escrow

Queries BitLocker encryption percentage, cipher strength, protection status, and verifies if the 48-digit recovery key is safely backed up to Entra ID.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Test-BitLockerCompliance.ps1
Get-BitLockerVolume | Select MountPoint, VolumeStatus, EncryptionMethod, ProtectionStatus, KeyProtector
Download .ps1
EPISODE #047 Security & Threat Auditing

Windows Credential Manager Stale Entry Wiper

Purge Corrupt Stale SSO, Outlook & M365 Cached Credentials

Enumerates and deletes outdated cached passwords and tokens in Windows Credential Manager causing repeated password prompts in Outlook and Teams.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Clear-StaleWindowsCredentials.ps1
cmdkey /list | Select-String 'Target:' | ForEach-Object {
    $target = ($_.ToString() -split 'Target: ')[1].Trim()
    if ($target -match 'MicrosoftOffice|Outlook') { cmdkey /delete:$target }
}
Download .ps1
EPISODE #048 Security & Threat Auditing

Suspicious Scheduled Task & Persistence Hunter

Audit Tasks in Hidden Paths, Temp Folders & Encoded Commands

Inspects all Windows Task Scheduler entries, highlighting tasks running out of AppData, Temp, or calling PowerShell with -EncodedCommand or -WindowStyle Hidden.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Hunt-SuspiciousScheduledTasks.ps1
Get-ScheduledTask | Where-Object { $_.Actions.Execute -match 'powershell|cmd|cscript|wscript' } | Select TaskName, TaskPath, @{N='Action';E={$_.Actions.Execute + ' ' + $_.Actions.Arguments}}
Download .ps1
EPISODE #049 Security & Threat Auditing

SSL/TLS Certificate Expiration Watchdog (Local Machine)

Audit Certificates Expiring in 30 Days in Local Computer Store

Scans Cert:\LocalMachine\My and WebHosting stores for expiring SSL/TLS certificates, sending early warnings before services display security warnings.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Audit-SSLCertificateExpiry.ps1
Get-ChildItem Cert:\LocalMachine\My | Where-Object { $_.NotAfter -lt (Get-Date).AddDays(30) } | Select Subject, NotAfter, Thumbprint
Download .ps1
EPISODE #050 Security & Threat Auditing

Windows Ransomware Extension & Honeypot File Watcher

Deploy Canaries & Monitor File System Changes in Real-Time

Places canary honeypot files in key directories and monitors file system events for mass encryption attempts, triggering emergency isolation.

⚡ KEY ENTERPRISE FEATURES:
  • Threat Surface Scan: Audits open listening ports, tasks, and credentials.
  • Privilege Escalation Trap: Detects unauthorized members in Local Administrators.
  • Anti-Ransomware Defense: Monitors canary files and suspicious script executions.
  • Storage Encryption Audit: Verifies BitLocker protection and Cloud key escrow.
Watch-RansomwareHoneypot.ps1
$watcher = New-Object System.IO.FileSystemWatcher
$watcher.Path = 'C:\Honeypot'
$watcher.EnableRaisingEvents = $true
Download .ps1
EPISODE #051 Storage & Disk Cleanup

C: Drive Emergency Deep Cleaner (Temp, WinSxS, Dumps)

Purge Temp, Windows.old, Memory Dumps & Free 15GB+ Instantly

Aggressively purges user temp files, system temp, Windows Error Reporting dumps, delivery optimization caches, and obsolete install folders.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Invoke-EmergencyDiskCleaner.ps1
Remove-Item "$env:TEMP\*" -Recurse -Force -EA SilentlyContinue
Remove-Item "$env:SystemRoot\Temp\*" -Recurse -Force -EA SilentlyContinue
Cleanmgr.exe /sagerun:1
Download .ps1
EPISODE #052 Storage & Disk Cleanup

Oversized Files (>1GB) Scanner & Tree Mapper

Find Top 20 Space Hogs Across Local Drives with Formatted Sizes

Deep-scans local drives for files exceeding 1GB, sorting them in descending order and formatting sizes in clean GB/MB units for rapid cleanup.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Find-OversizedFiles.ps1
Get-ChildItem C:\ -Recurse -File -EA SilentlyContinue | Where-Object { $_.Length -gt 1GB } | Select FullName, @{N='SizeGB';E={[math]::Round($_.Length/1GB, 2)}} | Sort SizeGB -Descending | Select -First 20
Download .ps1
EPISODE #053 Storage & Disk Cleanup

Duplicate File Detection by SHA256 Hash

Scan File Hashes to Pinpoint Exact Duplicates & Free Space

Hashes files of identical size using SHA256 cryptographic algorithms, safely identifying true duplicate files regardless of renaming.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Find-DuplicateFilesSHA256.ps1
Get-ChildItem -Path $folder -File -Recurse | Group-Object -Property Length | Where-Object { $_.Count -gt 1 } | ForEach-Object { $_.Group | Get-FileHash -Algorithm SHA256 } | Group-Object -Property Hash | Where-Object { $_.Count -gt 1 }
Download .ps1
EPISODE #054 Storage & Disk Cleanup

Robocopy Robust File Mirroring with Retry & Logging

Enterprise Multi-Threaded Sync with NTFS Permissions & Logs

Wraps robust robocopy with enterprise flags (/MIR /ZB /MT:16 /R:2 /W:3 /COPYALL /LOG), ideal for server migrations and bulk backup jobs.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Invoke-RobustFileMirror.ps1
robocopy.exe $Source $Destination /MIR /ZB /MT:16 /R:2 /W:3 /COPYALL /NP /LOG:"C:\IT_Support_Logs\Robocopy.log"
Download .ps1
EPISODE #055 Storage & Disk Cleanup

NTFS Folder Permission (ACL) Auditing & Broken Inheritance Fix

Export Access Control Lists & Repair Corrupted Permissions

Audits access rights on confidential shared directories, identifies broken inheritance, and repairs corrupted security descriptors.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Repair-FolderPermissionsACL.ps1
Get-Acl -Path $folder | Select-Object -ExpandProperty Access | Select IdentityReference, FileSystemRights, AccessControlType, IsInherited
Download .ps1
EPISODE #056 Storage & Disk Cleanup

Empty Folder & Zero-Byte Ghost File Purger

Recursively Clean Abandoned Directories & Dead Stub Files

Traverses directory structures backwards to safely delete empty abandoned folder hierarchies and zero-byte ghost files left by failed downloads.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Remove-EmptyDirectoriesAndStubs.ps1
Get-ChildItem -Path $target -Directory -Recurse | Where-Object { (Get-ChildItem $_.FullName -Force).Count -eq 0 } | Remove-Item -Force
Download .ps1
EPISODE #057 Storage & Disk Cleanup

SSD TRIM Optimizer & SMART Health Query

Trigger NVMe/SATA SSD TRIM & Verify Drive Health Percentage

Checks drive media type (SSD vs HDD), queries remaining drive life percentage and bad sectors via SMART, and invokes filesystem TRIM optimization.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Optimize-SSDHealthAndTrim.ps1
Optimize-Volume -DriveLetter C -ReTrim -Verbose
Get-PhysicalDisk | Select DeviceId, FriendlyName, MediaType, OperationalStatus, HealthStatus
Download .ps1
EPISODE #058 Storage & Disk Cleanup

User Profile Disk Usage & Ghost Profile Cleaner

Measure C:\Users Sizes & Safely Delete Abandoned User Profiles

Calculates disk consumption across all user profiles under C:\Users, and cleanly removes orphaned profiles via WMI without leaving registry debris.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Clean-OrphanUserProfiles.ps1
Get-CimInstance -ClassName Win32_UserProfile | Where-Object { -not $_.Special -and $_.LastUseTime -lt (Get-Date).AddDays(-60) } | Remove-CimInstance
Download .ps1
EPISODE #059 Storage & Disk Cleanup

Network Shared Folder Permission Compliance Scanner

Audit SMB Shares, Open Access & Everyone Security Vulnerabilities

Lists all SMB file shares on the machine or server, highlighting dangerous shares granted to 'Everyone' or 'Anonymous' with Write/Full permissions.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Audit-SMBSharePermissions.ps1
Get-SmbShare | Get-SmbShareAccess | Where-Object { $_.AccountName -match 'Everyone|Anonymous' } | Format-Table -AutoSize
Download .ps1
EPISODE #060 Storage & Disk Cleanup

Volume Shadow Copy (VSS) Allocation & Snapshot Manager

Audit VSS Storage, Delete Stale Snapshots & Allocate MaxSize

Audits Shadow Copy storage allocation, identifies excessive disk hogging by ancient snapshots, and resets maximum shadow storage limits.

⚡ KEY ENTERPRISE FEATURES:
  • Emergency Space Reclaim: Frees 5GB - 20GB of locked disk space on drive C:.
  • SHA256 Hash Matching: Discovers identical duplicate files with 100% accuracy.
  • Oversized Tree Scanner: Pinpoints top space-hogging folders and archives.
  • NTFS ACL Preservation: Mirrors permissions with enterprise-grade Robocopy.
Manage-ShadowCopyStorage.ps1
vssadmin list shadowstorage
vssadmin delete shadows /for=C: /oldest /quiet
Download .ps1
EPISODE #061 Software Deployment & Winget

Silent Enterprise Winget Multi-App Pack Installer

Auto-Install Chrome, 7Zip, VSCode, Adobe Reader in 1 Command

Leverages native Windows Package Manager (winget) to silently install a standardized IT support software bundle with zero user clicks.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Install-EnterpriseAppPack.ps1
$apps = @('Google.Chrome', '7zip.7zip', 'Adobe.Acrobat.Reader.64-bit', 'Microsoft.VisualStudioCode')
foreach ($a in $apps) { winget install --id $a --silent --accept-package-agreements --accept-source-agreements }
Download .ps1
EPISODE #062 Software Deployment & Winget

Installed Software Inventory to CSV with Version & Architecture

Audit 32-bit & 64-bit Apps, Versions, Install Dates & Vendors

Scans both 32-bit and 64-bit registry uninstall keys and MSI database, generating a clean software inventory spreadsheet for audits.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Export-InstalledAppsInventory.ps1
Get-ItemProperty 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' | Select DisplayName, DisplayVersion, Publisher, InstallDate | Where-Object DisplayName | Export-Csv 'C:\IT_Support_Logs\Software_Inventory.csv' -NoType
Download .ps1
EPISODE #063 Software Deployment & Winget

Bloatware & Default Windows Provisioned Apps Cleaner

Strip Xbox, CandyCrush, TikTok & Preinstalled UWP Junk

Removes unwanted consumer provisioned AppX packages from modern Windows 10/11 installations for all new and existing user profiles.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Remove-WindowsBloatware.ps1
Get-AppxPackage -AllUsers | Where-Object { $_.Name -match 'Xbox|CandyCrush|Zune|BingWeather|TikTok' } | Remove-AppxPackage -AllUsers -EA SilentlyContinue
Download .ps1
EPISODE #064 Software Deployment & Winget

Silent MSI / EXE Remote Installer with Custom Arguments

Deploy Software Across Network with Exit Codes & Logging

Wrapper script to execute MSIs and EXEs silently (/qn, /verysilent), tracking process completion, return exit codes, and error logging.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Install-SilentSoftwarePackage.ps1
Start-Process -FilePath 'msiexec.exe' -ArgumentList "/i `"$InstallerPath`" /qn /norestart /log `"C:\IT_Support_Logs\Install.log`"" -Wait -PassThru
Download .ps1
EPISODE #065 Software Deployment & Winget

Java & Adobe Stale Version Scanner & Uninstaller

Purge Outdated Vulnerable JREs & Insecure PDF Readers

Identifies outdated versions of Java Runtime Environment (JRE) and Adobe Reader harboring critical CVE security vulnerabilities and uninstalls them.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Remove-VulnerableLegacyApps.ps1
Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match 'Java|Acrobat' -and $_.Version -lt '8.0.300' } | ForEach-Object { $_.Uninstall() }
Download .ps1
EPISODE #066 Software Deployment & Winget

Chrome & Edge Enterprise Extension & Cache Purger

Clean Browser Cache, Cookies & Audit Rogue Extension IDs

Safely stops browser processes, purges accumulated web caches and corrupted cookies, and audits installed extensions across Chrome and Edge.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Clear-BrowserCacheAndExtensions.ps1
Stop-Process -Name chrome, msedge -Force -EA SilentlyContinue
Remove-Item "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Cache\*" -Recurse -Force -EA SilentlyContinue
Download .ps1
EPISODE #067 Software Deployment & Winget

Outlook Cache & Broken Profile Rebuilder

Clear OST Cache, Reset Autodiscover XML & Repair Profile

Solves Outlook startup hangs and disconnects by terminating hung EXCEL/OUTLOOK tasks, clearing roaming XML cache, and regenerating OST files.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Reset-OutlookProfileAndCache.ps1
Stop-Process -Name outlook -Force -EA SilentlyContinue
Remove-Item "$env:LOCALAPPDATA\Microsoft\Outlook\*.ost.old" -Force -EA SilentlyContinue
Download .ps1
EPISODE #068 Software Deployment & Winget

Fonts & Enterprise TrueType Batch Installer

Register TTF/OTF Corporate Typography for All Users

Automates copying and registry registration of enterprise corporate fonts into C:\Windows\Fonts, making them instantly available system-wide.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Install-CorporateFontsBatch.ps1
Get-ChildItem -Path $fontDir -Filter *.ttf | ForEach-Object {
    Copy-Item $_.FullName "$env:SystemRoot\Fonts"
    New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts' -Name $_.Name -Value $_.Name -Force
}
Download .ps1
EPISODE #069 Software Deployment & Winget

Third-Party Patch Audit via Winget Upgrade Scanner

Scan Installed Apps for Outdated Versions & Bulk Update

Queries Windows Package Manager for available updates across all installed third-party software and triggers silent unattended patching.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Invoke-WingetAppUpgrades.ps1
winget upgrade --include-unknown
winget upgrade --all --silent --accept-package-agreements
Download .ps1
EPISODE #070 Software Deployment & Winget

Registry Setting Deployer for GPO/Intune Simulation

Push Standard Tweaks (Dark Mode, Path, Telemetry Off)

Pushes enterprise standardized registry keys for corporate workstations, disabling telemetry, configuring dark mode, and standardizing settings.

⚡ KEY ENTERPRISE FEATURES:
  • Silent Unattended Install: Deploys enterprise packages with zero user clicks.
  • Winget Multi-App Sync: Automates bulk installations from trusted repositories.
  • Software Asset Audit: Inventories installed 32-bit & 64-bit software to CSV.
  • Bloatware Elimination: Removes pre-installed consumer games and ad packages.
Set-StandardRegistryTweaks.ps1
Set-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name 'AppsUseLightTheme' -Value 0
Download .ps1
EPISODE #071 Help Desk & User Onboarding

Automated Standard Help Desk PC Post-Setup Initializer

Configure TimeZone, Rename PC, Enable RDP & Set Power Plan

Runs full setup checklist for new laptops: sets Adelaide Australia timezone, enables Remote Desktop, sets high-performance power, and renames PC.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
Initialize-NewWorkstation.ps1
Set-TimeZone -Id 'Cen. Australia Standard Time'
Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Value 0
powercfg.exe /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
Download .ps1
EPISODE #072 Help Desk & User Onboarding

User Offboarding Account Disable, Move OU & Mailbox Converter

Disable User, Revoke M365 Sessions & Convert to Shared Mailbox

Streamlines employee departures: disables AD account, scrambles password, revokes M365 refresh tokens, and converts mailbox to shared mailbox.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
Invoke-UserOffboardingWorkflow.ps1
Disable-ADAccount -Identity $user
Set-ADUser -Identity $user -Description "Offboarded $((Get-Date).ToString('yyyy-MM-dd'))"
Revoke-MgUserSignInSession -UserId $upn
Download .ps1
EPISODE #073 Help Desk & User Onboarding

Mapped Network Drives & Shared Printers Auto-Connector

Connect Corporate Shares & Departmental Printers on Logon

Maps persistent network drives (Z:, P:, S:) with validation, and connects network printers according to the user's active Active Directory group.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
Connect-CorporateDrivesAndPrinters.ps1
New-PSDrive -Name 'P' -PSProvider FileSystem -Root '\\server\Public' -Persist -Scope Global
Add-Printer -ConnectionName '\\printserver\HR_FollowMe'
Download .ps1
EPISODE #074 Help Desk & User Onboarding

Windows Default Apps (PDF, Browser, Mail) Setter

Associate Acrobat to PDF & Chrome to HTTP via AppAssoc.xml

Imports standardized OEM Default Application Associations XML, guaranteeing PDF opens in Acrobat Reader and web links open in Chrome.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
Set-DefaultEnterpriseApps.ps1
Dism.exe /Online /Import-DefaultAppAssociations:"C:\IT_Support_Configs\AppAssoc.xml"
Download .ps1
EPISODE #075 Help Desk & User Onboarding

Remote Assistance & Quick Assist Quick-Launcher

Launch MS Quick Assist, WinRM Session & Open Firewall Ports

Launches Microsoft Quick Assist with diagnostic arguments, opens required firewall traversal ports, and establishes remote support channels.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
Start-RemoteITSupportAssist.ps1
Start-Process 'quickassist.exe'
Enable-PSRemoting -Force -SkipNetworkProfileCheck
Download .ps1
EPISODE #076 Help Desk & User Onboarding

Employee Laptop Handover Reset & Safe Sanitization

Wipe Personal Credentials, History, Browser Caches & Leave Apps

Cleans an existing laptop for a new user without a time-consuming Windows reinstall: flushes credential caches, deletes previous profiles, and updates OS.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
Invoke-LaptopHandoverSanitization.ps1
Get-ChildItem 'C:\Users' | Where-Object { $_.Name -ne 'Administrator' } | ForEach-Object { Remove-Item $_.FullName -Recurse -Force -EA SilentlyContinue }
Download .ps1
EPISODE #077 Help Desk & User Onboarding

Desktop Shortcut & Start Menu Standardizer

Deploy Company Portal, HelpDesk Portal & IT Support Links

Generates uniform corporate shortcuts on the Public Desktop and Start Menu pointing to the IT HelpDesk ticket portal and Intune Company Portal.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
Deploy-StandardDesktopShortcuts.ps1
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$env:PUBLIC\Desktop\IT HelpDesk Portal.lnk")
$Shortcut.TargetPath = 'https://helpdesk.company.com'
$Shortcut.Save()
Download .ps1
EPISODE #078 Help Desk & User Onboarding

Environment Variables & Global System PATH Normalizer

Clean Duplicates, Append Dev Tools & Verify System PATH

Audits the machine and user PATH environment variables, removes non-existent folders and duplicate entries, and appends corporate utility paths.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
Normalize-SystemEnvironmentPath.ps1
$path = [Environment]::GetEnvironmentVariable('Path', 'Machine')
$cleaned = ($path -split ';' | Select-Object -Unique | Where-Object { Test-Path $_ }) -join ';'
[Environment]::SetEnvironmentVariable('Path', $cleaned, 'Machine')
Download .ps1
EPISODE #079 Help Desk & User Onboarding

User Home Folder Quota & Permission Provisioner

Create Private Network User Drive with Restricted NTFS Rights

Creates a secure network home folder for a user, sets strict Creator/Owner NTFS ACL permissions, and applies a storage quota policy.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
New-UserHomeDirectoryQuota.ps1
New-Item -ItemType Directory -Path "\\FileServer\Homes\$Username" -Force
$acl = Get-Acl "\\FileServer\Homes\$Username"
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule($Username, 'FullControl', 'ContainerInherit,ObjectInherit', 'None', 'Allow')
$acl.SetAccessRule($rule)
Set-Acl -Path "\\FileServer\Homes\$Username" -AclObject $acl
Download .ps1
EPISODE #080 Help Desk & User Onboarding

Outlook Email Signature HTML Batch Generator

Generate Branded Signatures from Active Directory User Attributes

Pulls job title, department, mobile number, and office location from Active Directory to generate a standardized company HTML Outlook signature.

⚡ KEY ENTERPRISE FEATURES:
  • Day-One Readiness: Initializes workstation settings, timezone & RDP in minutes.
  • Standardized User UI: Deploys corporate desktop shortcuts and default apps.
  • Drive & Printer Auto-Map: Mounts departmental SMB shares and print queues.
  • Graceful Offboarding: Disables user, revokes sessions, and converts mailbox.
New-OutlookSignatureFromAD.ps1
$adUser = Get-ADUser -Identity $env:USERNAME -Properties Title, Department, TelephoneNumber
$html = "<p><b>$($adUser.Name)</b><br>$($adUser.Title) | $($adUser.Department)<br>Tel: $($adUser.TelephoneNumber)</p>"
Set-Content "$env:APPDATA\Microsoft\Signatures\Standard.htm" -Value $html
Download .ps1
EPISODE #081 Hardware, Battery & Telemetry

Full System Hardware Spec Sheet & Serial Number Exporter

Extract Model, Serial Number, CPU, RAM, Disk to JSON/CSV

Extracts manufacturer, model, motherboard serial number, CPU architecture, total RAM, and storage health into a structured IT asset file.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Export-SystemHardwareInventory.ps1
Get-CimInstance Win32_ComputerSystem | Select Manufacturer, Model, TotalPhysicalMemory
Get-CimInstance Win32_Bios | Select SerialNumber, SMBIOSBIOSVersion
Download .ps1
EPISODE #082 Hardware, Battery & Telemetry

Laptop Battery Health & Degradation Cycle Reporter

Generate BatteryReport.html, Measure Full Charge vs Design Capacity

Invokes Windows powercfg /batteryreport, parses design capacity vs current full charge capacity, and calculates exact battery degradation percentage.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Get-LaptopBatteryHealthReport.ps1
powercfg /batteryreport /output 'C:\IT_Support_Logs\Battery_Report.html'
$cap = (Get-WmiObject -Class BatteryFullChargedCapacity).FullChargedCapacity
Download .ps1
EPISODE #083 Hardware, Battery & Telemetry

CPU & RAM Utilization Spike Tracker (Top 10 Culprits)

Log Top 10 Memory and Processor Consuming Processes

Monitors real-time processor and memory usage, capturing the top 10 memory-hogging processes and writing snapshots to a CSV audit log.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Monitor-PerformanceSpikes.ps1
Get-Process | Sort-Object CPU -Descending | Select-Object -First 10 ProcessName, Id, CPU, @{N='RAM_MB';E={[math]::Round($_.WorkingSet64/1MB, 2)}}
Download .ps1
EPISODE #084 Hardware, Battery & Telemetry

Dual/Triple Monitor Resolution & Display Adapter Diagnostic

Enumerate Connected Displays, Refresh Rates & Graphics Drivers

Audits multi-monitor setups, displaying resolution, active refresh rate (Hz), connection type (DisplayPort/HDMI), and GPU driver versions.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Get-DisplayAdapterDiagnostics.ps1
Get-CimInstance Win32_VideoController | Select Name, DriverVersion, VideoModeDescription
Get-WmiObject -Namespace root\wmi -Class WmiMonitorBasicDisplayParams
Download .ps1
EPISODE #085 Hardware, Battery & Telemetry

Thermal & CPU Fan Throttling Event Log Inspector

Detect Kernel-Processor-Power Event 37 Thermal Throttles

Queries System Event logs for Event ID 37 (Kernel-Processor-Power), revealing whether the CPU is dropping clocks due to overheating or thermal paste degradation.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Audit-ThermalThrottlingEvents.ps1
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Kernel-Processor-Power'; Id=37} -MaxEvents 20 -EA SilentlyContinue
Download .ps1
EPISODE #086 Hardware, Battery & Telemetry

BIOS/UEFI Version & Secure Boot Audit

Verify UEFI Mode, Secure Boot Enabled & Check Vendor Updates

Inspects BIOS release date, vendor, UEFI boot configuration, and validates Secure Boot enforcement required for Windows 11 compliance.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Audit-BIOSAndSecureBoot.ps1
Confirm-SecureBootUEFI
Get-CimInstance Win32_Bios | Select SMBIOSBIOSVersion, ReleaseDate, Manufacturer
Download .ps1
EPISODE #087 Hardware, Battery & Telemetry

RAM Module Serial, Speed & Empty Slot Verifier

Inspect RAM Frequency, Channel Mode, Part Numbers & Open Slots

Queries physical memory modules to show installed RAM capacity, frequency speed (MHz), manufacturer part number, and identifies available empty slots.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Get-RAMHardwareDetails.ps1
Get-CimInstance Win32_PhysicalMemory | Select BankLabel, DeviceLocator, @{N='SizeGB';E={$_.Capacity/1GB}}, Speed, Manufacturer, PartNumber
Download .ps1
EPISODE #088 Hardware, Battery & Telemetry

Peripheral USB Hub & HID Device Disconnect Log Auditor

Track USB Disconnects, Bad Cables & Docking Station Drops

Parses Windows PNP and Kernel-PnP event logs to identify unstable USB hubs, flickering webcams, and docking stations disconnecting unexpectedly.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Audit-USBDisconnectHistory.ps1
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Kernel-PnP'; Id=219} -MaxEvents 25 -EA SilentlyContinue
Download .ps1
EPISODE #089 Hardware, Battery & Telemetry

Windows Reliability Monitor Score & Failure Extractor

Query System Stability Index (1-10) & Recent App Crashes

Extracts the native Windows Reliability Monitor index score and aggregates recent application crashes, OS failures, and hardware anomalies.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Get-ReliabilityMonitorMetrics.ps1
Get-CimInstance Win32_ReliabilityRecords -Filter 'EventIdentifier > 0' | Select-Object -First 20 Logfile, Message, RecordNumber, TimeGenerated
Download .ps1
EPISODE #090 Hardware, Battery & Telemetry

Remote PC Uptime & Last Reboot Reason Investigator

Calculate System Uptime Days & Differentiate User vs Crash Reboot

Calculates exact system uptime in days/hours, and audits event logs to reveal whether the last reboot was initiated by a user, Windows Update, or a crash.

⚡ KEY ENTERPRISE FEATURES:
  • Full Asset Spec Sheet: Extracts CPU, RAM, GPU, Serial Number & Model.
  • Battery Degradation Index: Measures full charge vs design capacity milliwatt hours.
  • Spike Process Hunter: Pins top 10 memory and processor consuming culprits.
  • Thermal Throttling Audit: Detects Event 37 CPU frequency drops due to heat.
Get-SystemUptimeAndRebootReason.ps1
$os = Get-CimInstance Win32_OperatingSystem
$uptime = (Get-Date) - $os.LastBootUpTime
Write-Host "Uptime: $($uptime.Days) Days, $($uptime.Hours) Hours"
Download .ps1
EPISODE #091 Backup, Disaster Recovery & Automation

Automated Daily Critical Configuration Backup to NAS/Cloud

Zip Desktop, Documents & Network Profiles to Timestamped Archive

Compresses essential user workspaces, browser bookmarks, and network configs into a timestamped zip file and uploads to a remote network share.

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Backup-CriticalConfigsToArchive.ps1
$dest = "\\NAS01\Backups\$env:COMPUTERNAME\$((Get-Date).ToString('yyyyMMdd'))"
Compress-Archive -Path "C:\IT_Support_Configs" -DestinationPath "$dest.zip" -Force
Download .ps1
EPISODE #092 Backup, Disaster Recovery & Automation

Registry Branch Auto-Backup before System Tweaks

Export HKLM/HKCU Registry Hive with 1-Click Rollback Script

Exports specific registry keys and hives to a .reg file prior to system changes, creating an accompanying instant rollback script.

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Backup-RegistryBranchSafe.ps1
$backup = "C:\IT_Support_Logs\RegBackup_$(Get-Date -Format 'yyyyMMdd_HHmmss').reg"
& reg.exe export "HKLM\SYSTEM\CurrentControlSet" $backup /y
Download .ps1
EPISODE #093 Backup, Disaster Recovery & Automation

Hyper-V VM Snapshot & Checkpoint Health Watchdog

Audit Stale Checkpoints (>7 Days) & Prevent VHDX Storage Outage

Scans local Hyper-V hosts for abandoned snapshots older than 7 days, warning admins before delta AVHDX files consume the entire storage volume.

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Audit-HyperVCheckpoints.ps1
Get-VMSnapshot -VMName * | Where-Object { $_.CreationTime -lt (Get-Date).AddDays(-7) } | Select VMName, Name, CreationTime
Download .ps1
EPISODE #094 Backup, Disaster Recovery & Automation

Remote WinRM Mass-Command Orchestrator (1 to N Computers)

Execute ScriptBlock Concurrently Across 50+ Network Endpoints

Uses PowerShell remoting (Invoke-Command) to broadcast scripts across an entire subnet or computer list in parallel with aggregated output.

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Invoke-RemoteFleetCommand.ps1
Invoke-Command -ComputerName $computers -ScriptBlock { Get-Service wuauserv | Select Name, Status, PSComputerName } -ThrottleLimit 20
Download .ps1
EPISODE #095 Backup, Disaster Recovery & Automation

Windows Scheduled Task Exporter & Disaster Restorer

Backup All Scheduled Tasks to XML & Re-Register in Seconds

Exports custom enterprise scheduled tasks to XML files with triggers and credentials intact, allowing instantaneous recovery on a fresh machine.

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Backup-ScheduledTasksToXML.ps1
Get-ScheduledTask | Where-Object { $_.TaskPath -match 'Enterprise|ITSupport' } | ForEach-Object {
    Export-Clixml -InputObject $_ -Path "C:\IT_Support_Logs\$($_.TaskName).xml"
}
Download .ps1
EPISODE #096 Backup, Disaster Recovery & Automation

IIS Web Application Pool & Site Auto-Restart on Crash

Detect HTTP 503 Gateway Drops & Recycle WsusPool/DefaultPool

Monitors IIS Application Pools and website bindings, automatically recycling crashed or unresponsive worker processes (w3wp.exe).

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Watchdog-IISAppPools.ps1
Import-Module WebAdministration
Get-ChildItem 'IIS:\AppPools' | Where-Object { $_.State -ne 'Started' } | ForEach-Object { $_.Start() }
Download .ps1
EPISODE #097 Backup, Disaster Recovery & Automation

SysAdmin Daily Health Briefing Alert Sender

Compile Disk, Events, Backups & Send Daily HTML Status

Consolidates storage metrics, backup status, and security alerts into a daily HTML digest delivered to IT Support.

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Send-DailySysAdminBriefing.ps1
$body = "<h2>Daily SysAdmin Report</h2><p>All Core Services are operational.</p>"
# Formatted status summary output
Download .ps1
EPISODE #098 Backup, Disaster Recovery & Automation

Windows License Key & Activation State Audit

Verify KMS/MAK Channel, Digital License & Expiration Days

Queries Windows Software Licensing Manager (slmgr) to verify genuine activation status, partial product key, and KMS renewal intervals.

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Get-WindowsLicenseActivationStatus.ps1
Get-CimInstance SoftwareLicensingProduct -Filter 'PartialProductKey is not null' | Select Name, LicenseStatus, PartialProductKey
Download .ps1
EPISODE #099 Backup, Disaster Recovery & Automation

Automated Maintenance Window Rebooter with User Warning

Graceful 15-Minute Countdown Warning Dialog for Staff

Prompts logged-on users with a friendly 15-minute countdown modal dialog before initiating system restart after critical updates.

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Invoke-MaintenanceGracefulReboot.ps1
shutdown.exe /r /t 900 /c "IT Maintenance Window: This PC will restart in 15 minutes to apply critical security updates. Please save your work."
Download .ps1
EPISODE #100 Backup, Disaster Recovery & Automation

Emergency SysAdmin Panic Button - Offline Isolation Script

Sever Network, Disable NICs, Kill Active RDP & Lock Console

Instantly severs all network adapters, terminates active RDP connections, blocks outbound traffic, and locks the local workstation console in response to an active cyber breach.

⚡ KEY ENTERPRISE FEATURES:
  • Disaster Recovery Ready: Zips critical configs and pushes to NAS/Cloud storage.
  • Pre-Tweak Registry Safe: Creates timestamped .reg backups with 1-click restore.
  • Mass-Fleet Orchestration: Broadcasts commands to 50+ PCs simultaneously via WinRM.
  • VM Snapshot Watchdog: Prevents storage outages from forgotten Hyper-V checkpoints.
Invoke-EmergencyNetworkIsolation.ps1
Get-NetAdapter | Disable-NetAdapter -Confirm:$false
quser | ForEach-Object { logoff $_.ID }
rundll32.exe user32.dll,LockWorkStation
Download .ps1
Infographic Preview
Infographic
Script code copied to clipboard!