Windows PowerShell 2.0 Administrator’s Pocket Consultant.pdf

(2914 KB) Pobierz
Windows PowerShell 2.0 Administrator's Pocket Consultant eBook
PowerShell
2.0
William R. Stanek
Author and Series Editor
Pocket Consultant
Windows
Administrator’s
423946337.001.png
More free ebooks : http://fast-file.blogspot.com
PUBLISHED BY
Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399
Copyright © 2009 by William Stanek
All rights reserved. No part of the contents of this book may be reproduced or transmitted in any
form or by any means without the written permission of the publisher.
Library of Congress Control Number: 2009927478
Printed and bound in the United States of America.
1 2 3 4 5 6 7 8 9 QWE 4 3 2 1 0 9
Distributed in Canada by H.B. Fenn and Company Ltd.
A CIP catalogue record for this book is available from the British Library.
Microsoft Press books are available through booksellers and distributors worldwide. For further
information about international editions, contact your local Microsoft Corporation office or
contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at
www.microsoft.com/mspress. Send comments to mspinput@microsoft.com.
Microsoft, Microsoft Press, DirectX, Halo, Halo Wars, MS, MSDN, Visual C#, Visual Studio,
Windows, Windows Live, Windows Media, Windows Vista, Xbox, Xbox 360, Xbox LIVE, XNA
and Zune are either registered trademarks or trademarks of Microsoft Corporation in the United
States and/or other countries. Other product and company names mentioned herein may be the
trademarks of their respective owners.
The example companies, organizations, products, domain names, e-mail addresses, logos,
people, places, and events depicted herein are fictitious. No association with any real company,
organization, product, domain name, e-mail address, logo, person, place, or event is intended or
should be inferred.
This book expresses the author’s views and opinions. The information contained in this book is
provided without any express, statutory, or implied warranties. Neither the authors, Microsoft
Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged
to be caused either directly or indirectly by this book.
Acquisitions Editor: Martin DelRe
Developmental Editor: Karen Szall
Project Editor: Denise Bankaitis
Editorial Production: Macmillan Publishing Solutions
Technical Reviewer: Technical Reviewer: LJ Zacker; Technical Review services provided by
Content Master, a member of CM Group, Ltd.
Cover: Tom Draper Design
Body Part No. X15-58129
More free ebooks : http://fast-file.blogspot.com
Contents at a Glance
Introduction
xiii
CHAPTER 1 Introducing Windows PowerShell
1
CHAPTER 2 Getting the Most from Windows PowerShell
25
CHAPTER 3 Managing Your Windows PowerShell Environment
53
CHAPTER 4 Using Sessions, Jobs, and Remoting
85
CHAPTER 5 Navigating Core Windows PowerShell Structures
109
CHAPTER 6 Mastering Aliases, Functions, and Objects
167
CHAPTER 7 Managing Computers with Commands and Scripts
213
CHAPTER 8 Managing Roles, Role Services, and Features
237
CHAPTER 9 Inventorying and Evaluating Windows Systems
253
CHAPTER 10 Managing File Systems, Security, and Auditing
281
CHAPTER 11 Managing Shares, Printers, and TCP/IP Networking
309
CHAPTER 12 Managing and Securing the Registry
335
CHAPTER 13 Monitoring and Optimizing Windows Systems
361
CHAPTER 14 Fine-Tuning System Performance
409
Index
445
 
More free ebooks : http://fast-file.blogspot.com
More free ebooks : http://fast-file.blogspot.com
Contents
Introduction
xiii
Chapter 1 Introducing Windows PowerShell
1
Getting Started with Windows PowerShell .................... 2
Running Windows PowerShell ............................... 3
Using the Windows PowerShell Console
3
Using the Windows PowerShell ISE
5
Configuring Windows PowerShell Console Properties
7
Working with the Command History
8
Working with Cmdlets and Scripts ........................... 9
Using Cmdlets
9
Using Cmdlet Parameters
14
Using External Commands
16
Using Scripts
17
Chapter 2 Getting the Most from Windows PowerShell
25
Initializing the Environment ................................ 26
Passing Startup Parameters
26
Invoking Windows PowerShell
28
Using –Command to Run Commands
28
Using –File to Run Scripts
30
Using Nested Consoles
30
Understanding Command Input, Parsing, and Output ......... 31
Basic Line Editing
31
How Parsing Works
33
Parsing Assigned Values
34
Parsing Exceptions
36
Output from Parsing
37
What do you think of this book? We want to hear from you!
Microsoft is interested in hearing your feedback so we can continually improve our
books and learning resources for you. To participate in a brief online survey, please visit:
microsoft.com/learning/booksurvey
v
423946337.002.png
Zgłoś jeśli naruszono regulamin