Skip to content

PowerShell Tips

Commands Tips

PowerShell Pester: Write Unit Tests for Your Scripts
─□✕
PowerShell Pester: Write Unit Tests for Your Scripts
April 27, 2026May 5, 2026 PowerShell Tips Editor 3 min read

PowerShell Pester: Write Unit Tests for Your Scripts

Pester is PowerShell’s unit testing framework. Learn to write and run tests for your functions with Describe, It, and Should assertions.

Functions and Modules
Get-Content readme.md
PowerShell DSC: Introduction to Desired State Configuration
─□✕
PowerShell DSC: Introduction to Desired State Configuration
April 26, 2026May 5, 2026 PowerShell Tips Editor 3 min read

PowerShell DSC: Introduction to Desired State Configuration

DSC lets you declare how servers should be configured and PowerShell enforces it. Learn to write your first DSC configuration and apply it.

System Administration
Get-Content readme.md
PowerShell DISM: Manage Windows Images and Features
─□✕
PowerShell DISM: Manage Windows Images and Features
April 26, 2026May 5, 2026 PowerShell Tips Editor 2 min read

PowerShell DISM: Manage Windows Images and Features

DISM manages Windows images and optional features from PowerShell. Learn to enable features, repair Windows, and service offline images.

System Administration
Get-Content readme.md
PowerShell Robocopy: Advanced File Copy Options Explained
─□✕
PowerShell Robocopy: Advanced File Copy Options Explained
April 25, 2026May 5, 2026 PowerShell Tips Editor 3 min read

PowerShell Robocopy: Advanced File Copy Options Explained

Robocopy is the professional file copy tool for PowerShell scripts. Learn retry logic, multithreaded copies, exclusions, and log file integration.

Files and Folders
Get-Content readme.md
PowerShell Teams Webhook: Post Messages to Teams Channel
─□✕
PowerShell Teams Webhook: Post Messages to Teams Channel
April 25, 2026May 5, 2026 PowerShell Tips Editor 4 min read

PowerShell Teams Webhook: Post Messages to Teams Channel

Post messages to Microsoft Teams from PowerShell with Incoming Webhooks. Learn card formatting, color-coded alerts, and reusable notification functions.

Cloud and Microsoft 365
Get-Content readme.md
PowerShell Slack Notifications: Send Messages via Webhook
─□✕
PowerShell Slack Notifications: Send Messages via Webhook
April 24, 2026May 5, 2026 PowerShell Tips Editor 3 min read

PowerShell Slack Notifications: Send Messages via Webhook

Send automated Slack messages from PowerShell using Incoming Webhooks. Get script status updates, alerts, and reports delivered to your team channel.

Cloud and Microsoft 365
Get-Content readme.md
PowerShell ForEach vs .ForEach(): Method Syntax Speed Test
─□✕
PowerShell ForEach vs .ForEach(): Method Syntax Speed Test
April 24, 2026May 5, 2026 PowerShell Tips Editor 2 min read

PowerShell ForEach vs .ForEach(): Method Syntax Speed Test

The .ForEach() method is often 2-3x faster than ForEach-Object cmdlet. Learn when to prefer each and the trade-offs for large collections.

Loops and Conditions
Get-Content readme.md
PowerShell ConvertTo-Json Depth: Fix Truncated JSON Output
─□✕
PowerShell ConvertTo-Json Depth: Fix Truncated JSON Output
April 23, 2026May 5, 2026 PowerShell Tips Editor 4 min read

PowerShell ConvertTo-Json Depth: Fix Truncated JSON Output

ConvertTo-Json silently truncates deep nested objects. Learn how to set the correct -Depth value and why the default of 2 causes data loss.

Strings and Text
Get-Content readme.md
PowerShell Measure-Object Count Lines in File
─□✕
PowerShell Measure-Object Count Lines in File
April 23, 2026May 5, 2026 PowerShell Tips Editor 4 min read

PowerShell Measure-Object Count Lines in File

Count lines, words, and characters in files with PowerShell. Learn Get-Content with Measure-Object and efficient counting for large files.

Files and Folders
Get-Content readme.md
PowerShell Test-Path Registry: Check Registry Key Existence
─□✕
PowerShell Test-Path Registry: Check Registry Key Existence
April 23, 2026May 5, 2026 PowerShell Tips Editor 3 min read

PowerShell Test-Path Registry: Check Registry Key Existence

Test-Path works on registry paths just like files. Learn to check for key and value existence before registry operations to avoid errors.

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