Atjaunināt sīkdatņu piekrišanu

E-grāmata: PowerShell for Sysadmins

4.17/5 (115 ratings by Goodreads)
  • Formāts: EPUB+DRM
  • Izdošanas datums: 04-Feb-2020
  • Izdevniecība: No Starch Press,US
  • Valoda: eng
  • ISBN-13: 9781593279196
Citas grāmatas par šo tēmu:
  • Formāts - EPUB+DRM
  • Cena: 27,96 €*
  • * ši ir gala cena, t.i., netiek piemērotas nekādas papildus atlaides
  • Ielikt grozā
  • Pievienot vēlmju sarakstam
  • Šī e-grāmata paredzēta tikai personīgai lietošanai. E-grāmatas nav iespējams atgriezt un nauda par iegādātajām e-grāmatām netiek atmaksāta.
  • Formāts: EPUB+DRM
  • Izdošanas datums: 04-Feb-2020
  • Izdevniecība: No Starch Press,US
  • Valoda: eng
  • ISBN-13: 9781593279196
Citas grāmatas par šo tēmu:

DRM restrictions

  • Kopēšana (kopēt/ievietot):

    nav atļauts

  • Drukāšana:

    nav atļauts

  • Lietošana:

    Digitālo tiesību pārvaldība (Digital Rights Management (DRM))
    Izdevējs ir piegādājis šo grāmatu šifrētā veidā, kas nozīmē, ka jums ir jāinstalē bezmaksas programmatūra, lai to atbloķētu un lasītu. Lai lasītu šo e-grāmatu, jums ir jāizveido Adobe ID. Vairāk informācijas šeit. E-grāmatu var lasīt un lejupielādēt līdz 6 ierīcēm (vienam lietotājam ar vienu un to pašu Adobe ID).

    Nepieciešamā programmatūra
    Lai lasītu šo e-grāmatu mobilajā ierīcē (tālrunī vai planšetdatorā), jums būs jāinstalē šī bezmaksas lietotne: PocketBook Reader (iOS / Android)

    Lai lejupielādētu un lasītu šo e-grāmatu datorā vai Mac datorā, jums ir nepieciešamid Adobe Digital Editions (šī ir bezmaksas lietotne, kas īpaši izstrādāta e-grāmatām. Tā nav tas pats, kas Adobe Reader, kas, iespējams, jau ir jūsu datorā.)

    Jūs nevarat lasīt šo e-grāmatu, izmantojot Amazon Kindle.

Learn to use PowerShell, Microsoft's scripting language, to automate real-world tasks that IT professionals and system administrators deal with every day.

Bridge the gap between scripting and operations personnel with Automate the Boring Stuff with PowerShell. With PowerShell, you can automate tasks with scripts without having to learn the complicated ins and outs of programming. After you familiarize yourself with PowerShell's intuitive syntax, you'll apply your knowledge by designing and developing scripts for lots of daily situations IT personnel find themselves in every day. You'll then end with learning how to build a large project to automate server deployments from scratch written completely in PowerShell.

In Part One, you'll be brought up to an intermediate knowledge level of PowerShell by exploring the ins and outs of core concepts with PowerShell's intuitive syntax.

In Part Two, you'll begin to apply your knowledge and develop various scripts to automate all kinds of real-world tasks that a tech professional may run into.

Finally, in Part Three, you will take all of that knowledge you learned in the first two parts and begin work on a large PowerShell module called PowerLab. In this Part, you will build a real-world project purely in PowerShell that will teach you that PowerShell isn't just for a few scripts here and there! This PowerLab module will enable you to automatically create Hyper-V virtual machines, install Windows servers, and provision domain controllers, IIS web servers, and SQL servers.

With this book's vast amount of real-world, applicable examples coming from an author who's lived PowerShell for over 8 years, you'll uncover hundreds of tactics and techniques that even the most seasoned PowerShell expert may not know. Unlock the possibilities with PowerShell!

Recenzijas

"This book is great, and I personally wouldn't hesitate to add it to a bookshelf of technical books." ToastIT

"One of the perfect books to pick up when you want to get a first glance at the wonders of Powershell." Ian Mizer, Atlanta Python Programmers Group

Papildus informācija

Learn to use PowerShell, Microsoft's scripting language, to automate real-world tasks that IT professionals and system administrators deal with every day.
Acknowledgments xix
Introduction xxi
Why PowerShell? xxii
Who This Book Is For xxii
About This Book xxii
Part I: Fundamentals 1(112)
1 Getting Started
3(10)
Opening the PowerShell Console
4(1)
Using DOS Commands
4(2)
Exploring PowerShell Commands
6(2)
Getting Help
8(2)
Displaying the Docs
8(1)
Learning About General Topics
9(1)
Updating the Docs
10(1)
Summary
11(2)
2 Basic Powershell Concepts
13(24)
Variables
13(6)
Displaying and Changing a Variable
14(1)
User-Defined Variables
14(2)
Automatic Variables
16(3)
Data Types
19(4)
Boolean Values
20(1)
Integers and Floating Points
20(1)
Strings
21(2)
Objects
23(3)
Inspecting Properties
24(1)
Using the Get-Member cmdlet
25(1)
Calling Methods
25(1)
Data Structures
26(7)
Arrays
26(3)
ArrayLists
29(2)
Hashtables
31(2)
Creating Custom Objects
33(2)
Summary
35(2)
3 Combining Commands
37(10)
Starting a Windows Service
37(1)
Using the Pipeline
38(4)
Piping Objects Between Commands
38(1)
Piping Arrays Between Commands
39(1)
Looking at Parameter Binding
40(2)
Writing Scripts
42(4)
Setting the Execution Policy
42(2)
Scripting in PowerShell
44(2)
Summary
46(1)
4 Control Flow
47(14)
Understanding Control Flow
48(1)
Using Conditional Statements
49(5)
Building Expressions by Using Operators
49(1)
The if Statement
50(1)
The else Statement
51(1)
The elseif Statement
51(1)
The switch Statement
52(2)
Using Loops
54(5)
The foreach Loop
54(3)
The for Loop
57(1)
The while Loop
58(1)
The do/while and do/until Loops
58(1)
Summary
59(2)
5 Error Handling
61(8)
Working with Exceptions and Errors
62(1)
Handling Nonterminating Errors
63(1)
Handling Terminating Errors
64(2)
Exploring the $Error Automatic Variable
66(1)
Summary
67(2)
6 Writing Functions
69(10)
Functions vs. Cmdlets
70(1)
Defining a Function
70(1)
Adding Parameters to Functions
71(5)
Creating a Simple Parameter
72(1)
The Mandatory Parameter Attribute
73(1)
Default Parameter Values
74(1)
Adding Parameter Validation Attributes
74(2)
Accepting Pipeline Input
76(2)
Adding Another Parameter
76(1)
Making the Function Pipeline Compatible
77(1)
Adding a process Block
77(1)
Summary
78(1)
7 Exploring Modules
79(12)
Exploring Default Modules
80(4)
Finding Modules in Your Session
80(1)
Finding Modules on Your Computer
81(1)
Importing Modules
82(2)
The Components of a PowerShell Module
84(2)
The .psm1 File
84(1)
The Module Manifest
84(2)
Working with Custom Modules
86(2)
Finding Modules
86(1)
Installing Modules
87(1)
Uninstalling Modules
88(1)
Creating Your Own Module
88(1)
Summary
89(2)
8 Running Scripts Remotely
91(16)
Working with Scriptblocks
92(4)
Using Invoke-Command to Execute Code on Remote Systems
93(1)
Running Local Scripts on Remote Computers
94(1)
Using Local Variables Remotely
95(1)
Working with Sessions
96(5)
Creating a New Session
97(1)
Invoking Commands in a Session
98(1)
Opening Interactive Sessions
98(1)
Disconnecting from and Reconnecting to Sessions
99(2)
Removing Sessions with Remove-PSSession
101(1)
Understanding PowerShell Remoting Authentication
101(4)
The Double Hop Problem
102(1)
Double Hopping with CredSSP
103(2)
Summary
105(2)
9 Testing With Pester
107(6)
Introducing Pester
108(1)
Pester Basics
108(3)
A Pester File
108(1)
The describe Block
109(1)
The context Block
109(1)
The it Block
110(1)
Assertions
110(1)
Executing a Pester Test
111(1)
Summary
112(1)
Part II: Automating Day-To-Day Tasks 113(100)
10 Parsing Structured Data
117(20)
CSV Files
118(8)
Reading CSV Files
118(4)
Creating CSV Files
122(1)
Project 1: Building a Computer Inventory Report
123(3)
Excel Spreadsheets
126(5)
Creating Excel Spreadsheets
126(1)
Reading Excel Spreadsheets
127(1)
Adding to Excel Spreadsheets
128(1)
Project 2: Creating a Windows Service Monitoring Tool
129(2)
JSON Data
131(5)
Reading JSON
131(1)
Creating JSON Strings
132(2)
Project 3: Querying and Parsing a REST API
134(2)
Summary
136(1)
11 Automating Active Directory
137(20)
Prerequisites
138(1)
Installing the ActiveDirectory PowerShell Module
138(1)
Querying and Filtering AD Objects
139(4)
Filtering Objects
139(2)
Returning Single Objects
141(1)
Project 4: Finding User Accounts That Haven't Changed Their Password in 30 Days
141(2)
Creating and Changing AD Objects
143(6)
Users and Computers
143(2)
Groups
145(1)
Project 5: Creating an Employee Provisioning Script
146(3)
Syncing from Other Data Sources
149(7)
Project 6: Creating a Syncing Script
150(1)
Mapping Data Source Attributes
150(1)
Creating Functions to Return Similar Properties
151(2)
Finding Matches in Active Directory
153(2)
Changing Active Directory Attributes
155(1)
Summary
156(1)
12 Working With Azure
157(16)
Prerequisites
157(1)
Azure Authentication
158(3)
Creating a Service Principal
158(2)
Non interactively Authenticating with Connect-AzAccount
160(1)
Creating an Azure Virtual Machine and All Dependencies
161(6)
Creating a Resource Group
161(1)
Creating the Network Stack
162(2)
Creating a Storage Account
164(1)
Creating the Operating System Image
164(2)
Wrapping Up
166(1)
Automating the VM Creation
167(1)
Deploying an Azure Web App
167(1)
Creating an App Service Plan and Web App
167(1)
Deploying an Azure SQL Database
168(4)
Creating an Azure SQL Server
168(1)
Creating the Azure SQL Database
169(1)
Creating the SQL Server Firewall Rule
170(1)
Testing Your SQL Database
171(1)
Summary
172(1)
13 Working With AWS
173(20)
Prerequisites
174(1)
AWS Authentication
174(4)
Authenticating with the Root User
174(1)
Creating an IAM User and Role
175(2)
Authenticating Your IAM User
177(1)
Creating an AWS EC2 Instance
178(6)
The Virtual Private Cloud
178(1)
The Internet Gateway
179(1)
Routes
180(1)
Subnet
180(1)
Assigning an AMI to Your EC2 Instance
181(1)
Wrapping Up
182(2)
Deploying an Elastic Beanstalk Application
184(4)
Creating the Application
184(2)
Deploying a Package
186(2)
Creating a SQL Server Database in AWS
188(3)
Summary
191(2)
14 Creating A Server Inventory Script
193(20)
Prerequisites
194(1)
Creating the Project Script(s)
194(1)
Defining the Final Output
194(1)
Discovery and Script Input
194(2)
Querying Each Server
196(1)
Thinking Ahead: Combining Different Types of Information
196(3)
Querying Remote Files
199(2)
Querying Windows Management Instrumentation
201(7)
Disk Free Space
202(1)
Operating System Information
202(1)
Memory
203(2)
Network Information
205(3)
Windows Services
208(2)
Script Cleanup and Optimization
210(2)
Summary
212(1)
Part III: Building Your Own Module 213
15 Provisioning A Virtual Environment
217(14)
PowerLab Module Prerequisites
218(1)
Creating the Module
219(2)
Creating a Blank Module
219(1)
Creating a Module Manifest
219(1)
Using Built-In Prefixes for Function Names
220(1)
Importing the New Module
220(1)
Automating Virtual Environment Provisioning
221(7)
Virtual Switches
221(2)
Creating Virtual Machines
223(2)
Virtual Hard Disks
225(3)
Testing the New Functions with Pester
228(1)
Summary
229(2)
16 Installing An Operating System
231(10)
Prerequisites
231(1)
OS Deployments
232(3)
Creating the VHDX
232(2)
Attaching the VM
234(1)
Automating OS Deployments
235(2)
Storing Encrypted Credentials on Disk
237(1)
PowerShell Direct
238(1)
Pester Tests
239(1)
Summary
240(1)
17 Deploying Active Directory
241(12)
Prerequisites
242(1)
Creating an Active Directory Forest
242(1)
Building the Forest
242(8)
Saving Secure Strings to Disk
243(1)
Automating Forest Creation
244(2)
Populating the Domain
246(4)
Building and Running Pester Tests
250(2)
Summary
252(1)
18 Creating And Configuring A SQL Server
253(12)
Prerequisites
253(1)
Creating the Virtual Machine
254(1)
Installing the Operating System
254(1)
Adding a Windows Unattended Answer File
255(1)
Adding the SQL Server to a Domain
256(3)
Installing the SQL Server
257(1)
Copying Files to the SQL Server
257(2)
Running the SQL Server Installer
259(1)
Automating the SQL Server
259(4)
Running Pester Tests
263(1)
Summary
263(2)
19 Refactoring Your Code
265(10)
A Second Look at New-PowerLabSqlServer
266(3)
Using Parameter Sets
269(3)
Summary
272(3)
20 Creating And Configuring An IIS Web Server
275
Prerequisites
275(1)
Installation and Setup
276(1)
Building Web Servers from Scratch
277(1)
The WebAdministration Module
277(4)
Websites and Application Pools
278(3)
Configuring SSL on a Website
281(3)
Summary
284
Index 28
Adam Bertram is a 25+ year veteran of IT and an experienced online business professional. Hes a successful blogger, consultant, Microsoft MVP, published author, and freelance writer for dozens of tech publications. Adam runs the popular tech learning site adamtheautomator.com and is probably on Twitter too much at @adbertram.