|
Chapter 1 Getting Started and Setting Up |
|
|
1 | (14) |
|
Valid Platforms and Versions |
|
|
1 | (1) |
|
Two Important PowerShell Tools |
|
|
2 | (1) |
|
The PowerShell Integrated Scripting Environment (ISE) |
|
|
3 | (5) |
|
The Windows PowerShell Console |
|
|
8 | (6) |
|
|
14 | (1) |
|
Chapter 2 The Basics of PowerShell |
|
|
15 | (22) |
|
Some Terminology and Definitions |
|
|
15 | (1) |
|
|
16 | (5) |
|
PowerShell Command Components |
|
|
21 | |
|
Knowing Which Commands to Use and How to Use Them: Getting Help |
|
|
1 | (30) |
|
Looking for Help With an Idea or Concept |
|
|
31 | (1) |
|
Full, Unrestrained, Painstakingly Detailed Help |
|
|
32 | (1) |
|
A Little Interactive Handholding: Show-Command |
|
|
32 | (2) |
|
Understanding Error Messages |
|
|
34 | (1) |
|
Always Use Protection: Stopping You from Hurting Yourself |
|
|
35 | (1) |
|
|
35 | (2) |
|
Chapter 3 The PowerShell Pipeline |
|
|
37 | (16) |
|
|
37 | (5) |
|
Piping to the Screen and to Files |
|
|
42 | (1) |
|
|
42 | (1) |
|
|
43 | (1) |
|
|
44 | (1) |
|
Importing and Exporting Data for PowerShell to Work With |
|
|
44 | (2) |
|
Importing from Comma-Separated Values (CSV) Files |
|
|
46 | (1) |
|
Exporting to Comma-Separated Values (CSV) Files |
|
|
47 | (2) |
|
|
49 | (2) |
|
|
51 | (2) |
|
Chapter 4 PowerShell Providers, Modules, and Snap-Ins |
|
|
53 | (12) |
|
|
53 | (1) |
|
|
53 | (2) |
|
Provider Capabilities and Drives |
|
|
55 | (1) |
|
|
56 | (2) |
|
Differences in Providers Matter |
|
|
58 | (1) |
|
A Provider Example: The Registry |
|
|
58 | (1) |
|
Introducing Modules and Snap-ins |
|
|
59 | (1) |
|
|
60 | (2) |
|
|
62 | (1) |
|
|
63 | (1) |
|
Your Profile: Your Favorite Snap-Ins and Modules, Automatically Loaded |
|
|
63 | (1) |
|
|
64 | (1) |
|
Chapter 5 The Complete Beginner's Guide to Objects |
|
|
65 | (16) |
|
|
65 | (5) |
|
|
70 | (1) |
|
|
70 | (1) |
|
Inspecting an Object's Properties and Methods |
|
|
71 | (2) |
|
|
73 | (1) |
|
|
73 | (1) |
|
|
74 | (4) |
|
Remembering What Kinds of Objects are in the Pipeline |
|
|
78 | (2) |
|
|
80 | (1) |
|
Chapter 6 Filtering and Limiting |
|
|
81 | (14) |
|
|
81 | (1) |
|
The Syntax for Where-Object |
|
|
81 | (1) |
|
Using the Where-Object Goods |
|
|
82 | (3) |
|
Getting Lists and Filtering on Them |
|
|
85 | (2) |
|
Filtering, in a Pragmatic Sense |
|
|
87 | (3) |
|
Another Example of Objects and Filtering |
|
|
90 | (3) |
|
|
93 | (1) |
|
|
94 | (1) |
|
Chapter 7 Creating Simple Scripts |
|
|
95 | (16) |
|
Introducing Scripts in PowerShell |
|
|
95 | (1) |
|
Making Scripts Useful, Phase 1: Variables |
|
|
96 | (3) |
|
Making Scripts Useful, Phase 2: If/Then, Do While, and ForEach |
|
|
99 | (1) |
|
|
99 | (3) |
|
|
102 | (2) |
|
|
104 | (2) |
|
Putting It All Together: Scripts to Accomplish Something Useful |
|
|
106 | (1) |
|
|
107 | (1) |
|
|
108 | (1) |
|
A Simple Backup Strategy for Smaller Exchange Environments |
|
|
109 | (1) |
|
|
109 | (1) |
|
|
110 | (1) |
|
Chapter 8 More Work with Objects |
|
|
111 | (28) |
|
|
111 | (1) |
|
Looking at Compare-Object |
|
|
112 | (4) |
|
|
116 | (1) |
|
|
117 | (1) |
|
Selecting a Certain Number of Objects |
|
|
117 | (1) |
|
Selecting Certain Properties |
|
|
118 | (3) |
|
Grouping Objects with Common Characteristics |
|
|
121 | (4) |
|
|
125 | (8) |
|
PowerShell in the Real World: Grouping and Comparing Objects |
|
|
133 | (5) |
|
|
138 | (1) |
|
Chapter 9 To the Many, To the Few - PowerShell Remoting |
|
|
139 | (14) |
|
|
139 | (1) |
|
|
140 | (1) |
|
Enabling PowerShell Remoting |
|
|
141 | (1) |
|
Remoting to One Computer at a Time |
|
|
142 | (1) |
|
Remoting to Many Computers at a Time |
|
|
143 | (2) |
|
Specifying a Script File Instead of a Command |
|
|
145 | (1) |
|
Specifying a Separate List of Computers |
|
|
146 | (1) |
|
The Caveats When Using Remote Commands |
|
|
147 | (4) |
|
|
151 | (2) |
|
Chapter 10 Useful PowerShell Tools |
|
|
153 | (12) |
|
|
153 | (1) |
|
SAPIEN Technologies PowerShell Studio 2015 |
|
|
154 | (2) |
|
Amazon AWS Tools for Windows PowerShell |
|
|
156 | (1) |
|
Microsoft Script Browser for Windows PowerShell ISE |
|
|
157 | (1) |
|
Adam Driscoll's PowerShell Tools for Visual Studio |
|
|
158 | (1) |
|
Microsoft Windows PowerShell Web Access, via Control Panel |
|
|
159 | (1) |
|
PowerShell Training via the Microsoft Virtual Academy |
|
|
160 | (1) |
|
Master-PowerShell, an eBook from Dr. Tobias Weltner |
|
|
161 | (2) |
|
|
163 | (1) |
|
|
164 | (1) |
|
Chapter 11 Using PowerShell to Manage Office 365 |
|
|
165 | (10) |
|
Create a Script to Open a PowerShell Session to Office 365 |
|
|
165 | (1) |
|
Assign Rights to Mailboxes |
|
|
166 | (1) |
|
Converting Regular Mailboxes to Shared Mailboxes |
|
|
167 | (198) |
|
Obtaining Last Logon Times for Office |
|
|
365 | |
|
|
167 | (198) |
|
Onboarding a List of New Users to Your Office |
|
|
365 | |
|
|
168 | (1) |
|
Lock Down and Configure Sharing on a SharePoint Online Tenant |
|
|
169 | (1) |
|
Examining Who Has External Access to a SharePoint Online Site |
|
|
170 | (1) |
|
Add and Remove People from Mailing Lists (Distribution Groups) |
|
|
171 | (1) |
|
Performing a Mass Password Change |
|
|
172 | (1) |
|
Place All Mailboxes on Litigation Hold |
|
|
172 | (1) |
|
|
173 | (2) |
|
Chapter 12 Desired State Configuration |
|
|
175 | (6) |
|
Understanding Desired State Configuration |
|
|
175 | (1) |
|
The Push and Pull Architectures |
|
|
176 | (1) |
|
Understanding Idempotence |
|
|
177 | (1) |
|
Desired State Configuration Resources |
|
|
177 | (2) |
|
The Desired State Configuration Syntax |
|
|
179 | (1) |
|
|
180 | (1) |
|
Chapter 13 Common Administrative Tasks with PowerShell |
|
|
181 | (8) |
|
|
181 | (2) |
|
Deleting Dangerous Content from Exchange Mailboxes |
|
|
183 | (1) |
|
Elegantly Handling Departed Employees and Memberships |
|
|
184 | (1) |
|
Create a New CSV File and Populate It with Data |
|
|
185 | (1) |
|
Easily Connect to Office 365 from Your Hybrid Deployment |
|
|
186 | (3) |
Appendix X Quick Cheat Sheet of PowerShell Verbs |
|
189 | (2) |
Index |
|
191 | |