20,39 €
Windows PowerShell has become a booming scripting language over the last couple of years. It has extensive support with an ample number of vendor products, providing a standardized platform for automation and administration. It has massive support for all Microsoft products which creates a layer that can easily automate everything. In the latest version, the PowerShell team has introduced much more functionality with thousands of CMDLETs, part of various modules.This book is a quick reference guide to enable you to get the most out of the latest Windows PowerShell techniques. In this book, you will find new enhancements in the latest version of PowerShell with some helpful examples. This book enables you to quickly move from older versions of PowerShell to Version 3.0 and Version 4.0.This practical, example-oriented book helps you to overcome the difficulty of using and discovering CMDLETs by providing precise information about everything that has been newly introduced in the latest version of Windows PowerShell. It also focuses on the new configuration management system with the help of DSC as a new feature of Windows PowerShell v4.0.You will learn how to use the newly introduced CMDLETs and parameters to perform daily routine tasks. You will also learn how to administer the servers remotely and maintain persistent sessions to provide continuity. You will gain an insight into writing efficient scripts by using various parameters, snippets, and workflows to gain more productivity. You will also be introduced to various modules like CimCmdlets, PSScheduledJob, PSDesiredStateConfiguration, and so on in order to enhance your scripts with the latest instrumentation. Finally this book will make you aware of the capabilities of PowerShell v4.0 and how to fully leverage the functionality introduced in the new version.
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 97
Veröffentlichungsjahr: 2013
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2013
Production Reference: 1211113
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-84968-678-5
www.packtpub.com
Author
Harshul Patel
Reviewers
Aman Dhally
Manoj Mahalingam S
Acquisition Editor
James Jones
Commissioning Editor
Manasi Pandire
Technical Editors
Vivek Pillai
Pankaj Kadam
Copy Editors
Tanvi Gaitonde
Gladson Monteiro
Project Coordinator
Akash Poojary
Proofreader
Linda Morris
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta
Cover Image
Sheetal Aute
Harshul Patel is a technology enthusiast from India; he is thoroughly knowledgeable in virtualization and cloud computing techniques. He works for a leading service-based organization that has an alliance relationship with vendors such as Citrix and Microsoft. Harshul holds multiple Microsoft certifications, including Microsoft Certified Solutions Associate (Windows Server 2012 and Windows 8) and Microsoft Certified Solutions Expert (Private Cloud). Additionally, he holds non-Microsoft certifications, such as Citrix Certified Administrator (XenApp 6.5, XenDesktop 5.6, and XenServer 6.0) and Citrix Certified Advanced Administrator (XenApp 6.5).
He is one of the early adopters of Windows PowerShell from India. He frequently lectures on Windows PowerShell in user-group gatherings and delivers trainings (mostly on PowerShell) across the organization. He is also a proud recipient of multiple faculty awards and an innovation award from his employer. He is a core member of PowerShell Bangalore User Group (http://powershellgroup.org/bangalore.india) and a member of New Delhi PowerShell User Group (http://powershellgroup.org/NewDelhi). He can be contacted at harshulpatel.com.
I would like to thank all who have encouraged me all the time and made me feel that I have the potential to do whatever I want. I am very thankful to my family members and especially to my uncle, Nikul Patel, for helping all the way to get things done.
I would like to thank Seerat Jangda for her flawless support in proofreading this book and for making minor corrections that makes a big difference on paper. I immensely thank Ravikanth Chaganti, Aman Dhally (the technical reviewer of this book), and Deepak Dhami for their contribution and inspiration.
Finally, many thanks to the almighty for making this possible.
Aman Dhally is a Powershell MVP and the founder of New Delhi PowersShell User Group. He has more than 13 years of experience in the IT industry. He focusses a lot on automating daily IT tasks. He is always eager to share his knowledge through his blogs and group meetings.
He is working as a Network Analyst at Analysys Mason Limited.
I would like to thank my wife, Pratibha, and my daughter, Manya; they supported me a lot while I was reviewing this book—sorry guys to steal lots of hours from you as I was doing this! You are my inspiration and I love you a lot.
Manoj Mahalingam S is an Application Developer and Devops Engineer at ThoughtWorks Inc. He develops programs in C# and Python, and has used PowerShell extensively for setting up build and release scripts on a number of projects. Manoj is the author of the PowerShell build and release framework, YDeliver (https://github.com/manojlds/ydeliver), and contributes to a number of other PowerShell projects.
Manoj can be found answering questions on Stack Overflow and contributing to a number of projects on GitHub in his spare time.
I would like to thank my parents, and my wife, Gayathri for their support in allowing me to squeeze the extra time to review this book.
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Get notified! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page.
Windows PowerShell, a booming scripting language, is growing exponentially day-by-day. The enhancements introduced in the latest version make this technology stronger with inexorable growth. It is a must to catch up with the latest version of Windows PowerShell.
Instant Windows PowerShell Guide is a quick reference guide to enable you with Windows PowerShell Versions 3.0 and 4.0 techniques. In this book, you will find new enhancements present in the latest version of PowerShell with an ample number of examples. This book is a cookbook covering quick recipes of new CMDLETs, modules, syntax enhancements, the preference variable introduced, and so on. This book builds a bridge to quickly move from older versions of PowerShell to Versions 3.0 and 4.0.
Windows PowerShell – prerequisites elaborates the need to learn Windows PowerShell as a scripting language with relevant requirements.
Live with help (Simple) describes enhancements done with the latest help system and discovery techniques. Moreover, it suggests ways to update and save help files.
Calculate with the console (Simple) covers new methods and properties introduced in v3.0 with various default objects such as string and integer. It focuses on calculating functionality of the PowerShell console especially with byte units.
Dealing with PSDrive (Simple) describes extensive support of PSDrive with v3.0. It also covers JSON-formatted objects and PSCustomObject types, introduced in v3.0
Administer the system (Intermediate) focuses on a few CMDLETs and parameters which are useful for system administration.
How to import modules to the console (Simple) lets you know how to import modules in the console. It covers module autoloading and logging as key features of v3.0.
Typing enhancements (Intermediate) elaborates typing enhancements with respect to the Where and ForEach objects.
Working with various parameters of Get-Command (Intermediate) elaborates about the parameters of Get-Command in different versions of PowerShell.
Setting default parameter values (Intermediate) describes how to set the default parameter values.
Alias the aliases (Simple) covers various parameters introduced for the Get-Acl and Get-ChildItem CMDLETs.
Operate the data (Intermediate) describes the In and NotIn operators. It also talks about various parameter with the Get-Content and Tee-Object CMDLETs.
Working with the Out-GridView CMDLET (Intermediate) gives details on the different parameters of the Out-GridView CMDLET.
Session scheme (Intermediate) elaborates new CMDLETs and parameters to efficiently deal with Windows PowerShell sessions.
Working remotely (Advanced) covers remoting enhancements with respect to the Invoke-Command CMDLET.
WorkFlow sessions (Advanced) deals with creating an execution sequence by using various command statements.
Script it (Advanced) describes the use of snippets to write scripts quickly and the rebooting feasibility of servers in the middle of a script execution.
WMI versus CIM (Advanced) introduces the CIM CMDLET as the CimCmdlets module. This recipe also shows how it works compared to WMI, used in previous versions.
Job scheduling (Intermediate) elaborates on a dedicated module introduced for PowerShell Job Scheduling named PSScheduledJob.
Understanding Desired State Configuration (Advanced)
