0% found this document useful (0 votes)
388 views

PowerShell 101

This document provides an overview of a PowerShell 101 presentation by Microsoft MVP Mike Frobbins. The presentation introduces PowerShell basics like starting PowerShell, discovering available commands, and extending functionality through modules. It covers PowerShell concepts like the pipeline and objects. The document also provides resources for learning PowerShell and contact information for the presenter.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
388 views

PowerShell 101

This document provides an overview of a PowerShell 101 presentation by Microsoft MVP Mike Frobbins. The presentation introduces PowerShell basics like starting PowerShell, discovering available commands, and extending functionality through modules. It covers PowerShell concepts like the pipeline and objects. The document also provides resources for learning PowerShell and contact information for the presenter.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

PowerShell 101

The No-Nonsense Beginner’s Guide to PowerShell

mikefrobbins.com
Get-Help –Name ‘about_Presenter’

 Mike F Robbins

 Microsoft MVP on Windows PowerShell

 SAPIEN Technologies MVP

 Leader & Co-Founder of Mississippi PowerShell User Group

 Co-Author of Windows PowerShell TFM 4th Edition

 Author of Chapter 6 in the PowerShell Deep Dives book

 Winner of the Advanced Category in the 2013 Scripting Games

 Learn more about me @ mikefrobbins.com

http://mikefrobbins.com
Write-Output ‘Questions for Audience’
 IT Pro’s

 Developers

 PowerShell

 One-Liners

 Scripts

 Functions

 Modules

 .NET Framework

 Source Control

 Unit Testing

http://mikefrobbins.com
Set-Content ‘Information to Cover’
 Basics
 Discoverability
 Objects
 Methods
 Properties

 Pipeline

 Extending PowerShell

 Remoting

 Best Practices

 SQL Server

http://mikefrobbins.com
Supported PowerShell Versions by OS

http://mikefrobbins.com
Where do I find PowerShell?

 Windows 10

http://mikefrobbins.com
Where do I find PowerShell?

 Windows 8, Windows 8.1, Server 2012, & Server 2012 R2


 Accessed from the Start screen:

http://mikefrobbins.com
Where do I find PowerShell?

 Windows 7 / Server 2008 R2 and Prior OS’s


 Start > All Programs > Accessories > Windows PowerShell

http://mikefrobbins.com
How do I start PowerShell?

http://mikefrobbins.com
How do I start PowerShell?

http://mikefrobbins.com
How do I start PowerShell?

http://mikefrobbins.com
How do I start PowerShell?

http://mikefrobbins.com
Pin PowerShell to the Taskbar

http://mikefrobbins.com
Modify the Taskbar Shortcut

http://mikefrobbins.com
Set to always run as Administrator

http://mikefrobbins.com
Execution Policy

http://mikefrobbins.com
Set the Execution Policy

http://mikefrobbins.com
Background Information
 PowerShell Commands are called Cmdlets

 Cmdlet is pronounced command-let (not CMD-let)

 Cmdlets are in the form of singular Verb-Noun commands

 Select “Run as Administrator” when opening PowerShell


 PowerShell is unable to participate in User Access Control
(UAC)

 Updatable Help

http://mikefrobbins.com
How Do I Figure Out What the
Commands Are?
 Core Commands for Discovering How to Use PowerShell

 Get-Command
 Find what commands are available

 Get-Help
 Figure out how to use commands

 Get-Member
 Discover Objects, Properties, and Methods

http://mikefrobbins.com
PowerShell is like the Microsoft
Management Console (MMC)

http://mikefrobbins.com
Snap-ins (and Modules) extend its
functionality

http://mikefrobbins.com
Install the SQL PowerShell Module (Old)

http://mikefrobbins.com
Install the SQL PowerShell Module (New)

http://mikefrobbins.com
The PowerShellGet Module

Install-Module –Name SqlServer –Force -AllowClobber

PowerShellGet: The BIG EASY was to discover, install, and update PowerShell modules

http://mikefrobbins.com
Start-Process ‘Demo’
Demo Code: github.com/mikefrobbins/Presentations

http://mikefrobbins.com
Words of Wisdom

http://mikefrobbins.com
Select-Object –Property ‘Resources’
 PowerShell Documentation

 PowerShell Best Practices and Style Guide

 Microsoft Virtual Academy

 PowerShell.org

 GitHub

 User Groups

 Blogs

 Twitter

 Slack

http://mikefrobbins.com
New-Book –Name ‘PowerShell 101’

leanpub.com/powershell101

http://mikefrobbins.com
Get-Contact –Identity ‘Presenter’

 Blog: mikefrobbins.com (or MrPowerShell.com)

 Twitter: @mikefrobbins

 LinkedIn: www.linkedin.com/in/mikefrobbins

 E-Mail: See mikefrobbins.com/about/

 User Group: mspsug.com (or MsPowerShell.com)

http://mikefrobbins.com

You might also like