万本电子书0元读

万本电子书0元读

顶部广告

Mastering Windows PowerShell Scripting电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:Brenton J.W. Blawat

出  版  社:Packt Publishing

出版时间:2015-04-27

字       数:99.4万

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

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you are a system administrator who wants to become an expert in controlling and automating your Windows environment, then this book is for you. Prior knowledge of PowerShell's core elements and applications is required for this book.
目录展开

Mastering Windows PowerShell Scripting

Table of Contents

Mastering Windows PowerShell Scripting

Credits

Foreword

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Instant updates on new Packt books

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

Errata

Piracy

Questions

1. Variables, Arrays, and Hashes

Variables

Objects stored in variables

Arrays

Single-dimension arrays

Jagged arrays

Updating array values

Hashes

Deciding the best container for your scripts

Summary

2. Data Parsing and Manipulation

String manipulation

Replacing and splitting strings

Counting and trimming strings

The Trim method

The Substring method

The string true and false methods

Number manipulation and parsing

Formatting numbers

Formatting bytes

Date and time manipulation

Forcing data types

Piping variables

Summary

3. Comparison Operators

Comparison operator basics

Equal and not equal comparison

Greater than and less than comparison

Contains, like, and match operators

And / OR comparison operators

Best practices for comparison operators

Summary

4. Functions, Switches, and Loops Structures

Functions

Looping structures

Switches

Combining the use of functions, switches, and loops

Best practices for functions, switches, and loops

Best practices for functions

Best practices for looping structures and switches

Summary

5. Regular Expressions

Getting started with regular expressions

Regular expression grouping constructs and ranges

Regular expression quantifiers

Regular expression anchors

Regular expressions examples

Summary

6. Error and Exception Handling and Testing Code

Error and exception handling – parameters

Error and exception handling – Try/Catch

Error and exception handling –Try/Catch with parameters

Error and exception handling – legacy exception handling

Methodologies for testing code

Testing the –WhatIf argument

Testing the frequency

Hit testing containers

Don't test in production

Summary

7. Session-based Remote Management

Utilizing CIM sessions

Creating a session

Creating a session with session options

Using sessions for remote management

Removing sessions

Summary

8. Managing Files, Folders, and Registry Items

Registry provider

Creating files, folders, and registry items with PowerShell

Adding named values to registry keys

Verifying files, folders, and registry items

Copying and moving files and folders

Renaming files, folders, registry keys, and named values

Deleting files, folders, registry keys, and named values

Summary

9. File, Folder, and Registry Attributes, ACLs, and Properties

Retrieving attributes and properties

Viewing file and folder extended attributes

Setting the mode and extended file and folder attributes

Managing file, folder, and registry permissions

Copying access control lists

Adding and removing ACL rules

Summary

10. Windows Management Instrumentation

WMI structure

Using WMI objects

Searching for WMI classes

Creating, modifying, and removing WMI property instances

Creating property instances

Modifying property instances

Removing property instances

Invoking WMI class methods

Summary

11. XML Manipulation

XML file structure

Reading XML files

Adding XML content

Modifying XML content

Removing XML content

Summary

12. Managing Microsoft Systems with PowerShell

Managing local users and groups

Managing local users

Managing local groups

Querying for local users and groups

Managing Windows services

Managing Windows processes

Installing Windows features and roles

Summary

13. Automation of the Environment

Invoking programs for automation

Using desired state configuration

Authoring phase

Staging and remediation phase

Detecting and restoring drifting configurations

Summary

14. Script Creation Best Practices and Conclusion

Best practices for script management

# commenting headers

Commenting code

Best practices for script creation

Script structure

Other important best practices for script creation

Controlling source files

Best practices for software automation

Summary

Mastering Windows PowerShell Scripting – conclusion

Staying connected with the author

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部