SCRIPT CLUB<br />Sean Kearney - MCSE, MCTS<br />
SCRIPT CLUB - RULES<br />
SCRIPT CLUB - RULES<br />YOU ALWAYS TALK ABOUT SCRIPT CLUB<br />
SCRIPT CLUB - RULES<br />YOU ALWAYS TALK ABOUT SCRIPT CLUB<br />
SCRIPT CLUB - RULES<br />If Someone asks for Help, And You Can Help, You Help<br />
SCRIPT CLUB - RULES<br />TWO PEOPLE HELP <br />ONE PERSON AT ONE TIME<br />
SCRIPT CLUB - RULES<br />ONE MODULE <br />PER PERSON PER NIGHT<br />
SCRIPT CLUB - RULES<br />ALL SCRIPTS <br />ALL POWERSHELL<br />
SCRIPT CLUB - RULES<br />SCRIPTS WILL BE AS<br />SHORT AS THEY CAN BE<br />
SCRIPT CLUB - RULES<br />If THIS IS YOU FIRST TIME AT SCRIPT CLUB<br />YOU HAVE TO SCRIPT<br />
SCRIPT CLUB<br />Examining files & folders by date time <br />The DEL Command you always wanted<br />
SCRIPT CLUB<br />GET-CHILDITEM<br />&quot;Get-Childitem is like DIR&quot;<br />
SCRIPT CLUB<br />REMOVE-ITEM<br />“Remove-Item is like DEL&quot;<br />
SCRIPT CLUB<br />PIPING<br />“Placing a ‘|’ between commands passes information between&quot;<br />
SCRIPT CLUB<br />WHERE-OBJECT<br />“Let’s you examine PIPED output&quot;<br />
SCRIPT CLUB<br />“LET’S SCRIPT!”<br />
SCRIPT CLUB<br />GET-CHILDITEM C:SCRIPTCLUBTEMP“<br />GET-CHILDITEM c:SCRIPTCLUBTEMP | WHERE { $_.LastWriteTime.ToShortDat...
POWERSHELL<br />Powerscripting Podcast – Weekly Podcast, Free, Live Broadcast weekly<br />www.powerscripting.net<br />Powe...
Script   Club<br />Sean Kearney<br />“The Energized Tech”<br />EMAIL: sean@energizedtech.com<br />TWITTER: TWITTER.COM/YE1...
Upcoming SlideShare
Loading in …5
×

Scriptclub1

366 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
366
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Scriptclub1

  1. 1. SCRIPT CLUB<br />Sean Kearney - MCSE, MCTS<br />
  2. 2. SCRIPT CLUB - RULES<br />
  3. 3. SCRIPT CLUB - RULES<br />YOU ALWAYS TALK ABOUT SCRIPT CLUB<br />
  4. 4. SCRIPT CLUB - RULES<br />YOU ALWAYS TALK ABOUT SCRIPT CLUB<br />
  5. 5. SCRIPT CLUB - RULES<br />If Someone asks for Help, And You Can Help, You Help<br />
  6. 6. SCRIPT CLUB - RULES<br />TWO PEOPLE HELP <br />ONE PERSON AT ONE TIME<br />
  7. 7. SCRIPT CLUB - RULES<br />ONE MODULE <br />PER PERSON PER NIGHT<br />
  8. 8. SCRIPT CLUB - RULES<br />ALL SCRIPTS <br />ALL POWERSHELL<br />
  9. 9. SCRIPT CLUB - RULES<br />SCRIPTS WILL BE AS<br />SHORT AS THEY CAN BE<br />
  10. 10. SCRIPT CLUB - RULES<br />If THIS IS YOU FIRST TIME AT SCRIPT CLUB<br />YOU HAVE TO SCRIPT<br />
  11. 11. SCRIPT CLUB<br />Examining files & folders by date time <br />The DEL Command you always wanted<br />
  12. 12. SCRIPT CLUB<br />GET-CHILDITEM<br />&quot;Get-Childitem is like DIR&quot;<br />
  13. 13. SCRIPT CLUB<br />REMOVE-ITEM<br />“Remove-Item is like DEL&quot;<br />
  14. 14. SCRIPT CLUB<br />PIPING<br />“Placing a ‘|’ between commands passes information between&quot;<br />
  15. 15. SCRIPT CLUB<br />WHERE-OBJECT<br />“Let’s you examine PIPED output&quot;<br />
  16. 16. SCRIPT CLUB<br />“LET’S SCRIPT!”<br />
  17. 17. SCRIPT CLUB<br />GET-CHILDITEM C:SCRIPTCLUBTEMP“<br />GET-CHILDITEM c:SCRIPTCLUBTEMP | WHERE { $_.LastWriteTime.ToShortDateString() -eq &apos;8/24/2009&apos; }<br />$CURRENTDATE=GET-DATE<br />GET-CHILDITEM C:SCRIPTCLUBTEMP | WHERE { $CURRENTDATE.ADDDAYS(-7) -gt $_.LastWriteTime }<br />GET-CHILDITEM C:SCRIPTCLUBTEMP*.TMP | WHERE { $CURRENTDATE.ADDDAYS(-7) -gt $_.LastWriteTime }<br />GET-CHILDITEM C:SCRIPTCLUBTEMP*.TMP | WHERE { $CURRENTDATE.ADDDAYS(-7) -gt $_.LastWriteTime } | REMOVE-ITEM -WHATIF<br />GET-CHILDITEM C:SCRIPTCLUBTEMP*.TMP | WHERE { $CURRENTDATE.ADDDAYS(-7) -gt $_.LastWriteTime } | REMOVE-ITEM<br />Get’s all Files and Folders in specified folder”<br />“Get’s all Files and Folders in specified folder Modified on a SPECIFIC DATE”<br />“Store the Current Date in a Variable called ‘$CURRENTDATE’”<br />“Get’s all Files and Folders in specified folder over 7 days old”<br />“Get’s only Files and Folders in specified folder with the extension of ‘TMP’ over 7 days old”<br />“Do a ‘WHATIF’ on Removing only Files and Folders in specified folder with the extension of ‘TMP’ over 7 days old”<br />“Remove only Files and Folders in specified folder with the extension of ‘TMP’ over 7 days old”<br />
  18. 18. POWERSHELL<br />Powerscripting Podcast – Weekly Podcast, Free, Live Broadcast weekly<br />www.powerscripting.net<br />Powershell Community – Online resources from across the world on Powershell<br />www.PowershellCommunity.ORG<br />Powershell on MSDN – Home Page of the Powershell Team<br />blogs.msdn.com/powershell<br />BING – Search for Powershell and Free Resources – There’s a LOT<br />www.bing.com<br />RESROUCES<br />
  19. 19. Script Club<br />Sean Kearney<br />“The Energized Tech”<br />EMAIL: sean@energizedtech.com<br />TWITTER: TWITTER.COM/YE110WBEARD<br />www.energizedtech.com<br />ye110beard.spaces.live.com<br />www.itprotoronto.ca<br />“Powershell. It’s so Easy and it’s Free.”<br /> Highway to Powershell<br />See you next month<br />

×