Skip to content

PowerShell Tips

Commands Tips

PowerShell Monitor Windows Services and Auto-Restart Failed Ones
─□✕
PowerShell Monitor Windows Services and Auto-Restart Failed Ones
May 26, 2026 PowerShell Tips Editor 4 min read

PowerShell Monitor Windows Services and Auto-Restart Failed Ones

A service that dies silently can take down critical workloads before anyone notices. This watchdog script monitors a list of services and auto-restarts failures with email

Process and Service Management
Get-Content readme.md
PowerShell Firewall Rule Audit: Export All Rules to CSV
─□✕
PowerShell Firewall Rule Audit: Export All Rules to CSV
May 25, 2026 PowerShell Tips Editor 4 min read

PowerShell Firewall Rule Audit: Export All Rules to CSV

Windows Firewall rules accumulate silently. This script exports every inbound and outbound rule with its port and address filter details so you can audit for risk and redundancy.

System Administration
Get-Content readme.md
PowerShell Exchange Online: Bulk Manage Shared Mailboxes
─□✕
PowerShell Exchange Online: Bulk Manage Shared Mailboxes
May 24, 2026 PowerShell Tips Editor 5 min read

PowerShell Exchange Online: Bulk Manage Shared Mailboxes

Shared mailboxes are the workhorse of team email, but managing them manually in the EAC is slow. This guide covers every shared mailbox operation you can automate with EXO

Cloud and Microsoft 365
Get-Content readme.md
PowerShell Script: Automated Daily Disk Space Report by Email
─□✕
PowerShell Script: Automated Daily Disk Space Report by Email
May 23, 2026 PowerShell Tips Editor 5 min read

PowerShell Script: Automated Daily Disk Space Report by Email

Never be surprised by a full disk again. This script polls all servers for drive capacity, marks critical volumes in red, and emails a formatted HTML report on a daily schedule.

Useful Scripts and Recipes
Get-Content readme.md
PowerShell Active Directory Group Nesting Audit Script
─□✕
PowerShell Active Directory Group Nesting Audit Script
May 22, 2026 PowerShell Tips Editor 5 min read

PowerShell Active Directory Group Nesting Audit Script

Deeply nested AD groups are a silent access management risk. This script recursively maps every group’s membership chain and flags nesting beyond a configurable depth limit.

Active Directory and Users
Get-Content readme.md
PowerShell Active Directory Bulk User Creation from CSV
─□✕
PowerShell Active Directory Bulk User Creation from CSV
May 21, 2026 PowerShell Tips Editor 6 min read

PowerShell Active Directory Bulk User Creation from CSV

Creating 50 AD accounts one at a time is a nightmare. This guide shows a robust bulk-creation script with CSV input validation, password generation, and group assignment baked in.

Active Directory and Users
Get-Content readme.md
PowerShell Microsoft Graph: Export Teams Channels and Owners
─□✕
PowerShell Microsoft Graph: Export Teams Channels and Owners
May 20, 2026 PowerShell Tips Editor 5 min read

PowerShell Microsoft Graph: Export Teams Channels and Owners

Governing Microsoft Teams sprawl starts with an accurate inventory. This script pages through all teams, their channels, and ownership data using the Graph SDK and exports a full

Cloud and Microsoft 365
Get-Content readme.md
PowerShell and Linux: Cross-Platform Scripting with PS 7
─□✕
PowerShell and Linux: Cross-Platform Scripting with PS 7
May 19, 2026 PowerShell Tips Editor 5 min read

PowerShell and Linux: Cross-Platform Scripting with PS 7

PowerShell 7 runs on Linux, but writing truly cross-platform scripts requires understanding path handling, permission models, and how to interop with bash and native tools

System Administration
Get-Content readme.md
PowerShell Pester v5: Writing Unit Tests for Real Scripts
─□✕
PowerShell Pester v5: Writing Unit Tests for Real Scripts
May 18, 2026 PowerShell Tips Editor 5 min read

PowerShell Pester v5: Writing Unit Tests for Real Scripts

Pester v5 changed the game with strict test isolation, BeforeAll scoping, and improved mock behavior. This guide walks through testing a real admin function from scratch.

Functions and Modules
Get-Content readme.md
PowerShell DSC v3: Getting Started with Configuration Resources
─□✕
PowerShell DSC v3: Getting Started with Configuration Resources
May 17, 2026 PowerShell Tips Editor 5 min read

PowerShell DSC v3: Getting Started with Configuration Resources

DSC v3 is a complete architectural rewrite. Resources are now standalone executables, the LCM is gone, and it runs on Linux. Here is a practical first-steps guide to DSC v3.

System Administration
Get-Content readme.md
« prev1…34567…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