Skip to content

PowerShell Tips

Commands Tips

PowerShell Script Blocks: Use Code as a First-Class Object
─□✕
PowerShell Script Blocks: Use Code as a First-Class Object
March 27, 2026May 5, 2026 PowerShell Tips Editor 4 min read

PowerShell Script Blocks: Use Code as a First-Class Object

Script blocks are reusable code objects in PowerShell. Learn to create, invoke, pass as arguments, and use them with Invoke-Command and ForEach-Object.

Functions and Modules
Get-Content readme.md
PowerShell Parameters: Advanced Function Parameters Guide
─□✕
PowerShell Parameters: Advanced Function Parameters Guide
March 26, 2026May 5, 2026 PowerShell Tips Editor 3 min read

PowerShell Parameters: Advanced Function Parameters Guide

Advanced function parameters make PowerShell scripts user-proof. Learn Mandatory, ValidateSet, parameter sets, and pipeline input with examples.

Functions and Modules
Get-Content readme.md
PowerShell Out-File vs Export-Csv vs Redirect: Save Output
─□✕
PowerShell Out-File vs Export-Csv vs Redirect: Save Output
March 26, 2026May 5, 2026 PowerShell Tips Editor 2 min read

PowerShell Out-File vs Export-Csv vs Redirect: Save Output

Save any PowerShell output to a file with Out-File, Export-Csv, or redirection. Learn encoding, append mode, and when each method is best.

Getting Started
Get-Content readme.md
PowerShell ForEach-Object vs foreach Statement: Full Comparison
─□✕
PowerShell ForEach-Object vs foreach Statement: Full Comparison
March 25, 2026May 5, 2026 PowerShell Tips Editor 1 min read

PowerShell ForEach-Object vs foreach Statement: Full Comparison

PowerShell has two ways to iterate: the foreach statement and ForEach-Object. Learn the real differences in performance, streaming, and pipeline use.

Loops and Conditions
Get-Content readme.md
PowerShell Group-Object: Group and Count Pipeline Data
─□✕
PowerShell Group-Object: Group and Count Pipeline Data
March 25, 2026May 5, 2026 PowerShell Tips Editor 4 min read

PowerShell Group-Object: Group and Count Pipeline Data

Group-Object groups pipeline objects by any property and counts each group. Learn to build frequency reports and analyze data patterns.

Pipeline and Filtering
Get-Content readme.md
PowerShell Measure-Object: Count, Sum, and Average Data
─□✕
PowerShell Measure-Object: Count, Sum, and Average Data
March 25, 2026May 5, 2026 PowerShell Tips Editor 3 min read

PowerShell Measure-Object: Count, Sum, and Average Data

Measure-Object aggregates pipeline data with sum, average, min, max, and count. Learn to use it for disk reports, word counts, and number stats.

Pipeline and Filtering
Get-Content readme.md
PowerShell Enum and Constants: Define Fixed Value Sets
─□✕
PowerShell Enum and Constants: Define Fixed Value Sets
March 24, 2026May 5, 2026 PowerShell Tips Editor 3 min read

PowerShell Enum and Constants: Define Fixed Value Sets

Enums enforce valid values in PowerShell scripts. Learn to use built-in .NET enums, define custom enums, and validate parameters with them.

Variables and Data Types
Get-Content readme.md
PowerShell Null Handling: $null, -eq $null, and Null Coalescing
─□✕
PowerShell Null Handling: $null, -eq $null, and Null Coalescing
March 24, 2026May 5, 2026 PowerShell Tips Editor 3 min read

PowerShell Null Handling: $null, -eq $null, and Null Coalescing

Null values cause unexpected errors in scripts. Learn to check for null, use null coalescing in PowerShell 7, and handle missing data safely.

Variables and Data Types
Get-Content readme.md
PowerShell Type Casting and Type Conversion Examples
─□✕
PowerShell Type Casting and Type Conversion Examples
March 23, 2026May 5, 2026 PowerShell Tips Editor 1 min read

PowerShell Type Casting and Type Conversion Examples

PowerShell’s flexible typing can cause silent bugs. Learn to explicitly cast types, use the safe -as operator, and convert dates and numbers.

Variables and Data Types
Get-Content readme.md
PowerShell PSCustomObject: Build Custom Output Objects
─□✕
PowerShell PSCustomObject: Build Custom Output Objects
March 23, 2026May 5, 2026 PowerShell Tips Editor 2 min read

PowerShell PSCustomObject: Build Custom Output Objects

PSCustomObject lets you build structured objects in PowerShell for clean function output and pipeline compatibility. Learn creation patterns and examples.

Variables and Data Types
Get-Content readme.md
« prev1…1516171819…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
Voice Reminders Alarm Clock app icon
Set an alarm that says what to doYour voice, as the alarm
Your own recording plays full screen · meds, water, routines · rings even on silent
App Store Google Play
Sponsored
Recording a voice reminder

Record once. Remind forever.

Voice Reminders Alarm Clock turns a short recording of your own voice into a full-screen alarm for meds, water and daily routines.

Rings on silent · Works offline · Free to start

App StoreGoogle Play
Sponsored
Voice Reminders Alarm Clock app icon
Voice RemindersYour voice as the alarm
Voice Reminders full-screen voice alarm screenshot
“Call Mom”18:00 · Sundays
App StoreGoogle Play
Sponsored
Voice Reminders Alarm Clock app icon

Before you go: make the next reminder impossible to ignore

Recording a voice reminderFull-screen voice alarm with snooze and stopDaily reminder list and quick access

Record a short message in your own voice and Voice Reminders plays it back on a full-screen alarm, on the schedule you set.

“Take your medicine”07:30 · every day
App StoreGoogle Play

Rings on silent · Works offline · Recordings stay on your device