SlideShare uma empresa Scribd logo
1 de 17
SCRIPT CLUB Sean Kearney - MCSE, MCTS
SCRIPT CLUB - RULES “DA RULEZ, CUZ  WE GOTTA HAVE ‘EM”
SCRIPT CLUB - RULES 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 One module, per person, per night
SCRIPT CLUB - RULES All scripts, all powershell
SCRIPT CLUB - RULES SCRIPTS WILL BE AS SHORT AS THEY CAN BE
SCRIPT CLUB - RULES If THIS IS YOU FIRST TIME AT SCRIPT CLUB YOU HAVE TO SCRIPT
SCRIPT CLUB Windows 7  and  server2008r2  Powershell  I  S  E
SCRIPT CLUB I  S  E  Integrated Scripting Environment
SCRIPT CLUB A way to edit AND troubleshoot Easier way for accessing Help Better way to see what is THERE
SCRIPT CLUB FOREACH-OBJECT Allows us to work with INDIVIDUAL parts of a list (Like a Directory)
SCRIPT CLUB READ-HOST Let’s you READ information from the HOST system (console) and maybe store it away
SCRIPT CLUB 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”
SCRIPT CLUB “LET’S SCRIPT!”
SCRIPT CLUB DEMO “Powershell ISE!”
SCRIPT CLUB 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
POWERSHELL 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 RESROUCES
Script   Club Sean Kearney “The Energized Tech” EMAIL: sean@energizedtech.com 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 See you next month

Mais conteúdo relacionado

Semelhante a Scriptclub2

Neo4j Stored Procedure Training Part 1
Neo4j Stored Procedure Training Part 1Neo4j Stored Procedure Training Part 1
Neo4j Stored Procedure Training Part 1Max De Marzi
 
Tutorial.slack
Tutorial.slackTutorial.slack
Tutorial.slackNeniaTan
 
The Dirty Little Secrets They Didn’t Teach You In Pentesting Class
The Dirty Little Secrets They Didn’t Teach You In Pentesting ClassThe Dirty Little Secrets They Didn’t Teach You In Pentesting Class
The Dirty Little Secrets They Didn’t Teach You In Pentesting ClassRob Fuller
 
Get-Help: An intro to PowerShell and how to Use it for Evil
Get-Help: An intro to PowerShell and how to Use it for EvilGet-Help: An intro to PowerShell and how to Use it for Evil
Get-Help: An intro to PowerShell and how to Use it for Eviljaredhaight
 
Gearman and CodeIgniter
Gearman and CodeIgniterGearman and CodeIgniter
Gearman and CodeIgniterErik Giberti
 
Enhance system transparency and truthfulness with request tracing
Enhance system transparency and truthfulness with request tracingEnhance system transparency and truthfulness with request tracing
Enhance system transparency and truthfulness with request tracingSam Keen
 
Work Queues
Work QueuesWork Queues
Work Queuesciconf
 
Getting Started with Puppet by Chad Metcalf Wibi Data
Getting Started with Puppet by Chad Metcalf  Wibi DataGetting Started with Puppet by Chad Metcalf  Wibi Data
Getting Started with Puppet by Chad Metcalf Wibi Databuildacloud
 
Drupalcamp finland 2014_organic_groups_kari_kaariainen
Drupalcamp finland 2014_organic_groups_kari_kaariainenDrupalcamp finland 2014_organic_groups_kari_kaariainen
Drupalcamp finland 2014_organic_groups_kari_kaariainenKari Kääriäinen
 
Scalable CSS You and Your Back-End Coders Can Love - @CSSConf Asia 2014
Scalable CSS You and Your Back-End Coders Can Love - @CSSConf Asia 2014Scalable CSS You and Your Back-End Coders Can Love - @CSSConf Asia 2014
Scalable CSS You and Your Back-End Coders Can Love - @CSSConf Asia 2014Christian Lilley
 
The Original Hypertext Preprocessor
The Original Hypertext PreprocessorThe Original Hypertext Preprocessor
The Original Hypertext PreprocessorDrew McLellan
 
Questioning the status quo
Questioning the status quoQuestioning the status quo
Questioning the status quoIvano Pagano
 
z/OSMF Workflow Editor Lab - Try it out on your z/OSMF system
z/OSMF Workflow Editor Lab - Try it out on your z/OSMF systemz/OSMF Workflow Editor Lab - Try it out on your z/OSMF system
z/OSMF Workflow Editor Lab - Try it out on your z/OSMF systemMarna Walle
 
Everything You Need to Know About MySQL Group Replication
Everything You Need to Know About MySQL Group ReplicationEverything You Need to Know About MySQL Group Replication
Everything You Need to Know About MySQL Group ReplicationNuno Carvalho
 
Synapseindia reviews sharing intro on php
Synapseindia reviews sharing intro on phpSynapseindia reviews sharing intro on php
Synapseindia reviews sharing intro on phpSynapseindiaComplaints
 
Synapseindia reviews sharing intro on php
Synapseindia reviews sharing intro on phpSynapseindia reviews sharing intro on php
Synapseindia reviews sharing intro on phpSynapseindiaComplaints
 

Semelhante a Scriptclub2 (20)

Neo4j Stored Procedure Training Part 1
Neo4j Stored Procedure Training Part 1Neo4j Stored Procedure Training Part 1
Neo4j Stored Procedure Training Part 1
 
Tutorial.slack
Tutorial.slackTutorial.slack
Tutorial.slack
 
The Dirty Little Secrets They Didn’t Teach You In Pentesting Class
The Dirty Little Secrets They Didn’t Teach You In Pentesting ClassThe Dirty Little Secrets They Didn’t Teach You In Pentesting Class
The Dirty Little Secrets They Didn’t Teach You In Pentesting Class
 
Altspace vr overview
Altspace vr overviewAltspace vr overview
Altspace vr overview
 
Get-Help: An intro to PowerShell and how to Use it for Evil
Get-Help: An intro to PowerShell and how to Use it for EvilGet-Help: An intro to PowerShell and how to Use it for Evil
Get-Help: An intro to PowerShell and how to Use it for Evil
 
Gearman and CodeIgniter
Gearman and CodeIgniterGearman and CodeIgniter
Gearman and CodeIgniter
 
Enhance system transparency and truthfulness with request tracing
Enhance system transparency and truthfulness with request tracingEnhance system transparency and truthfulness with request tracing
Enhance system transparency and truthfulness with request tracing
 
Powershell Demo Presentation
Powershell Demo PresentationPowershell Demo Presentation
Powershell Demo Presentation
 
Work Queues
Work QueuesWork Queues
Work Queues
 
Getting Started with Puppet by Chad Metcalf Wibi Data
Getting Started with Puppet by Chad Metcalf  Wibi DataGetting Started with Puppet by Chad Metcalf  Wibi Data
Getting Started with Puppet by Chad Metcalf Wibi Data
 
Drupalcamp finland 2014_organic_groups_kari_kaariainen
Drupalcamp finland 2014_organic_groups_kari_kaariainenDrupalcamp finland 2014_organic_groups_kari_kaariainen
Drupalcamp finland 2014_organic_groups_kari_kaariainen
 
Scalable CSS You and Your Back-End Coders Can Love - @CSSConf Asia 2014
Scalable CSS You and Your Back-End Coders Can Love - @CSSConf Asia 2014Scalable CSS You and Your Back-End Coders Can Love - @CSSConf Asia 2014
Scalable CSS You and Your Back-End Coders Can Love - @CSSConf Asia 2014
 
Nosql
NosqlNosql
Nosql
 
The Original Hypertext Preprocessor
The Original Hypertext PreprocessorThe Original Hypertext Preprocessor
The Original Hypertext Preprocessor
 
Questioning the status quo
Questioning the status quoQuestioning the status quo
Questioning the status quo
 
Php hacku
Php hackuPhp hacku
Php hacku
 
z/OSMF Workflow Editor Lab - Try it out on your z/OSMF system
z/OSMF Workflow Editor Lab - Try it out on your z/OSMF systemz/OSMF Workflow Editor Lab - Try it out on your z/OSMF system
z/OSMF Workflow Editor Lab - Try it out on your z/OSMF system
 
Everything You Need to Know About MySQL Group Replication
Everything You Need to Know About MySQL Group ReplicationEverything You Need to Know About MySQL Group Replication
Everything You Need to Know About MySQL Group Replication
 
Synapseindia reviews sharing intro on php
Synapseindia reviews sharing intro on phpSynapseindia reviews sharing intro on php
Synapseindia reviews sharing intro on php
 
Synapseindia reviews sharing intro on php
Synapseindia reviews sharing intro on phpSynapseindia reviews sharing intro on php
Synapseindia reviews sharing intro on php
 

Scriptclub2

  • 1. SCRIPT CLUB Sean Kearney - MCSE, MCTS
  • 2. SCRIPT CLUB - RULES “DA RULEZ, CUZ WE GOTTA HAVE ‘EM”
  • 3. SCRIPT CLUB - RULES 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 One module, per person, per night
  • 4. SCRIPT CLUB - RULES All scripts, all powershell
  • 5. SCRIPT CLUB - RULES SCRIPTS WILL BE AS SHORT AS THEY CAN BE
  • 6. SCRIPT CLUB - RULES If THIS IS YOU FIRST TIME AT SCRIPT CLUB YOU HAVE TO SCRIPT
  • 7. SCRIPT CLUB Windows 7 and server2008r2 Powershell I S E
  • 8. SCRIPT CLUB I S E Integrated Scripting Environment
  • 9. SCRIPT CLUB A way to edit AND troubleshoot Easier way for accessing Help Better way to see what is THERE
  • 10. SCRIPT CLUB FOREACH-OBJECT Allows us to work with INDIVIDUAL parts of a list (Like a Directory)
  • 11. SCRIPT CLUB READ-HOST Let’s you READ information from the HOST system (console) and maybe store it away
  • 12. SCRIPT CLUB 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”
  • 14. SCRIPT CLUB DEMO “Powershell ISE!”
  • 15. SCRIPT CLUB 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
  • 16. POWERSHELL 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 RESROUCES
  • 17. Script Club Sean Kearney “The Energized Tech” EMAIL: sean@energizedtech.com 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 See you next month

Notas do Editor

  1. You Always Talk about Script ClubYou Always Talk about Script ClubIf Someone asks for Help, and you can help, you helpTwo People Help One Person at One TimeOne Module Per Person, Per NightAll Scripts All PowershellScripts will be as short as they can beIf this is your first time at script club, you have to script