Sams.Windows.PowerShell.Unleashed.Apr.2007.pdf
(
2467 KB
)
Pobierz
www.sharexxx.net - free books & magazines
Tyson Kopczynski
Windows
®
PowerShell
UNLEASHED
800 East 96th Street, Indianapolis, Indiana 46240 USA
Windows
®
PowerShell Unleashed
Copyright © 2007 by Sams Publishing
All rights reserved. No part of this book shall be reproduced, stored in a retrieval
system, or transmitted by any means, electronic, mechanical, photocopying, recording,
or otherwise, without written permission from the publisher. No patent liability is
assumed with respect to the use of the information contained herein. Although every
precaution has been taken in the preparation of this book, the publisher and author
assume no responsibility for errors or omissions. Nor is any liability assumed for
damages resulting from the use of the information contained herein.
International Standard Book Number: 0-672-32953-0
Editor-in-Chief
Karen Gettman
Senior Acquisitions
Editor
Neil Rowe
Development Editor
Mark Renfrow
Managing Editor
Gina Kanouse
Library of Congress Cataloging-in-Publication Data
Project Editor
George E. Nedeff
Kopczynski, Tyson.
Microsoft PowerShell unleashed / Tyson Kopczynski.
p. cm.
ISBN 0-672-32953-0
1.
Copy Editor
Lisa M. Lord
Microsoft Windows (Computer file) 2.
Operating systems (Computers)
I. Title.
Senior Indexer
Cheryl Lenser
QA76.76.O63K66 2007
005.4’46—dc22
Proofreader
Water Crest
Publishing
2007008894
Printed in the United States of America
First Printing:
0 9 8 7
4321
Contributing Authors
Pete Handley, Mark
Weinhardt, and
Josh Tolle
Trademarks
All terms mentioned in this book that are known to be trademarks or service marks
have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of
this information. Use of a term in this book should not be regarded as affecting the
validity of any trademark or service mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as possi-
ble, but no warranty or fitness is implied. The information provided is on an “as is”
basis. The authors and the publisher shall have neither liability nor responsibility to any
person or entity with respect to any loss or damages arising from the information
contained in this book.
Bulk Sales
Sams Publishing offers excellent discounts on this book when ordered in quantity for
bulk purchases or special sales. For more information, please contact
U.S. Corporate and Government Sales
1-800-382-3419
corpsales@pearsontechgroup.com
For sales outside of the U.S., please contact
International Sales
international@pearsoned.com
Technical Editor
Pawam Bhardwaj
Publishing
Coordinator
Cindy Teeters
Book Designer
Gary Adair
Page Layout
Jake McFarland
Nonie Ratcliff
Contents at a Glance
Introduction
..................................................................................
1
Part I
Introduction to PowerShell
1
Introduction to Shells and PowerShell
................................................
7
2
PowerShell Basics
..........................................................................
19
3
PowerShell: A More In-Depth Look
..................................................
57
4
Code Signing
................................................................................
93
5
PowerShell Scripting Best Practices
.................................................
107
Part II
Translating Your Existing Knowledge into PowerShell
6
PowerShell and the File System
.......................................................
125
7
PowerShell and the Registry
...........................................................
157
8
PowerShell and WMI
....................................................................
183
9
PowerShell and Active Directory
....................................................
205
Part III
Using PowerShell to Meet Your Automation Needs
10
Using PowerShell in the Real-World
................................................
235
11
Using PowerShell to Manage Exchange
...........................................
261
Index
........................................................................................
295
Table of Contents
Introduction
1
Part I
Introduction to PowerShell
1
Introduction to Shells and PowerShell 7
What Is a Shell?
...............................................................................
7
Basic Shell Use
.........................................................................
8
Basic Shell Scripts
...................................................................
10
A Shell History
..............................................................................
14
Enter PowerShell
............................................................................
16
Summary
......................................................................................
17
2
PowerShell Basics 19
Introduction
.................................................................................
19
Getting Started
..............................................................................
19
Accessing PowerShell
......................................................................
21
Understanding the Command-Line Interface (CLI)
..............................
22
Navigating the CLI
.................................................................
24
PowerShell Command Types
....................................................
26
Calling PowerShell from Other Shells
........................................
30
Understanding cmdlets
...................................................................
33
Common Parameters
..............................................................
34
Useful cmdlets
...............................................................................
35
Get-Help
...............................................................................
35
Get-Command
.......................................................................
38
Expressions
...................................................................................
40
Understanding Variables
.................................................................
41
Built-in Variables
....................................................................
42
Understanding Aliases
.....................................................................
45
Discovering Alias cmdlets
........................................................
47
Creating Persistent Aliases
........................................................
48
Escape Sequences
...........................................................................
49
Understanding Scopes
.....................................................................
50
Global
..................................................................................
50
Local
....................................................................................
51
Script
...................................................................................
51
Plik z chomika:
wubudubu1
Inne pliki z tego folderu:
Oreilly.Windows.PowerShell.for.Developers.Jul.2012.pdf
(8726 KB)
Pro-Windows-PowerShell.pdf
(11636 KB)
Windows-PowerShell-2-For-Dummies-.pdf
(5556 KB)
Windows-Powershell-Cookbook-.pdf
(4079 KB)
Windows-PowerShell-2.0-Administrators-Pocket-Consultant.pdf
(2687 KB)
Inne foldery tego chomika:
0sem
70-432
70-640
70-642
70-643
Zgłoś jeśli
naruszono regulamin