Knowledgebase

PowerShell Fundamentals for Administrators Print

  • microsofttechnology, microsoft, errors, guide, howto, solution, zillionkinghost, hosting
  • 0

The core skills.

WHAT TO KNOW FIRST

How to find a command for a task How to see what a command requires How to see what an object contains How to get examples

WHAT THE PIPELINE DOES

Passes objects from one command to the next.

WHAT TO DO WITH IT

Filter early, then select, then act.

WHY FILTER EARLY

Passing fewer objects forward is faster, particularly against remote services.

WHAT TO USE FOR REPEATED VALUES

Variables.

WHAT TO USE FOR REPEATED LOGIC

Functions.

WHAT TO KNOW ABOUT ERRORS

Some stop execution; most do not, by default.

WHY THAT MATTERS

A script continues after a failure and produces incorrect results.

WHAT TO SET

Error handling that stops on failure, deliberately.

WHAT TO USE

Structured error handling, catching and acting.

WHAT TO ALWAYS INCLUDE IN A SCRIPT

What it does, in a comment block Parameters, declared properly Output showing what it did

WHAT TO AVOID

Hard-coded values that should be parameters Assuming the working location


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot