• Complain

Lee Holmes - PowerShell Pocket Reference, 3rd Edition

Here you can read online Lee Holmes - PowerShell Pocket Reference, 3rd Edition full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: OReilly Media, Inc., genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Lee Holmes PowerShell Pocket Reference, 3rd Edition
  • Book:
    PowerShell Pocket Reference, 3rd Edition
  • Author:
  • Publisher:
    OReilly Media, Inc.
  • Genre:
  • Year:
    2021
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

PowerShell Pocket Reference, 3rd Edition: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "PowerShell Pocket Reference, 3rd Edition" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Lee Holmes: author's other books


Who wrote PowerShell Pocket Reference, 3rd Edition? Find out the surname, the name of the author of the book and a list of all author's works by series.

PowerShell Pocket Reference, 3rd Edition — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "PowerShell Pocket Reference, 3rd Edition" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
PowerShell Pocket Reference by Lee Holmes Copyright 2021 Lee Holmes All - photo 1
PowerShell Pocket Reference

by Lee Holmes

Copyright 2021 Lee Holmes. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .

  • Acquisitions Editor: Suzanne McQuade
  • Development Editor: Angela Rufino
  • Production Editor: Kate Galloway
  • Copyeditor: Stephanie English
  • Proofreader: Jasmine Kwityn
  • Indexer: Potomac Indexing, LLC
  • Interior Designer: David Futato
  • Cover Designer: Karen Montgomery
  • Illustrator: Kate Dullea
  • May 2021: Third Edition
Revision History for the Third Edition
  • 2021-04-22: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781098101671 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. PowerShell Pocket Reference, the cover image, and related trade dress are trademarks of OReilly Media, Inc.

The views expressed in this work are those of the author, and do not represent the publishers views. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.

978-1-098-10167-1

[LSI]

A Guided Tour of PowerShell
Introduction

PowerShell has revolutionized the world of system management and command-line shells. From its object-based pipelines to its administrator focus to its enormous reach into other Microsoft management technologies, PowerShell drastically improves the productivity of administrators and power users alike.

When youre learning a new technology, its natural to feel bewildered at first by all the unfamiliar features and functionality. This perhaps rings especially true for users new to PowerShell because it may be their first experience with a fully featured command-line shell. Or worse, theyve heard stories of PowerShells fantastic integrated scripting capabilities and fear being forced into a world of programming that theyve actively avoided until now.

Fortunately, these fears are entirely misguided; PowerShell is a shell that both grows with you and grows on you. Lets take a tour to see what it is capable of:

  • PowerShell works with standard Windows commands and applications. You dont have to throw away what you already know and use.

  • PowerShell introduces a powerful new type of command. PowerShell commands (called cmdlets) share a common Verb-Noun syntax and offer many usability improvements over standard commands.

  • PowerShell understands objects. Working directly with richly structured objects makes working with (and combining) PowerShell commands immensely easier than working in the plain-text world of traditional shells.

  • PowerShell caters to administrators. Even with all its advances, PowerShell focuses strongly on its use as an interactive shell: the experience of entering commands in a running PowerShell application.

  • PowerShell supports discovery. Using three simple commands, you can learn and discover almost anything PowerShell has to offer.

  • PowerShell enables ubiquitous scripting. With a fully fledged scripting language that works directly from the command line, PowerShell lets you automate tasks with ease.

  • PowerShell bridges many technologies. By letting you work with .NET, COM, WMI, XML, and Active Directory, PowerShell makes working with these previously isolated technologies easier than ever before.

  • PowerShell simplifies management of data stores. Through its provider model, PowerShell lets you manage data stores using the same techniques you already use to manage files and folders.

Well explore each of these pillars in this introductory tour of PowerShell. If youre running any supported version of Windows (Windows 7 or later, or Windows 2012 R2 or later), Windows PowerShell is already installed. That said, a significant step up from this default installation is the open source PowerShellCore.

An Interactive Shell

At its core, PowerShell is first and foremost an interactive shell. While it supports scripting and other powerful features, its focus as a shell underpins everything.

Getting started in PowerShell is a simple matter of launching PowerShell.exe rather than cmd.exethe shells begin to diverge as you explore the intermediate and advanced functionality, but you can be productive in PowerShell immediately.

To launch PowerShell, click Start and then type PowerShell (or pwsh if youve jumped ahead!).

A PowerShell prompt window opens thats nearly identical to the traditional command prompt of its ancestors. The PS C:\Users\Lee> prompt indicates that PowerShell is ready for input, as shown in .

Figure P-1 Windows PowerShell ready for input In this example we use the - photo 2
Figure P-1. Windows PowerShell, ready for input

. In this example, we use the pushd, cd, dir, pwd, and popd commands to store the current location, navigate around the filesystem, list items in the current directory, and then return to the original location. Try it!

Example P-1. Entering many standard DOS- and Unix-style file manipulation commands produces the same results you get when you use them with any other Windows shell
PS C:\Users\Lee> function prompt { "PS > " }PS > pushd .PS > cd \PS > dir Directory: C:\Mode LastWriteTime Length Name---- ------------- ------ ----d---- 5/8/2007 8:37 PM Blurparkd---- 5/15/2016 4:32 PM Chocolateyd---- 3/8/2020 12:45 PM DXLabd---- 4/30/2020 7:00 AM God---- 4/2/2016 3:05 PM Inteld-r-- 12/15/2020 1:41 PM Program Filesd-r-- 11/28/2020 5:06 PM Program Files (x86)d---- 5/12/2019 6:37 PM Python27d---- 3/25/2018 1:11 PM Strawberryd---- 12/16/2020 8:13 AM tempd-r-- 8/11/2020 5:02 PM Usersda--- 12/16/2020 10:51 AM WindowsPS > popdPS > pwdPath----C:\Users\Lee

In this example, our first command customizes the prompt. In cmd.exe, customizing the prompt looks like prompt $P$G. In Bash, it looks like PS1="[\h] \w> ". In PowerShell, you define a function that returns whatever you want displayed.

The pushd command is an alternative name (alias) to the much more descriptively named PowerShell command Push-Location . Likewise, the cd, dir, popd, and pwd

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «PowerShell Pocket Reference, 3rd Edition»

Look at similar books to PowerShell Pocket Reference, 3rd Edition. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «PowerShell Pocket Reference, 3rd Edition»

Discussion, reviews of the book PowerShell Pocket Reference, 3rd Edition and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.