售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Enterprise PowerShell Scripting Bootcamp
Table of Contents
Enterprise PowerShell Scripting Bootcamp
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Enterprise PowerShell Scripting
Windows server scanning script
Performance considerations
PowerShell scripting templates
Summary
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
3. Working with Answer Files
Answer files
XML answer files
Reading XML answer files
XML tag function
Summary
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
5. Interacting with Services, Processes, Profiles, and Logged on Users
Windows services
Managing Windows processes
Identifying logged on users
User profiles
Summary
6. Evaluating Scheduled Tasks
Scheduled tasks
Identifying scheduled tasks running as alternate users
Summary
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
8. Windows Features and Installed Software Detection
Windows features
Installed software detection
Scanning executables in \Program Files
Summary
9. File Scanning
File scanning
Excluding long paths
Excluding files
Summary
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
11. Improving Performance by Using Regular Expressions
Using regular expressions
Dynamically building expressions
Implementating regular expression performance
Summary
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
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜