Introduction – Windows PowerShell 2 For Dummies

Welcoming you to Windows PowerShell 2 For Dummies, your ticket to the fantastic and enchanting realm that is Windows PowerShell.

This book is a no-fluff, get you the information you need today kind of book, so if you like to read chapter after chapter of boring technical literature that keeps going around in circles, put this book back on the shelf, and walk away quietly.

If you’re looking to read an engaging book that provides the details that you require rather than a jumble of things that you may want to be aware of, and helps get you running using Windows PowerShell as quickly as feasible and efficiently, then this book is the one for you!

About this book – Windows PowerShell 2 for Dummies

Windows PowerShell 2 for Dummies is an introduction to this fairly revolutionary and intriguing Windows scripting system that’s changing the ways that programmers think about Windows scripting.

In the past, prior to Windows PowerShell 2, there was Windows PowerShell 1.0. Windows PowerShell 2 takes the most effective aspects from Windows PowerShell 1.0 and greatly improves upon the existing features.

The goal of this book is to provide you a clear knowledge of the workings within Windows PowerShell and fortify that understanding with plenty of practical examples that I’m certain you’ll be able to connect to.

This book, Windows PowerShell 2 For Dummies, is structured to ensure that, if you go through it from start to finish and build upon the experiences from previous chapters to continue to improve the level of your Windows PowerShell skills and level up.

Each chapter is written as a separate element that you can use to refer to for future years as you’ll need to revisit and learn more about things.

Since Windows PowerShell 2 can be installed on a variety of Windows Operating Systems, the tutorials are intended to be as operating system-independent as feasible. So, you’re not going to be missing any feature, no matter if you’re running the program on Windows XP, Windows Nista, Windows Server 2003, Windows Server 2008, or even Windows 7.

After you’ve read this book, you’ll know how to put up your very custom Windows PowerShell scripts.

To mention briefly what this book is not, it’s not an all-inclusive, everything you’ll ever want to know about Windows PowerShell.

When you read this book, you’ll be amazed at how effective Windows PowerShell is, because this book covers all of the important information you should know about it.

The book, Windows PowerShell 2 For Dummies, is written according to Windows PowerShell 2 CTP3. Windows PowerShell 2 has already progressed a lot since the time it was declared to be in development.

How is the Book Organized?

There’s nothing to be surprised about in this book. Windows PowerShell 2 For Dummies book is organized to make it easy to locate what you’re looking for. If you’re looking for something fast, or you’d like reading this book during your spare time, you’ll be at right at home. This book is divided into seven parts to ensure you can read at your own pace.

Part I

Part I: Getting the Bird’s Eye View of PowerShell 2

Chapter I will help you become familiar with Windows PowerShell by giving you an understanding of how it got to the point it is at today. You will learn how to customize the interface to fit your preferences and also provide ways to cut down on time that can to speed up your progress in Chapter 2.

Chapter 3 also gives the first glimpse of this incredible Shell.

Part II

Part II: PowerShell’s Basic Structure and Syntax

Part I provides the first experience of Windows PowerShell. Part II goes back, offering a comprehensive analysis of the syntax and structure that make up Windows PowerShell.

Every programming and scripting language specifies the way to work with it.

Chapter 4 covers Cmdlets which are the most basic commands that are the basis of Windows PowerShell. I’ll show you how you can save data in your scripts by using variables in Chapter 5.

Chapter 6 continues to demonstrate the various ways to incorporate some logic in your code using logic expressions to manage how code flows in your script.

Chapter 7 demonstrates how you can create efficient command sequences by connecting an output from one command into the input of another command, making an command pipeline.

Part III

Part III: Complex Data Description and Sharing

Now that you’ve learned how to use the language Part III is the next step to raise the bar by introducing more sophisticated Windows PowerShell tasks like working through Windows Management Instrumentation (WMI) within Chapter 8, and manipulating the text throughout Chapter 9.

Additionally, you’ll discover the potential of numbers in Chapter’s. Learn how to benefit from groups of data using arrays in Chapter 10 as well as how to handle writing and reading data in Chapter 12.

Chapter 13 will take you on a trip through the past by demonstrating how to use dates and times with PowerShell. The best thing about Windows PowerShell is that it allows even the most complex tasks easy.

Part IV

Part IV: Controlling Where and How You Use PowerShell

This section, discusses the more advanced capabilities offered by Windows PowerShell, including many exciting new features that were introduced in Windows PowerShell 2.

Create your own command by using Advanced Functions in Chapter 14 and then you can run scripts remotely from Chapter 15.

The chapter also demonstrates how to get your scripts to work in an international context in Chapter 16 and how to track for those elusive problems in Chapter 17.

Part V

Part V: Real-World Windows Administration using PowerShell

This section is dedicated to demonstrating the true potential that is Windows PowerShell through practical real-world examples. It will allow you to observe how you can integrate what you’ve learned through the previous four parts into some extremely useful scripts that will have your coworkers staring at you with admiration and amazement.

In this section, you’ll be shown several scripts to check your system’s health in Chapter 18; meddle with Windows registry in Chapter 19; play around with Windows Registry in Chapter 19; work using Active Directory in Chapter 20 and keep track of the system’s status and handle Security during Chapter 21.

If you’re an old-fashioned script author who is using Windows Shell Scripts or Windows Scripting Host, you are shown the way these scripts can be converted into Windows PowerShell in Chapter 22.

While this chapter is targeted specifically towards IT professionals there’s plenty that will help you even if your only source of information is your personal computer.

Part VI

Part VI: Configuring and Reporting via PowerShell.

In this section, you will be provided with more scenarios where Windows PowerShell can make your task simpler.

You will learn how you can control your network’s configuration like TCP/IP, as well as firewall configurations in Chapter 23 and how you can manage your hardware using only Windows PowerShell in Chapter 24.

Learn to use the built-in features of Windows PowerShell to generate reports directly from the output of your script in Chapter 25.

Part VII

Part VII: The Part of Tens

Discover in Chapter 26 which the top ten Cmdlets are. In Chapter 27, you’ll find the top ten errors to avoid. This is fine that I’m certain that you’ll want to turn to the conclusion of the book to get an insider’s look and see what’s in it, so do it.

You can visit Microsoft’s page to view Sample scripts for system administration.

Related Product: Check PowerShell: 5 Books in 1 – Beginner’s guide