万本电子书0元读

万本电子书0元读

顶部广告

Enterprise PowerShell Scripting Bootcamp电子书

售       价:¥

60人正在读 | 0人评论 9.8

作       者:Brenton J.W. Blawat

出  版  社:Packt Publishing

出版时间:2017-05-18

字       数:138.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
The quick start guide for an advanced enterprise PowerShell framework About This Book ? Introduces industry-proven techniques that improve * efficiency and reliability ? Example-rich guide based on real-world scenarios ? Facilitates building a * that can fully scan a Windows server and identify components Who This Book Is For This book is for IT professionals and Windows administrators who would like to gain intensive, hands-on knowledge and skills on PowerShell without spending hours and hours in learning. If you have been struggling to find the time to gain proficiency and confidence with PowerShell and everyday *ing tasks What You Will Learn ? Create an advanced PowerShell *ing template that provides repeatable code to jumpstart all of your *ing projects ? Learn how to securely encrypt and store usernames, passwords, and other sensitive data in PowerShell *s and answer files ? Understand how to optimize the performance of *s to help process large datasets quickly and avoid time-consuming mistakes ? Develop a * to scan for non-standard Windows Server configurations and identify service accounts used on Windows Servers ? Gather a large list of data from a Windows server without locally or remotely logging in interactively In Detail Enterprise PowerShell Scripting Bootcamp explains how to create your own repeatable PowerShell *ing framework. This framework contains * logging methodologies, answer file interactions, and string encryption and decryption strategies. This book focuses on evaluating individual components to identify the system’s function, role, and unique characteristics. To do this, you will leverage built-in CMDlets and Windows Management Instrumentation (WMI) to explore Windows services, Windows processes, Windows features, scheduled tasks, and disk statistics. You will also create custom functions to perform a deep search for specific strings in files and evaluate installed software through executable properties. We will then discuss different *ing techniques to improve the efficiency of *s. By leveraging several small changes to your code, you can increase the execution performance by over 130%. By the end of this book, you will be able to tie all of the concepts together in a PowerShell-based Windows server scanning *. This discovery * will be able to scan a Windows server to identify a multitude of components. Style and approach This book is all about fast and intensive learning. This means, we don’t waste time in helping readers get started. The new content is about leveraging highly-effective examples to build new things, help solving problems in newer and unseen ways, and providing an enterprise-ready platform to create PowerShell Scripts.
目录展开

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部