© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
V. SukhijaPowerShell Fast Track https://doi.org/10.1007/978-1-4842-7759-1_3

3. Input to Your Scripts

Vikas Sukhija1  
(1)
Waterloo, ON, Canada
 

There are many situations in the practical system administration world in which you have to feed your scripts with inputs. Examples are reading a text file that has a list of users and adding them to a specific Active Directory group, or reading a CSV file that includes user attributes like phone number, title, and department, and updating these attributes in Active Directory. In this chapter, you will look at the different ways of feeding your scripts with different types of inputs.

Import-CSV

Import-CSV is the most-used ...

Get PowerShell Fast Track: Hacks for Non-Coders now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.