Download - Scriptclub2
Sean Kearney - MCSE, MCTS
“DA RULEZ, CUZ
WE GOTTA HAVE „EM”
You always talk about script
club
You always talk about
script club
If someone asks for help, and
you can help, you help
Two people help one person at
one time
All scripts, all
powershell
SCRIPTS WILL BE AS
SHORT AS THEY CAN BE
If THIS IS YOU FIRST TIME AT
SCRIPT CLUB
YOU HAVE TO SCRIPT
Windows 7 and server2008r2
Powershell I S E
I S E
Integrated Scripting Environment
A way to edit AND troubleshoot
Easier way for accessing Help
Better way to see what is THERE
FOREACH-OBJECT
Allows us to work with INDIVIDUAL parts of a list (Like a Directory)
READ-HOST
Let’s you READ information from the HOST system (console) and
maybe store it away
Breakpoints allow you to put “STOPS” in your script for testing
and troubleshooting
Easier way to pull out variables, things don’t just “Run By”
“LET’S SCRIPT!”
DEMO
“Powershell ISE!”
Powershell ISE – Built into Windows 7 and Server 2008R2 part of Powershell V2
RC of Powershell V2 is Downloadable for Windows XP / Server 2003 / Vista / Server 2008
BEFORE you can make Breakpoints, you have to save the script with a name at least once.
F9 or RIGHT CLICKING and choosing “TOGGLE BREAKPOINT” turns a Breakpoint ON or OFF. TURNS LINE SOLID RED
RIGHT CLICKING and choosing “DISABLE BREAKPOINT” leaves a Breakpoint available but ignored
F5 Runs the Script, and Continues past Breakpoinits
You can assign almost ANYTHING to a variable in Powershell just by preceding the name of the variable with a “$”
$BIGPILEOFSTUFF=GET-CHILDITEM, $OTHERTHING=‘MyName’
You can step through most items in a list using FOREACH-OBJECT, Once those items are in your hand you can manipulate and work with them on a much more granular level
GET-MEMBER can tell you a LOT about a Variable or almost ANYTHING in Powershell, Use IT and Abuse IT
The Period “.” allows you to step into smaller pieces of a variable
Powerscripting Podcast – Weekly Podcast, Free, Live Broadcast weekly
www.powerscripting.net
Powershell Community – Online resources from across the world on Powershell
www.PowershellCommunity.ORG
Powershell on MSDN – Home Page of the Powershell Team
blogs.msdn.com/powershell
BING – Search for Powershell and Free Resources – There’s a LOT
www.bing.com
Sean Kearney
“The Energized Tech”
EMAIL: [email protected]
TWITTER: TWITTER.COM/YE110WBEARD
www.energizedtech.com
ye110beard.spaces.live.com
www.itprotoronto.ca
“Powershell. It’s so Easy and it’s Free.”
Highway to Powershell