Deshev | Pro Windows PowerShell | E-Book | www2.sack.de
E-Book

E-Book, Englisch, 493 Seiten

Deshev Pro Windows PowerShell


1. ed
ISBN: 978-1-4302-0546-3
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

E-Book, Englisch, 493 Seiten

ISBN: 978-1-4302-0546-3
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



Here is your best companion to the capabilities and power that PowerShell offers. Inside this book, you'll discover the object-oriented features of the shell and how they help in extracting and manipulating data. You'll then learn how to use those features to solve real-world problems: manipulating files, working with text, monitoring systems, and performing operations over the network. In addition, you'll find freely available tools and extensions that help you get results with Windows PowerShell fast.

Hristo Deshev is a group product manager for Telerik, a leading vendor of ASP.NET controls (Telerik.com). He has been working on component development for the past several years, focusing on creating rich, highly interactive Ajax solutions. A major goal of his and his team is 'taming web development' applying agile software engineering practices to create robust solutions targeting all modern web browsers and supporting multiple ASP.NET and Visual Studio .NET versions. You can reach Hristo via e-mail at hristo.deshev@telerik.com and on his blog at http://blogs.telerik.com/blogs/twisted_asp_net.

Deshev Pro Windows PowerShell jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents at a Glance;5
2;Contents;7
3;About the Author;16
4;About the Technical Reviewer;17
5;Acknowledgments;18
6;Introduction;19
6.1;Why Another Book on Windows PowerShell?;19
6.2;What’s in This Book?;19
6.3;Do I Need Prior Programming Experience?;20
7;Objects and Object Types;21
7.1;The Extended Type System;21
7.2;Built- in Types;28
7.3;Type Literals;45
7.4;Summary;51
8;Controlling Execution Flow;52
8.1;Conditional Expressions;52
8.2;Branching Instructions;63
8.3;Loops: Repeatedly Executing Blocks of Code;67
8.4;Summary;73
9;The Object Pipeline;74
9.1;Text-Based Pipelines;74
9.2;Object-Based Pipelines;75
9.3;Processing Collections Using ForEach- Object;78
9.4;Filtering Collections Using Where-Object;79
9.5;Adding or Deleting Properties Using Select-Object;79
9.6;Sorting Collections;81
9.7;Pipeline Tees;82
9.8;Grouping Objects;83
9.9;Gathering Collection Statistics;84
9.10;Detecting Changes and Differences Among Objects;84
9.11;The Object Pipeline and Functional Programming;85
9.12;Summary;86
10;Working with Script Blocks;87
10.1;Defining Script Blocks;87
10.2;Passing Parameters and Returning Values;89
10.3;Processing Pipeline Input;93
10.4;Invoking Strings as Expressions;101
10.5;Script Blocks as Delegates;103
10.6;Summary;104
11;Working with Functions;105
11.1;Defining Functions;105
11.2;Filters;115
11.3;Functions and Script Blocks;119
11.4;Summary;124
12;Command Aliases;125
12.1;Working with Aliases;125
12.2;Aliasing Tips, Techniques, and Pitfalls;133
12.3;Built- in Aliases;137
12.4;Summary;143
13;Providers;144
13.1;Enumerating Providers;144
13.2;Drives;146
13.3;Navigating to Drives;149
13.4;Provider Capabilities;151
13.5;Summary;154
14;Script Files;155
14.1;Creating Scripts;155
14.2;Executing PowerShell Scripts from Other Environments;164
14.3;Developing and Maintaining Script Libraries;165
14.4;Summary;170
15;Error Handling and Debugging;171
15.1;Handling Errors;171
15.2;Debugging Your Code;193
15.3;Summary;212
16;Signing Scripts;213
16.1;How Code Signing Works;213
16.2;Managing Certificates;215
16.3;Creating a Self- Signed Certificate;218
16.4;Signing Scripts;227
16.5;Running Scripts on Other Machines;231
16.6;Summary;233
17;The Shell Environment and Its Configuration;234
17.1;Shell Hosts;234
17.2;User Profile Scripts;238
17.3;Working with Saved Console Settings;241
17.4;Changing the Prompt Settings;243
17.5;Tab Expansion: How Command Completion Works;246
17.6;Summary;250
18;Extending the Type System;252
18.1;Modifying Objects and Types;252
18.2;Extending Object Formatting;262
18.3;Summary;267
19;Getting Help;268
19.1;The Help System;268
19.2;Getting Command Information;279
19.3;Getting Information About Objects;281
19.4;Using the Internet to Get Help;283
19.5;Summary;288
20;Taming Processes and Services;289
20.1;Working with Processes;289
20.2;Administering Services;295
20.3;Summary;298
21;Input and Output;299
21.1;Reading Content;299
21.2;Writing Content;302
21.3;Content Encoding;303
21.4;Extracting Data from Text;308
21.5;Summary;310
22;Monitoring Your System;311
22.1;Working with the Windows Event Log;311
22.2;Performance Counters;320
22.3;Summary;327
23;PowerShell and the World Wide Web;328
23.1;Laying the Foundation;328
23.2;Testing and Validating Web Sites;341
23.3;Working with News Feeds;345
23.4;Calling Web Services;351
23.5;Handling FTP Transactions;358
23.6;Summary;360
24;Sending E-mail;361
24.1;Using System. Net. Mail;361
24.2;Building a Reusable Script;362
24.3;Configuring Recipients;364
24.4;Working with Message Headers;367
24.5;Multipart Messages;369
24.6;Putting It All Together;375
24.7;Summary;377
25;Talking to COM Objects;378
25.1;How COM Works;379
25.2;How PowerShell Supports COM;379
25.3;Scripting Programs Through Their COM Interfaces;380
25.4;Windows Script Host Code Interoperability;400
25.5;Summary;404
26;Managing Windows with WMI;405
26.1;A Brief History of WMI;405
26.2;WBEM and WMI Components;406
26.3;PowerShell’s WMI Support;408
26.4;Language Support for WMI Objects;411
26.5;Exploring CIM Classes and Objects;414
26.6;Querying Hardware Devices;417
26.7;Getting Information About Software;418
26.8;The Network Configuration;421
26.9;Generating WMI Code;421
26.10;Summary;424
27;PowerShell Community Extensions;426
27.1;Installation and Configuration;426
27.2;File System Utilities;430
27.3;Network Utilities;434
27.4;Executing Processes and Commands;436
27.5;XML Tools;439
27.6;Working with Image Files;444
27.7;Clipboard Helpers;446
27.8;New Providers;449
27.9;Utility Applications;455
27.10;Summary;457
28;PSEventing: .NET Events in PowerShell;458
28.1;Introducing PSEventing;458
28.2;Event-Handling Mechanics;459
28.3;FileSystemWatcher: A Real- World Example;460
28.4;Monitoring Entries Written to the System Event Logs;461
28.5;Handling WMI Events;463
28.6;Detecting If Our Script Has Been Terminated by the User;465
28.7;Using Script Blocks As Event Handlers;466
28.8;Summary;468
29;Enhancing Tab Completion with PowerTab;469
29.1;Installation;470
29.2;How PowerTab Works;471
29.3;Configuring PowerTab;475
29.4;Summary;479
30;Index;480



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.