Chapter 7. PowerShell Scripts
In This Chapter: | |
Command sequences can be saved as Windows PowerShell (WPS) scripts in the file system and executed later (with or without observation by any user). These scripts are pure text files and have the file extension .ps1
. The number 1 here stands for version 1.0 of WPS. Regarding longevity of many scripts, Microsoft provided the possibility that different versions of WPS with different script file formats can coexist on one system.
A First PowerShell Script Example
Listing 7.1 shows a script that files a hierarchy of keys in the ...
Get Essential PowerShell 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.