PowerShell in Depth

By Jeffery Hicks

Summary

PowerShell intensive, moment Edition is the go-to reference for directors operating with home windows PowerShell. each significant process, expertise, and tactic is thoroughly defined and verified, supplying a hands-on advisor to just about every thing an admin may do within the shell. Written through 3 skilled authors and PowerShell MVPs, this is often the PowerShell publication you will preserve subsequent on your monitor—not in your bookshelf!

Purchase of the print publication incorporates a unfastened e-book in PDF, Kindle, and ePub codecs from Manning Publications.

About the Book

A home windows admin utilizing PowerShell on a daily basis would possibly not have the time to go looking the internet at any time when she or he hits a snag. would it not be nice to have a workforce of professional PowerShell specialists able to solution even the hardest questions? that is what you get with this publication.

PowerShell extensive, moment Edition is the go-to reference for directors operating with home windows PowerShell. each significant approach, know-how, and tactic is punctiliously defined and validated, offering a hands-on advisor to just about every thing an admin may do within the shell. Written by means of PowerShell MVPs Don Jones, Jeffrey Hicks, and Richard Siddaway, each one invaluable process was once constructed and carefully established, so you'll constantly write production-quality, maintainable scripts whereas saving hours of effort and time.

This ebook assumes you recognize the fundamentals of PowerShell.

What's Inside

  • Automating tasks
  • Packaging and deploying scripts
  • Introduction to wanted kingdom Configuration
  • PowerShell security
  • Covers PowerShell model three and later

About the Authors

Don Jones, Jeffery Hicks, and Richard Siddaway are Microsoft MVPs, running shoes, and directors. jointly, they have authored approximately 3 dozen books on PowerShell and home windows administration.

Table of Contents

    PART 1 POWERSHELL FUNDAMENTALS
  1. Introduction
  2. PowerShell hosts
  3. Using the PowerShell support system
  4. The fundamentals of PowerShell syntax
  5. Working with PSSnapins and modules
  6. Operators
  7. Working with objects
  8. The PowerShell pipeline
  9. Formatting
  10. PART 2 POWERSHELL MANAGEMENT
  11. PowerShell Remoting
  12. Background jobs and scheduling
  13. Working with credentials
  14. Regular expressions
  15. Working with HTML and XML data
  16. PSDrives and PSProviders
  17. Variables, arrays, hash tables, and script blocks
  18. PowerShell security
  19. Advanced PowerShell syntax
  20. PART three POWERSHELL SCRIPTING AND AUTOMATION
  21. PowerShell's scripting language
  22. Basic scripts and functions
  23. Creating items for output
  24. Scope
  25. PowerShell workflows
  26. Advanced syntax for scripts and functions
  27. Script modules and take place modules
  28. Custom formatting views
  29. Custom variety extensions
  30. Data language and internationalization
  31. Writing help
  32. Error dealing with techniques
  33. Debugging instruments and techniques
  34. Functions that paintings like cmdlets
  35. Tips and tips for developing reports
  36. PART four complex POWERSHELL
  37. Working with the part item version (COM)
  38. Working with .NET Framework objects
  39. Accessing databases
  40. Proxy functions
  41. Building a GUI
  42. WMI and CIM
  43. Working with the web
  44. Desired kingdom Configuration

Show description

Quick preview of PowerShell in Depth PDF

Best Computers books

Networks: An Introduction

The medical learn of networks, together with machine networks, social networks, and organic networks, has got an incredible quantity of curiosity within the previous few years. the increase of the net and the vast availability of cheap desktops have made it attainable to assemble and study community facts on a wide scale, and the improvement of a number of new theoretical instruments has allowed us to extract new wisdom from many alternative different types of networks.

LaTeX: A Document Preparation System (2nd Edition)

LaTex is a software program process for typesetting records. since it is mainly strong for technical files and is accessible for nearly any desktop method, LaTex has develop into a lingua franca of the medical global. Researchers, educators, and scholars in universities, in addition to scientists in undefined, use LaTex to provide professionally formatted papers, proposals, and books.

Building a WordPress Blog People Want to Read

Having your individual web publication is not just for the nerdy anymore. this present day, it sort of feels everyone—from multinational agencies to a neighbor up the street—has a weblog. all of them have one, partly, as the parents at WordPress make it effortless to get one. yet to truly construct a superb blog—to create a weblog humans are looking to read—takes notion, making plans, and a few attempt.

AutoCAD 2008 For Dummies

A steady, funny advent to this fearsomely complicated software program that is helping new clients commence developing 2nd and 3D technical drawings at once Covers the recent beneficial properties and improvements within the newest AutoCAD model and gives insurance of AutoCAD LT, AutoCAD's lower-cost sibling issues lined comprise making a simple format, utilizing AutoCAD DesignCenter, drawing and enhancing, operating with dimensions, plotting, utilizing blocks, including textual content to drawings, and drawing on the web AutoCAD is the top CAD software program for architects, engineers, and draftspeople who have to create particular 2nd and 3D technical drawings; there are greater than five million registered AutoCAD and AutoCAD LT clients

Additional info for PowerShell in Depth

Show sample text content

As an alternative, you provide instructions to the PowerShell engine through a bunch. It’s as much as the host to figure out how one can have interaction with the PowerShell engine. the adaptation within the reaction of Read-Host among the console and the ISE has been eradicated in PowerShell v3 and later. be aware The PowerShell engine is a suite of . internet Framework periods saved in a DLL dossier. You can’t engage with it at once. as a substitute, the applying you have interaction with a lot the 7 8 bankruptcy 2 PowerShell hosts engine. for instance, if you’ve ever used the alternate Server 2007 (or later) graphical administration console (called the trade administration Console, or EMC), then you’ve used a PowerShell host. The EMC permits you to have interaction by means of clicking icons, filling in conversation packing containers, etc, yet it’s PowerShell that plays the activities it takes. You by no means “see” the shell, yet it’s hiding lower than the GUI. That’s why it might probably convey you the PowerShell instructions for the activities it has played. alternate additionally presents a console-based shell that exposes the underlying PowerShell engine including the trade cmdlets. after we discuss “using PowerShell,” we’re commonly speaking approximately utilizing it via a bunch that appears extra like a command-line shell. Microsoft presents assorted hosts for that function: the console and the ISE. Third-party owners may also produce host purposes, and lots of renowned PowerShell editors—PrimalScript, PowerGUI, PowerShell Plus, PowerSE, and so forth—all host the PowerShell engine. you could write your individual . web courses to run PowerShell scripts or perhaps name the underlying periods without delay. the way you have interaction with the shell and what your effects appear like depends on the host you’re utilizing. effects may glance and paintings a method within the Microsoft-supplied console, yet they could glance and paintings otherwise in a third-party application—or in certain cases would possibly not paintings in any respect. Conversely, a few issues that experience labored in a third-party host don’t paintings within the Microsoft hosts. TIP keep in mind that if issues paintings in a single host yet now not in one other, it’s more often than not most probably as a result of the changes within the hosts instead of it being a PowerShell blunders. in case you have an blunders in a third-party host that you just can’t get to the bottom of, ensure you try out it within the Microsoft PowerShell console as a lowest universal denominator. For this booklet, we’ll think you’re utilizing one of many Microsoft-supplied hosts, which we’ll describe during this bankruptcy. 2. 1 32-bit vs. 64-bit, and administrator vs. now not how you entry the shortcuts for Microsoft’s PowerShell host functions relies on the model of the working method and the set up concepts you’ve selected. first thing you have to be conscious of is that PowerShell v4 isn’t to be had on all types of home windows. It’s put in as a part of the bottom construct on ■ ■ home windows eight. 1 x86 and x64 home windows Server 2012 R2 x64 The home windows administration Framework (WMF) obtain (PowerShell v4, WinRM v3 [the model of WinRM hasn’t replaced among PowerShell v3 and v4], and the recent WMI API) is on the market for ■ ■ ■ ■ home windows 7 SP1 (or above) x86 and x64 home windows Embedded common 7 home windows Server 2008 R2 SP1 (or above) x64 home windows Server 2012 32-bit vs.

Download PDF sample

Rated 4.71 of 5 – based on 37 votes