PowerShell Guide

Let's Dive In

      Windows PowerShell is an evolution of the command line – a combination of a DOS shell and scripting environment. It can help with repetitive tasks; processes acting on many files at once; automating and scheduling tasks; and configuring Windows components and services. PowerShell is not only for running DOS commands, it is far more flexible than that. It supports complex decision making, connecting to a wide variety of data sources, and even building graphical user interfaces.

PowerShell is now an essential skill for IT and server administrators, and is often used when deploying maintenance scripts across an entire organization. Getting those scripts to run safely on all machines can be a technical process, but tips and help are available for PowerShell users working with Enterprise Desktop machines. Despite the focus on administrative tasks, home users and software developers can often save time by making use of the facilities available.

PowerShell Concepts:

About PowerShell

What is PowerShell & What can you do with it?

Fundamentals

PowerShell Installation or Setup

Execution Policy

Profiles

Modules

Aliases

Pipeline

Calling .Net Library

Commenting in PowerShell

Get-Help

PowerShell File Extensions

Simple Variables

Array

HashTable

String

Automatic Variable

WhatIf and Confirm

Script Block

Operators in Powershell

Join Operator

Conditions in PowerShell

Loops in PowerShell

Function in PowerShell

Advance Function in PowerShell

Error Handling in PowerShell

Try Catch Finally

Objects in PowerShell

Methods in PowerShell

Property in PowerShell

File Operation in PowerShell

Date/Time Operation in PowerShell

WMI in PowerShell

WMI and CIM in PowerShell

Process Management in PowerShell

Service Management in PowerShell

Splatting in PowerShell

Woring with csv

Woring with json

Woring with xml

ActiveDirectory

ActiveDirectory Operation Using PowerShell

PowerShell Remoting

What is Database? What is SQL?

MySql Using PowerShell

SQL Server PowerShell

Regular Expressions

Workflows in PowerShell

Package management in PowerShell


Learning PowerShell

There are several PowerShell learning resources for SharePoint IT professionals.

TechNet Scripting Center

The TechNet Scripting Center includes many resources to help you learn the basics about PowerShell. It also contains script repositories with samples of scripts that are typically used with various Microsoft products. The following table shows the main learning resources.

Page Description
Windows PowerShell Documentation on TechNet This section of the TechNet Library contains web copies of the core PowerShell Get-Help topics. The section also has web copies of the PowerShell Getting Started document, the PowerShell.exe help, and a PowerShell primer.
Scripting With Windows PowerShell The home page for PowerShell scripting learning resources.
Windows PowerShell Owner's Manual Web-based guide for getting started with PowerShell.
Windows PowerShell Quick Reference Downloadable copy of the Quick Reference document that is installed with PowerShell.