liveBook · Manning

Input tool

As explained in Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools

An input tool is a tool designed to create data primarily consumed by other tools.

An input tool creates data primarily consumed by other tools. It accepts input through parameters, leaves output formatting and destination to downstream tools, and commonly uses verbs such as Get, Import, and ConvertFrom. section 6.2

Use an input tool when a task needs reusable data rather than immediate presentation:

  • Retrieve computer names from Microsoft Entra ID for later processing. section 6.2
  • Pass objects to action tools that change or remove resources. section 6.2
  • Send results to output tools that create CSV files, displays, or other formats. section 6.2

Password-age reporting

A reporting workflow can use Get-AdUser as an input step to obtain service-account password ages, then pass the results to a CSV-producing tool for SIEM parsing and an HTML-producing tool for an operations display. section 6.2

Install-WindowsFeature -Name "RSAT-AD-PowerShell" `
-IncludeAllSubFeature

Install the Active Directory PowerShell tools before using Get-AdUser in this workflow. section 6.2

How Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools covers it

How deep it goes
Defines an informal category, naming patterns, and relationships without detailing internal implementation.
Examples
Uses Microsoft Entra ID retrieval, Get-AdUser, CSV output, HTML reporting, and SIEM log processing.
What it assumes
Assumes familiarity with parameters and PowerShell tools while teaching the distinction between retrieval, action, and output roles.
What you can do after
Apply it by separating data retrieval from actions, formatting, and destinations in automation workflows.
How it connects
Connects input tools with parameters, action tools, output tools, Microsoft Entra ID, and PowerShell.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools. The section links point to the parts of the book it draws on.