ENGLISH

Enterprise PowerShell Scripting Bootcamp

Book information

ISBN
9781787288287, 1787288285
Language
english
Format
PDF
Filesize
3 MB (3222371 bytes)
Pages
\238
Time added
2022-01-06 03:03:08

Description

Cover Copyright Credits About the Author About the Reviewer www.PacktPub.com Customer Feedback Table of Contents Preface Chapter 1: Getting Started with Enterprise PowerShell Scripting Windows server scanning script Performance considerations PowerShell scripting templates Summary Chapter 2: Script Structure, Comment Blocks, and Script Logging Overall script structure Comment blocks Script logging Creating the logging files Creating a windows event log source Creating the logging function Summary Chapter 3: Working with Answer Files Answer files XML answer files Reading XML answer files XML tag function Summary Chapter 4: String Encryption and Decryption RijndaelManaged encryption Creating random salt, initialization vector, and passwords Encrypting and decrypting strings Decrypting strings Securing the password Decryption with encoded password Summary Chapter 5: Interacting with Services, Processes, Profiles, and Logged on Users Windows services Managing Windows processes Identifying logged on users User profiles Summary Chapter 6: Evaluating Scheduled Tasks Scheduled tasks Identifying scheduled tasks running as alternate users Summary Chapter 7: Determining Disk Statistics Disk statistics Retrieving physical and logical disk information The DriveType property Converting disk space to MB and GB Free Space property Disk information script Summary Chapter 8: Windows Features and Installed Software Detection Windows features Installed software detection Scanning executables in \Program Files Summary Chapter 9: File Scanning File scanning Excluding long paths Excluding files Summary Chapter 10: Optimizing Script Execution Speed Script execution speed Speed considerations for the write-host cmdlet Speed considerations for the write-progress cmdlet Speed consideration - switches versus if statements Summary Chapter 11: Improving Performance by Using Regular Expressions Using regular expressions Dynamically building expressions Implementating regular expression performance Summary Chapter 12: Overall Script Workflow, Termination Files, and Merging Data Results Windows server scanning script overview Pre-script security Script 1 - randomized password and string generator Script 2 - string encryption script XML answer file creation PowerShell script 3 - the termination files PowerShell script 4 - merging the scanning script result data Summary Chapter 13: Creating the Windows Server Scanning Script and Post-Execution Cleanup Windows server scanning script creation Comment block Parameter block Answer file reading function Decryption function Populating script answers in variables and arrays Creating the log files and logging function Creating a termination function Multiple Windows server scanning script functions Scheduled tasks function Windows processes function Windows services function Installed software function User profiles function Windows features function Scan files and folders function Invoking the functions Running the script Performing script cleanup Summary Index

Similar books