Skip to content

PowerShell Tips

Commands Tips

PowerShell WMI Event Subscription: React to System Events
─□✕
PowerShell WMI Event Subscription: React to System Events
June 5, 2026 PowerShell Tips Editor 5 min read

PowerShell WMI Event Subscription: React to System Events

Instead of polling for changes, WMI event subscriptions let your script react instantly when a process starts, a service stops, or a USB drive is inserted. Here is how to use them.

Process and Service Management
Get-Content readme.md
PowerShell Error Handling: Retry Logic with Exponential Backoff
─□✕
PowerShell Error Handling: Retry Logic with Exponential Backoff
June 4, 2026 PowerShell Tips Editor 3 min read

PowerShell Error Handling: Retry Logic with Exponential Backoff

Transient failures kill long-running automation. This guide shows how to wrap any PowerShell command in a Retry-Command function with configurable backoff, jitter, and maximum

Error Handling
Get-Content readme.md
PowerShell Scheduled Task: Create, Edit, and Audit via CIM
─□✕
PowerShell Scheduled Task: Create, Edit, and Audit via CIM
June 3, 2026 PowerShell Tips Editor 4 min read

PowerShell Scheduled Task: Create, Edit, and Audit via CIM

Scheduled Task management through the GUI is fine for one machine, but automating it across a fleet requires PowerShell. This guide covers creation, modification, and bulk

System Administration
Get-Content readme.md
PowerShell Script: Clean Up Stale AD Computer Accounts
─□✕
PowerShell Script: Clean Up Stale AD Computer Accounts
June 2, 2026 PowerShell Tips Editor 5 min read

PowerShell Script: Clean Up Stale AD Computer Accounts

Stale computer accounts bloat AD, create licensing noise, and are a security risk. This two-phase script finds inactive machines, disables them first, then deletes after a

Active Directory and Users
Get-Content readme.md
PowerShell Compare-Object Internals: Advanced Diffing Techniques
─□✕
PowerShell Compare-Object Internals: Advanced Diffing Techniques
June 1, 2026 PowerShell Tips Editor 5 min read

PowerShell Compare-Object Internals: Advanced Diffing Techniques

Compare-Object is one of PowerShell’s most misunderstood cmdlets. SyncWindow, PassThru, and multi-property diffing unlock powerful use cases for configuration drift detection.

Pipeline and Filtering
Get-Content readme.md
PowerShell Intune: Bulk Assign App Policies via Graph SDK
─□✕
PowerShell Intune: Bulk Assign App Policies via Graph SDK
May 31, 2026 PowerShell Tips Editor 4 min read

PowerShell Intune: Bulk Assign App Policies via Graph SDK

Assigning Intune policies to hundreds of groups manually is error-prone. This script uses the Graph SDK to read policy definitions and bulk-assign them to target groups

Cloud and Microsoft 365
Get-Content readme.md
PowerShell Remoting Over SSH Without WinRM Configuration
─□✕
PowerShell Remoting Over SSH Without WinRM Configuration
May 30, 2026 PowerShell Tips Editor 2 min read

PowerShell Remoting Over SSH Without WinRM Configuration

WinRM is blocked in many environments. PowerShell 7 supports SSH-based remoting as a drop-in alternative. This guide covers sshd setup on Windows and Linux targets.

System Administration
Get-Content readme.md
PowerShell Network Bandwidth Usage Report with WMI
─□✕
PowerShell Network Bandwidth Usage Report with WMI
May 29, 2026 PowerShell Tips Editor 4 min read

PowerShell Network Bandwidth Usage Report with WMI

Diagnosing network saturation requires per-adapter utilization data. This script captures Windows Performance Counters for network interfaces and formats a readable bandwidth

Networking
Get-Content readme.md
PowerShell Software License Compliance Audit Script
─□✕
PowerShell Software License Compliance Audit Script
May 28, 2026 PowerShell Tips Editor 4 min read

PowerShell Software License Compliance Audit Script

Keeping software license compliance across hundreds of machines is only feasible with automation. This script queries the registry across your fleet and flags violations clearly.

Useful Scripts and Recipes
Get-Content readme.md
PowerShell Azure Automation Runbook: Basics to Production
─□✕
PowerShell Azure Automation Runbook: Basics to Production
May 27, 2026 PowerShell Tips Editor 5 min read

PowerShell Azure Automation Runbook: Basics to Production

Azure Automation runbooks let you run PowerShell in the cloud without a server. This guide walks from creating your first runbook to production-grade scheduling with Managed

Cloud and Microsoft 365
Get-Content readme.md
« prev123456…27next »

Recent Posts

  • PowerShell DNS Record Audit: Export All Zone Records to CSV
  • PowerShell Script: Automated User Offboarding Checklist
  • PowerShell Active Directory Replication Status Check Script
  • PowerShell Error Handling: Terminating vs Non-Terminating Errors
  • PowerShell Windows Update Management Across Multiple Servers

Recent Comments

No comments to show.

Archives

  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026

Categories

  • Active Directory and Users
  • Advanced
  • Basics
  • Cloud and Microsoft 365
  • Error Handling
  • Files and Folders
  • Functions and Modules
  • Getting Started
  • Loops and Conditions
  • Networking
  • Pipeline and Filtering
  • Process and Service Management
  • Scripting
  • Strings and Text
  • System Administration
  • Useful Scripts and Recipes
  • Variables and Data Types
PS C:\> Get-Copyright 2026 PowerShell Tips | Command In Line
FlipAnimation app icon
Hand-draw your next README GIF
FlipAnimation turns your phone into an animation studio · GIF + MP4 export
App Store Google Play
Sponsored