Introduction |
|
1 | (6) |
|
Who Should Read This Book |
|
|
1 | (1) |
|
How This Book Is Organized |
|
|
2 | (2) |
|
Conventions Used in This Book |
|
|
4 | (1) |
|
|
5 | (2) |
|
Part I Introducing Windows PowerShell |
|
|
|
Hour 1 Getting to Know Windows PowerShell |
|
|
7 | (18) |
|
Why You Should Learn Windows PowerShell |
|
|
8 | (2) |
|
Brief History of Windows PowerShell |
|
|
10 | (3) |
|
Understanding the Windows PowerShell Components |
|
|
13 | (5) |
|
Investigating the Power and Simplicity of Windows PowerShell |
|
|
18 | (3) |
|
|
21 | (1) |
|
|
22 | (1) |
|
|
23 | (2) |
|
Hour 2 Installing and Configuring Windows PowerShell |
|
|
25 | (22) |
|
Determining Your Windows PowerShell Environment |
|
|
26 | (3) |
|
Installing the Latest Version of Windows PowerShell |
|
|
29 | (3) |
|
Customizing the Windows PowerShell Console |
|
|
32 | (7) |
|
Customizing the Windows PowerShell ISE |
|
|
39 | (3) |
|
|
42 | (1) |
|
|
42 | (2) |
|
|
44 | (3) |
|
Hour 3 Mastering the Windows PowerShell Help System |
|
|
47 | (22) |
|
Anatomy of a Windows PowerShell Cmdlet |
|
|
47 | (3) |
|
Updating the Windows PowerShell Help Library |
|
|
50 | (4) |
|
Understanding Windows PowerShell Help Syntax |
|
|
54 | (6) |
|
Accessing Additional Command Help |
|
|
60 | (6) |
|
|
66 | (1) |
|
|
66 | (1) |
|
|
67 | (2) |
|
Hour 4 Finding and Discovering Windows PowerShell Commands |
|
|
69 | (22) |
|
How Windows PowerShell Commands Are Packaged |
|
|
69 | (4) |
|
Installing RSAT Tools on Windows 8.1 |
|
|
73 | (2) |
|
Locating Windows PowerShell Commands |
|
|
75 | (8) |
|
Running External Commands |
|
|
83 | (3) |
|
|
86 | (1) |
|
|
87 | (1) |
|
|
88 | (3) |
|
Part II Understanding Objects and the Pipeline |
|
|
|
Hour 5 Thinking in Terms of Objects |
|
|
91 | (18) |
|
The Problem with UNIX/Linux |
|
|
91 | (2) |
|
|
93 | (3) |
|
Discovering Object Members |
|
|
96 | (6) |
|
Putting Objects into Action |
|
|
102 | (3) |
|
|
105 | (1) |
|
|
105 | (1) |
|
|
106 | (3) |
|
Hour 6 Mastering the Windows PowerShell Pipeline |
|
|
109 | (24) |
|
Understanding How the Pipeline Works from a High Level |
|
|
109 | (4) |
|
Understanding in Depth How the Pipeline Works |
|
|
113 | (5) |
|
Passing Data Through the Pipeline |
|
|
118 | (7) |
|
"Forcing" Objects Through the Pipeline |
|
|
125 | (4) |
|
|
129 | (1) |
|
|
130 | (1) |
|
|
131 | (2) |
|
Hour 7 Sorting, Filtering, and Measuring Windows PowerShell Output |
|
|
133 | (20) |
|
|
134 | (3) |
|
|
137 | (7) |
|
|
144 | (4) |
|
|
148 | (1) |
|
|
148 | (2) |
|
|
150 | (3) |
|
Part III Extending the Reach of Windows PowerShell |
|
|
|
Hour 8 Managing Windows PowerShell Providers |
|
|
153 | (22) |
|
|
153 | (2) |
|
Introduction to Default PSDrives |
|
|
155 | (4) |
|
Using the FileSystem Provider |
|
|
159 | (7) |
|
|
166 | (1) |
|
Using the Registry Provider |
|
|
167 | (2) |
|
|
169 | (2) |
|
|
171 | (1) |
|
|
171 | (1) |
|
|
172 | (3) |
|
Hour 9 Formatting, Exporting, and Converting Windows PowerShell Output |
|
|
175 | (26) |
|
How the PowerShell Formatting Subsystem Works |
|
|
176 | (4) |
|
Formatting PowerShell Output |
|
|
180 | (7) |
|
Exporting PowerShell Output |
|
|
187 | (6) |
|
Converting PowerShell Output |
|
|
193 | (4) |
|
|
197 | (1) |
|
|
198 | (1) |
|
|
198 | (3) |
|
Part IV Managing Computers Remotely with Windows PowerShell |
|
|
|
Hour 10 Implementing One-to-One Windows PowerShell Remoting |
|
|
201 | (20) |
|
Understanding Classic Windows PowerShell Remote Access |
|
|
201 | (2) |
|
Introducing "True" PowerShell Remoting |
|
|
203 | (2) |
|
Enabling Windows PowerShell Remoting |
|
|
205 | (4) |
|
Creating a Windows PowerShell Remote Session |
|
|
209 | (5) |
|
Sending Scripts over the Network |
|
|
214 | (3) |
|
|
217 | (1) |
|
|
218 | (1) |
|
|
218 | (3) |
|
Hour 11 Implementing One-to-Many Windows PowerShell Remoting |
|
|
221 | (16) |
|
One-to-Many Remote Access in the Classic Scenario |
|
|
221 | (3) |
|
One-to-Many Remoting with Persistent Sessions |
|
|
224 | (1) |
|
Managing Session Configurations |
|
|
225 | (3) |
|
One-to-Many Remoting with the Windows PowerShell ISE |
|
|
228 | (3) |
|
Passing Input to Remote Commands |
|
|
231 | (2) |
|
|
233 | (1) |
|
|
233 | (2) |
|
|
235 | (2) |
|
Hour 12 Deploying Windows PowerShell Web Access |
|
|
237 | (18) |
|
Introducing Windows PowerShell Web Access |
|
|
237 | (2) |
|
Setting Up the Windows PSWA Gateway |
|
|
239 | (5) |
|
Testing the Windows PSWA User Experience |
|
|
244 | (5) |
|
|
249 | (2) |
|
|
251 | (1) |
|
|
252 | (1) |
|
|
252 | (3) |
|
Part V Putting Windows Powershell to Work |
|
|
|
Hour 13 Multitasking Windows PowerShell |
|
|
255 | (20) |
|
Investigating the PowerShell Job Architecture |
|
|
255 | (4) |
|
|
259 | (2) |
|
Understanding Parent and Child Jobs |
|
|
261 | (2) |
|
Introducing the --AsJob Parameter |
|
|
263 | (3) |
|
|
266 | (4) |
|
Reviewing What We've Learned |
|
|
270 | (2) |
|
|
272 | (1) |
|
|
273 | (1) |
|
|
273 | (2) |
|
Hour 14 Harnessing Windows PowerShell Workflow |
|
|
275 | (18) |
|
Understanding How Windows PowerShell Workflow Works |
|
|
276 | (3) |
|
Writing Your First Windows PowerShell Workflow |
|
|
279 | (3) |
|
Running a Workflow as a Job |
|
|
282 | (1) |
|
Understanding Workflow Activities |
|
|
283 | (5) |
|
Tying Everything Together |
|
|
288 | (1) |
|
|
289 | (1) |
|
|
290 | (1) |
|
|
291 | (2) |
|
Hour 15 Introducing WMI and CIM |
|
|
293 | (20) |
|
|
293 | (3) |
|
Getting Comfortable with WMI |
|
|
296 | (4) |
|
Using Windows PowerShell WMI Commands |
|
|
300 | (5) |
|
Using Windows PowerShell CIM Commands |
|
|
305 | (3) |
|
|
308 | (1) |
|
|
308 | (2) |
|
|
310 | (3) |
|
Hour 16 Searching and Filtering with Regular Expressions |
|
|
313 | (18) |
|
Revisiting the Wildcard Operators |
|
|
313 | (2) |
|
Understanding Regular Expressions |
|
|
315 | (2) |
|
Using the --Match Parameter |
|
|
317 | (7) |
|
|
324 | (3) |
|
Using the RegEx Type Accelerator |
|
|
327 | (1) |
|
|
327 | (1) |
|
|
328 | (1) |
|
|
329 | (2) |
|
Part VI Enterprise-Class Windows PowerShell |
|
|
|
Hour 17 Managing Software with Windows PowerShell OneGet |
|
|
331 | (24) |
|
Understanding IT-Related Terminology |
|
|
332 | (2) |
|
Preparing Your Environment |
|
|
334 | (2) |
|
Browsing Package Repositories |
|
|
336 | (4) |
|
Installing Software from the Command Line |
|
|
340 | (6) |
|
Managing Providers and Packages |
|
|
346 | (3) |
|
Hosting a Private OneGet Repository |
|
|
349 | (1) |
|
|
350 | (1) |
|
|
351 | (1) |
|
|
352 | (3) |
|
Hour 18 Desired State Configuration Basics |
|
|
355 | (22) |
|
Historical Background of DSC |
|
|
355 | (2) |
|
|
357 | (1) |
|
DSC Authoring Environment |
|
|
358 | (1) |
|
Configuring the DSC Environment |
|
|
359 | (5) |
|
Writing Your First Configuration Script |
|
|
364 | (8) |
|
A Word on DSC Push Configuration |
|
|
372 | (1) |
|
|
373 | (1) |
|
|
373 | (2) |
|
|
375 | (2) |
|
Part VII Scripting with Windows PowerShell |
|
|
|
Hour 19 Introduction to Windows PowerShell Scripting |
|
|
377 | (22) |
|
Managing Execution Policy |
|
|
377 | (2) |
|
Writing Our First Script: The User Profile |
|
|
379 | (4) |
|
Writing a PowerShell Function |
|
|
383 | (2) |
|
|
385 | (3) |
|
|
388 | (7) |
|
Pointers to Master PowerShell Scripting |
|
|
395 | (1) |
|
|
395 | (1) |
|
|
396 | (1) |
|
|
397 | (2) |
|
Hour 20 Making PowerShell Code Portable with Modules |
|
|
399 | (18) |
|
|
399 | (2) |
|
Introducing PowerShell Modules |
|
|
401 | (2) |
|
Creating Your First PowerShell Script Module |
|
|
403 | (4) |
|
|
407 | (3) |
|
Adding Comment-Based Help |
|
|
410 | (3) |
|
|
413 | (1) |
|
|
414 | (1) |
|
|
414 | (1) |
|
|
415 | (2) |
|
Part VIII Administering Microsoft Enterprise Servers with Windows PowerShell |
|
|
|
Hour 21 Managing Active Directory with Windows PowerShell |
|
|
417 | (20) |
|
Installing Active Directory |
|
|
417 | (6) |
|
Creating Common Active Directory Objects |
|
|
423 | (7) |
|
Understanding Various AD Administrative Tasks |
|
|
430 | (3) |
|
|
433 | (1) |
|
|
433 | (1) |
|
|
434 | (3) |
|
Hour 22 Managing SQL Server with Windows PowerShell |
|
|
437 | (16) |
|
Running PowerShell Using SQL Server Tools |
|
|
438 | (4) |
|
Interacting with SQL Server Using PowerShell |
|
|
442 | (1) |
|
Automating Common SQL Server DBA Tasks |
|
|
443 | (6) |
|
|
449 | (1) |
|
|
450 | (1) |
|
|
451 | (2) |
|
Hour 23 Managing SharePoint Server with Windows PowerShell |
|
|
453 | (18) |
|
Understanding the Environment |
|
|
453 | (4) |
|
Deploying a Service Application |
|
|
457 | (2) |
|
Deploying a Web Application |
|
|
459 | (1) |
|
Deploying a Site Collection |
|
|
460 | (2) |
|
Setting Permissions on a Site Collection |
|
|
462 | (1) |
|
Reporting on a SharePoint Farm |
|
|
463 | (5) |
|
|
468 | (1) |
|
|
468 | (1) |
|
|
468 | (3) |
|
Hour 24 Managing Microsoft Azure with Windows PowerShell |
|
|
471 | (22) |
|
|
472 | (2) |
|
Preparing Your Azure-PowerShell Environment |
|
|
474 | (3) |
|
Working with Azure Virtual Machines |
|
|
477 | (8) |
|
Managing Office 365 and SharePoint Online with Azure |
|
|
485 | (3) |
|
|
488 | (1) |
|
|
489 | (1) |
|
|
490 | (3) |
Index |
|
493 | |