SlideShare una empresa de Scribd logo
1 de 22
Meet windows powershell! (no matter who you are)
This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it within your own organization however you like. For more information on our company, including information on private classes and upcoming conference appearances, please visit our Web site, www.ConcentratedTech.com.  For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgreg This work is copyright ©Concentrated Technology, LLC
introductions Don Jones Senior Partner and Principal Technologist, Concentrated Technologywww.ConcentratedTech.com Windows PowerShell MVP Award Recipient Blogger at WindowsITPro.com Columnist for Microsoft TechNet Magazine and Redmond Magazinewww.TechNetMagazine.com • www.RedmondMag.com Windows PowerShell instructor and enthusiast
Learn Windows PowerShell in a Month of Lunches Also available: Companion DVD and Web siteMoreLunches.com Get the book! You can order an autographed version when we’re done today, and it’ll be shipped right to you in about a week
Memes we’ll cover What is PowerShell, and Why Should You Care? PowerShell: Command-Line Interface or Scripting Language? PowerShell Patterns and Practices(Learn these and you’ll never need another class) Turning Commands into Reusable Tools
Our goal To expose you to many of PowerShell’s core patterns and practices With this information, you can start to “figure out” PowerShell largely on your own! This is definitely a “crash course,” so prepare your airbags for rapid deployment We will be covering a good amount of material very quickly – the goal is to give you an idea of what PowerShell does and how it does it, not to make you an expert If you’d like a somewhat slower-paced, methodical introduction… Learn Windows PowerShell in a Month of Lunches!Or consider an instructor-led class (MOC 10325A or have me on-site)
Before we get started… Ask Questions! Challenge Assumptions! Share Your Experiences! This is going to mostly involve demos, not slides. You can get a recorded full-day workshop on DVD from http://ConcentratedTech.com/DVDGoPack.php if you miss anything or need a reminder If you lose any of the URLs, just visit ShellHub.com – I have them all listed there This deck is downloadable at ConcentratedTech.com/download
What is Windows PowerShell, and Why Should You Care?
The strategic outlook Microsoft produced PowerShell because of customer demand for better administrative automation capabilities. In other words, management cares about efficiency. Who knew? Learn PowerShell = Be Efficient = Keep Job Ignore PowerShell = Keep Clicking Through Dialog Boxes = Fries With That?
System requirements Windows 7 / Windows Server 2008 R2 (incl Core): Installed by default Windows Vista / Windows Server 2008: Has v1; Needs v2 Windows XP / Windows Server 2003: Has nothing, Needs v2 Requires .NET Framework v2 (v3.51 is better; can live side by side with v4) To get PowerShell v2: Search for “Download Management Framework Core”
Caution / gotcha alert On 64-bit operating systems, you get four PowerShells: ,[object Object]
Console and ISE in 32-bit form - window says “(x86”)Shell extensions can only run in a matching architecture (e.g., 32-bit extension runs in x86 shell). Don’t mess this up. Also make sure window title bar says “Administrator,” or you aren’t administrator.
Is it a CLI? Or a Scripting Language? Hint: If you can run Dir | More,you can use PowerShell.
Really, it’s this easy Get-Mailbox | Sort Size –descending | Select –first 100 | Move-Mailbox –Server FOO Ok, that isn’t the 100% syntax… but it’s close, and it gives you an idea of what PowerShell is. Sure, you can treat it like a VBScript replacement… but isn’t this much more cool? The tricky bit is that different audiences tend to approach PowerShell in different ways. Scripters use it to write scripts. Devs use it like “C# lite.” Admins shouldn’t be distracted by those approaches if they’re not appropriate – use it like a shell.
Let the demos begin Enough with the slides. Let’s do this. Start thinking: What would you like to be able to do in Windows PowerShell?Ask me how – I’ll at least tell you, and if I can, I’ll show you. Right now.
Patterns and practices Finding commands by using Help and Get-Command Loading new commands (extending the shell) Cmdlet naming conventions Why (almost) everything is a disk drive Parameters and Interpreting the Help Core cmdlets: Sorting, Filtering, Selecting, and More Pipeline Parameter Binding (ByValue and ByPropertyName) Working with Windows Management Instrumentation Adding custom columns (properties) Ways of feeding computer names to a –computerName parameter
Building reusable tools While cmdlets are written in C# or Visual Basic… …you can do something awfully close in an advanced function using PowerShell’s scripting language Let’s take a fairly simple pair of commands and turn them into the ultimate re-usable tool, all from scratch. We’ll inventory OS, service back, and BIOS information from multiple computers Then we’ll do it with a command that clears the application log on one or more computers – and implements some more PowerShell patterns and best practices
summary Start learning PowerShell. Find a task to automate and dive right in. Focus on patterns and practices to teach yourself. We really did cover a lot of stuff, didn’t we?
Thank you! Thanks to all the local folks who helped make this seminar happen… …and thanks to Microsoft IT Pro Evangelist Harold Wong, who had the idea! Remember, you can get this deck at ConcentratedTech.com/download Any last questions????
Learn Windows PowerShell in a Month of Lunches Also available: Companion DVD and Web siteMoreLunches.com Remember! You can order an autographed version today, and it’ll be shipped right to you in about a week!
My contact information Q&A: http://connect.ConcentratedTech.com Twitter: @concentrateddon LinkedIn: http://linkedin.com/in/concentratedDon Or send a text message containing   DONJ   to 50500 – you’ll get a reply with my contact info and a vCard link Private On-Site Training Available – contact sales@concentratedtech.com.Flat-rate pricing includes travel expenses (3-5 day classes) Get this deck from ConcentratedTech.com/download Look for “Jones-2011WestCoastTour.zip”
Go forth and shell! (before v3 comes out and adds a bunch of stuff)

Más contenido relacionado

La actualidad más candente

Progressive enhancement
Progressive enhancementProgressive enhancement
Progressive enhancementimaack
 
Building your first WordPress plugin
Building your first WordPress pluginBuilding your first WordPress plugin
Building your first WordPress pluginJustin Foell
 
Wordpress Questions & Answers
Wordpress Questions & AnswersWordpress Questions & Answers
Wordpress Questions & AnswersNicole Dion
 
Style Guide Best Practices
Style Guide Best PracticesStyle Guide Best Practices
Style Guide Best PracticesBrad Frost
 
Microsoft P.P. vs. Prezi!
Microsoft P.P. vs. Prezi!Microsoft P.P. vs. Prezi!
Microsoft P.P. vs. Prezi!MrNoodles
 
Matt Jones Software Evaluation
Matt Jones Software EvaluationMatt Jones Software Evaluation
Matt Jones Software EvaluationTexas Tech Class
 
10 Bright Ideas to make your Brightspace Courses More Accessible to Students ...
10 Bright Ideas to make your Brightspace Courses More Accessible to Students ...10 Bright Ideas to make your Brightspace Courses More Accessible to Students ...
10 Bright Ideas to make your Brightspace Courses More Accessible to Students ...D2L Barry
 
How to customise Joomla
How to customise JoomlaHow to customise Joomla
How to customise JoomlaTim Plummer
 
PowerShell crashcourse for Sharepoint admins
PowerShell crashcourse for Sharepoint adminsPowerShell crashcourse for Sharepoint admins
PowerShell crashcourse for Sharepoint adminsConcentrated Technology
 
Video Captions and Transcripts Made Easy, or at least easier
Video Captions and Transcripts Made Easy, or at least easierVideo Captions and Transcripts Made Easy, or at least easier
Video Captions and Transcripts Made Easy, or at least easierD2L Barry
 
How to Personalize Product Demos
How to Personalize Product DemosHow to Personalize Product Demos
How to Personalize Product DemosConsensus
 
Surviving agile remote teams - why remote work is a SKILL
Surviving agile remote teams - why remote work is a SKILLSurviving agile remote teams - why remote work is a SKILL
Surviving agile remote teams - why remote work is a SKILLJens Broos
 

La actualidad más candente (20)

PS scripting and modularization
PS scripting and modularizationPS scripting and modularization
PS scripting and modularization
 
Progressive enhancement
Progressive enhancementProgressive enhancement
Progressive enhancement
 
Building your first WordPress plugin
Building your first WordPress pluginBuilding your first WordPress plugin
Building your first WordPress plugin
 
2018 Fall - Teacher Technology with Naima Hill
2018 Fall - Teacher Technology with Naima Hill2018 Fall - Teacher Technology with Naima Hill
2018 Fall - Teacher Technology with Naima Hill
 
Presentationtools
PresentationtoolsPresentationtools
Presentationtools
 
Wordpress Questions & Answers
Wordpress Questions & AnswersWordpress Questions & Answers
Wordpress Questions & Answers
 
Style Guide Best Practices
Style Guide Best PracticesStyle Guide Best Practices
Style Guide Best Practices
 
Microsoft P.P. vs. Prezi!
Microsoft P.P. vs. Prezi!Microsoft P.P. vs. Prezi!
Microsoft P.P. vs. Prezi!
 
Matt Jones Software Evaluation
Matt Jones Software EvaluationMatt Jones Software Evaluation
Matt Jones Software Evaluation
 
10 Bright Ideas to make your Brightspace Courses More Accessible to Students ...
10 Bright Ideas to make your Brightspace Courses More Accessible to Students ...10 Bright Ideas to make your Brightspace Courses More Accessible to Students ...
10 Bright Ideas to make your Brightspace Courses More Accessible to Students ...
 
Question 6 Media
Question 6 MediaQuestion 6 Media
Question 6 Media
 
How to customise Joomla
How to customise JoomlaHow to customise Joomla
How to customise Joomla
 
PowerShell crashcourse for Sharepoint admins
PowerShell crashcourse for Sharepoint adminsPowerShell crashcourse for Sharepoint admins
PowerShell crashcourse for Sharepoint admins
 
Video Captions and Transcripts Made Easy, or at least easier
Video Captions and Transcripts Made Easy, or at least easierVideo Captions and Transcripts Made Easy, or at least easier
Video Captions and Transcripts Made Easy, or at least easier
 
PowerPoint's Best Kept Secret by @damonify
PowerPoint's Best Kept Secret by @damonifyPowerPoint's Best Kept Secret by @damonify
PowerPoint's Best Kept Secret by @damonify
 
Question 6
Question 6Question 6
Question 6
 
The Other Dev Tools
The Other Dev ToolsThe Other Dev Tools
The Other Dev Tools
 
How to Personalize Product Demos
How to Personalize Product DemosHow to Personalize Product Demos
How to Personalize Product Demos
 
Surviving agile remote teams - why remote work is a SKILL
Surviving agile remote teams - why remote work is a SKILLSurviving agile remote teams - why remote work is a SKILL
Surviving agile remote teams - why remote work is a SKILL
 
PowerShell custom properties
PowerShell custom propertiesPowerShell custom properties
PowerShell custom properties
 

Destacado

Managing enterprise with PowerShell remoting
Managing enterprise with PowerShell remotingManaging enterprise with PowerShell remoting
Managing enterprise with PowerShell remotingConcentrated Technology
 
Ive got a powershell secret
Ive got a powershell secretIve got a powershell secret
Ive got a powershell secretChris Conte
 
Automating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellAutomating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellConcentrated Technology
 
Basic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 sessionBasic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 sessionRob Dunn
 
PowerShell and the Future of Windows Automation
PowerShell and the Future of Windows AutomationPowerShell and the Future of Windows Automation
PowerShell and the Future of Windows AutomationConcentrated Technology
 
VDI-in-a-Box: Microsoft Desktop Virtualization for Smaller Businesses and Uses
VDI-in-a-Box:  Microsoft Desktop Virtualization for Smaller Businesses and UsesVDI-in-a-Box:  Microsoft Desktop Virtualization for Smaller Businesses and Uses
VDI-in-a-Box: Microsoft Desktop Virtualization for Smaller Businesses and UsesConcentrated Technology
 
Three cool cmdlets I wish PowerShell Had!
Three cool cmdlets I wish PowerShell Had!Three cool cmdlets I wish PowerShell Had!
Three cool cmdlets I wish PowerShell Had!Thomas Lee
 
Introduction to powershell
Introduction to powershellIntroduction to powershell
Introduction to powershellSalaudeen Rajack
 
PowerShell Functions
PowerShell FunctionsPowerShell Functions
PowerShell Functionsmikepfeiffer
 
Free tools for win server administration
Free tools for win server administrationFree tools for win server administration
Free tools for win server administrationConcentrated Technology
 

Destacado (18)

Managing enterprise with PowerShell remoting
Managing enterprise with PowerShell remotingManaging enterprise with PowerShell remoting
Managing enterprise with PowerShell remoting
 
Ha & drs gotcha's
Ha & drs gotcha'sHa & drs gotcha's
Ha & drs gotcha's
 
Implementing dr w. hyper v clustering
Implementing dr w. hyper v clusteringImplementing dr w. hyper v clustering
Implementing dr w. hyper v clustering
 
Managing SQLserver
Managing SQLserverManaging SQLserver
Managing SQLserver
 
Best free tools for w d a
Best free tools for w d aBest free tools for w d a
Best free tools for w d a
 
Ive got a powershell secret
Ive got a powershell secretIve got a powershell secret
Ive got a powershell secret
 
Ad disasters & how to prevent them
Ad disasters & how to prevent themAd disasters & how to prevent them
Ad disasters & how to prevent them
 
Server Core2
Server Core2Server Core2
Server Core2
 
Automating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellAutomating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShell
 
Best free tools for win database admin
Best free tools for win database adminBest free tools for win database admin
Best free tools for win database admin
 
No-script PowerShell v2
No-script PowerShell v2No-script PowerShell v2
No-script PowerShell v2
 
Basic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 sessionBasic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 session
 
PowerShell and the Future of Windows Automation
PowerShell and the Future of Windows AutomationPowerShell and the Future of Windows Automation
PowerShell and the Future of Windows Automation
 
VDI-in-a-Box: Microsoft Desktop Virtualization for Smaller Businesses and Uses
VDI-in-a-Box:  Microsoft Desktop Virtualization for Smaller Businesses and UsesVDI-in-a-Box:  Microsoft Desktop Virtualization for Smaller Businesses and Uses
VDI-in-a-Box: Microsoft Desktop Virtualization for Smaller Businesses and Uses
 
Three cool cmdlets I wish PowerShell Had!
Three cool cmdlets I wish PowerShell Had!Three cool cmdlets I wish PowerShell Had!
Three cool cmdlets I wish PowerShell Had!
 
Introduction to powershell
Introduction to powershellIntroduction to powershell
Introduction to powershell
 
PowerShell Functions
PowerShell FunctionsPowerShell Functions
PowerShell Functions
 
Free tools for win server administration
Free tools for win server administrationFree tools for win server administration
Free tools for win server administration
 

Similar a Meet Windows PowerShell

PowerShell Scripting and Modularization (TechMentor Fall 2011)
PowerShell Scripting and Modularization (TechMentor Fall 2011)PowerShell Scripting and Modularization (TechMentor Fall 2011)
PowerShell Scripting and Modularization (TechMentor Fall 2011)Concentrated Technology
 
Inventory your network and clients with PowerShell
Inventory your network and clients with PowerShellInventory your network and clients with PowerShell
Inventory your network and clients with PowerShellConcentrated Technology
 
NET Event - Migrating WinForm
NET Event - Migrating WinFormNET Event - Migrating WinForm
NET Event - Migrating WinFormRaffaele Garofalo
 
Using power shell to enhance efficiency of your operation
Using power shell to enhance efficiency of your operationUsing power shell to enhance efficiency of your operation
Using power shell to enhance efficiency of your operationMilton Goh
 
Introduction to PowerShell and getting started
Introduction to PowerShell and getting startedIntroduction to PowerShell and getting started
Introduction to PowerShell and getting startedRavikanth Chaganti
 
Contributing to Drupal
Contributing to DrupalContributing to Drupal
Contributing to DrupalChris Skene
 
Dev ops days berlin damien caro
Dev ops days berlin   damien caroDev ops days berlin   damien caro
Dev ops days berlin damien caroDamien Caro
 
Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08Jamie Oastler
 
PowerShell in the enterprise - TechED India 2011
PowerShell in the enterprise - TechED India 2011PowerShell in the enterprise - TechED India 2011
PowerShell in the enterprise - TechED India 2011Ravikanth Chaganti
 
Save Time With PowerCLI
Save Time With PowerCLISave Time With PowerCLI
Save Time With PowerCLIjonathanmedd
 
Sql Server & PowerShell
Sql Server & PowerShellSql Server & PowerShell
Sql Server & PowerShellAaron Shilo
 
Enterprise PHP (PHP London Conference 2008)
Enterprise PHP (PHP London Conference 2008)Enterprise PHP (PHP London Conference 2008)
Enterprise PHP (PHP London Conference 2008)Ivo Jansch
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentEvan Mullins
 
WordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopWordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopBrendan Sera-Shriar
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation Micky Metts
 
Deploying systems using AWS DevOps tools
Deploying systems using AWS DevOps toolsDeploying systems using AWS DevOps tools
Deploying systems using AWS DevOps toolsMassTLC
 

Similar a Meet Windows PowerShell (20)

PowerShell Scripting and Modularization (TechMentor Fall 2011)
PowerShell Scripting and Modularization (TechMentor Fall 2011)PowerShell Scripting and Modularization (TechMentor Fall 2011)
PowerShell Scripting and Modularization (TechMentor Fall 2011)
 
Inventory your network and clients with PowerShell
Inventory your network and clients with PowerShellInventory your network and clients with PowerShell
Inventory your network and clients with PowerShell
 
NET Event - Migrating WinForm
NET Event - Migrating WinFormNET Event - Migrating WinForm
NET Event - Migrating WinForm
 
Using power shell to enhance efficiency of your operation
Using power shell to enhance efficiency of your operationUsing power shell to enhance efficiency of your operation
Using power shell to enhance efficiency of your operation
 
Introduction to PowerShell and getting started
Introduction to PowerShell and getting startedIntroduction to PowerShell and getting started
Introduction to PowerShell and getting started
 
Contributing to Drupal
Contributing to DrupalContributing to Drupal
Contributing to Drupal
 
Dev ops days berlin damien caro
Dev ops days berlin   damien caroDev ops days berlin   damien caro
Dev ops days berlin damien caro
 
Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08
 
PowerShell in the enterprise - TechED India 2011
PowerShell in the enterprise - TechED India 2011PowerShell in the enterprise - TechED India 2011
PowerShell in the enterprise - TechED India 2011
 
INTERNSHIP REPORT
INTERNSHIP REPORTINTERNSHIP REPORT
INTERNSHIP REPORT
 
Save Time With PowerCLI
Save Time With PowerCLISave Time With PowerCLI
Save Time With PowerCLI
 
SharePoint Framework 101 (SPFx)
SharePoint Framework 101 (SPFx)SharePoint Framework 101 (SPFx)
SharePoint Framework 101 (SPFx)
 
Sql Server & PowerShell
Sql Server & PowerShellSql Server & PowerShell
Sql Server & PowerShell
 
Admin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShellAdmin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShell
 
Enterprise PHP (PHP London Conference 2008)
Enterprise PHP (PHP London Conference 2008)Enterprise PHP (PHP London Conference 2008)
Enterprise PHP (PHP London Conference 2008)
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
 
WordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopWordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute Workshop
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation
 
Word press in 60 minutes
Word press in 60 minutesWord press in 60 minutes
Word press in 60 minutes
 
Deploying systems using AWS DevOps tools
Deploying systems using AWS DevOps toolsDeploying systems using AWS DevOps tools
Deploying systems using AWS DevOps tools
 

Más de Concentrated Technology (17)

Wsus sample scripts
Wsus sample scriptsWsus sample scripts
Wsus sample scripts
 
Wsus best practices
Wsus best practicesWsus best practices
Wsus best practices
 
Virtualization today
Virtualization todayVirtualization today
Virtualization today
 
Virtualization auditing & security deck v1.0
Virtualization auditing & security deck v1.0Virtualization auditing & security deck v1.0
Virtualization auditing & security deck v1.0
 
Vdi in-a-box
Vdi in-a-boxVdi in-a-box
Vdi in-a-box
 
Top ESXi command line v2.0
Top ESXi command line v2.0Top ESXi command line v2.0
Top ESXi command line v2.0
 
Supporting SQLserver
Supporting SQLserverSupporting SQLserver
Supporting SQLserver
 
Securely connecting to apps over the internet using rds
Securely connecting to apps over the internet using rdsSecurely connecting to apps over the internet using rds
Securely connecting to apps over the internet using rds
 
Rapidly deploying software
Rapidly deploying softwareRapidly deploying software
Rapidly deploying software
 
Prepping software for w7 deployment
Prepping software for w7 deploymentPrepping software for w7 deployment
Prepping software for w7 deployment
 
PowerShell Remoting
PowerShell RemotingPowerShell Remoting
PowerShell Remoting
 
PowerShell crashcourse for sharepoint
PowerShell crashcourse for sharepointPowerShell crashcourse for sharepoint
PowerShell crashcourse for sharepoint
 
PowerShell crash course
PowerShell crash coursePowerShell crash course
PowerShell crash course
 
PowerShell and WMI
PowerShell and WMIPowerShell and WMI
PowerShell and WMI
 
Managing SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBAManaging SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBA
 
Iis implementation
Iis implementationIis implementation
Iis implementation
 
Hyper v r2 deep dive
Hyper v r2 deep diveHyper v r2 deep dive
Hyper v r2 deep dive
 

Último

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Último (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Meet Windows PowerShell

  • 1. Meet windows powershell! (no matter who you are)
  • 2. This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it within your own organization however you like. For more information on our company, including information on private classes and upcoming conference appearances, please visit our Web site, www.ConcentratedTech.com. For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgreg This work is copyright ©Concentrated Technology, LLC
  • 3. introductions Don Jones Senior Partner and Principal Technologist, Concentrated Technologywww.ConcentratedTech.com Windows PowerShell MVP Award Recipient Blogger at WindowsITPro.com Columnist for Microsoft TechNet Magazine and Redmond Magazinewww.TechNetMagazine.com • www.RedmondMag.com Windows PowerShell instructor and enthusiast
  • 4. Learn Windows PowerShell in a Month of Lunches Also available: Companion DVD and Web siteMoreLunches.com Get the book! You can order an autographed version when we’re done today, and it’ll be shipped right to you in about a week
  • 5. Memes we’ll cover What is PowerShell, and Why Should You Care? PowerShell: Command-Line Interface or Scripting Language? PowerShell Patterns and Practices(Learn these and you’ll never need another class) Turning Commands into Reusable Tools
  • 6. Our goal To expose you to many of PowerShell’s core patterns and practices With this information, you can start to “figure out” PowerShell largely on your own! This is definitely a “crash course,” so prepare your airbags for rapid deployment We will be covering a good amount of material very quickly – the goal is to give you an idea of what PowerShell does and how it does it, not to make you an expert If you’d like a somewhat slower-paced, methodical introduction… Learn Windows PowerShell in a Month of Lunches!Or consider an instructor-led class (MOC 10325A or have me on-site)
  • 7. Before we get started… Ask Questions! Challenge Assumptions! Share Your Experiences! This is going to mostly involve demos, not slides. You can get a recorded full-day workshop on DVD from http://ConcentratedTech.com/DVDGoPack.php if you miss anything or need a reminder If you lose any of the URLs, just visit ShellHub.com – I have them all listed there This deck is downloadable at ConcentratedTech.com/download
  • 8. What is Windows PowerShell, and Why Should You Care?
  • 9. The strategic outlook Microsoft produced PowerShell because of customer demand for better administrative automation capabilities. In other words, management cares about efficiency. Who knew? Learn PowerShell = Be Efficient = Keep Job Ignore PowerShell = Keep Clicking Through Dialog Boxes = Fries With That?
  • 10. System requirements Windows 7 / Windows Server 2008 R2 (incl Core): Installed by default Windows Vista / Windows Server 2008: Has v1; Needs v2 Windows XP / Windows Server 2003: Has nothing, Needs v2 Requires .NET Framework v2 (v3.51 is better; can live side by side with v4) To get PowerShell v2: Search for “Download Management Framework Core”
  • 11.
  • 12. Console and ISE in 32-bit form - window says “(x86”)Shell extensions can only run in a matching architecture (e.g., 32-bit extension runs in x86 shell). Don’t mess this up. Also make sure window title bar says “Administrator,” or you aren’t administrator.
  • 13. Is it a CLI? Or a Scripting Language? Hint: If you can run Dir | More,you can use PowerShell.
  • 14. Really, it’s this easy Get-Mailbox | Sort Size –descending | Select –first 100 | Move-Mailbox –Server FOO Ok, that isn’t the 100% syntax… but it’s close, and it gives you an idea of what PowerShell is. Sure, you can treat it like a VBScript replacement… but isn’t this much more cool? The tricky bit is that different audiences tend to approach PowerShell in different ways. Scripters use it to write scripts. Devs use it like “C# lite.” Admins shouldn’t be distracted by those approaches if they’re not appropriate – use it like a shell.
  • 15. Let the demos begin Enough with the slides. Let’s do this. Start thinking: What would you like to be able to do in Windows PowerShell?Ask me how – I’ll at least tell you, and if I can, I’ll show you. Right now.
  • 16. Patterns and practices Finding commands by using Help and Get-Command Loading new commands (extending the shell) Cmdlet naming conventions Why (almost) everything is a disk drive Parameters and Interpreting the Help Core cmdlets: Sorting, Filtering, Selecting, and More Pipeline Parameter Binding (ByValue and ByPropertyName) Working with Windows Management Instrumentation Adding custom columns (properties) Ways of feeding computer names to a –computerName parameter
  • 17. Building reusable tools While cmdlets are written in C# or Visual Basic… …you can do something awfully close in an advanced function using PowerShell’s scripting language Let’s take a fairly simple pair of commands and turn them into the ultimate re-usable tool, all from scratch. We’ll inventory OS, service back, and BIOS information from multiple computers Then we’ll do it with a command that clears the application log on one or more computers – and implements some more PowerShell patterns and best practices
  • 18. summary Start learning PowerShell. Find a task to automate and dive right in. Focus on patterns and practices to teach yourself. We really did cover a lot of stuff, didn’t we?
  • 19. Thank you! Thanks to all the local folks who helped make this seminar happen… …and thanks to Microsoft IT Pro Evangelist Harold Wong, who had the idea! Remember, you can get this deck at ConcentratedTech.com/download Any last questions????
  • 20. Learn Windows PowerShell in a Month of Lunches Also available: Companion DVD and Web siteMoreLunches.com Remember! You can order an autographed version today, and it’ll be shipped right to you in about a week!
  • 21. My contact information Q&A: http://connect.ConcentratedTech.com Twitter: @concentrateddon LinkedIn: http://linkedin.com/in/concentratedDon Or send a text message containing DONJ to 50500 – you’ll get a reply with my contact info and a vCard link Private On-Site Training Available – contact sales@concentratedtech.com.Flat-rate pricing includes travel expenses (3-5 day classes) Get this deck from ConcentratedTech.com/download Look for “Jones-2011WestCoastTour.zip”
  • 22. Go forth and shell! (before v3 comes out and adds a bunch of stuff)
  • 23. This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it within your own organization however you like. For more information on our company, including information on private classes and upcoming conference appearances, please visit our Web site, www.ConcentratedTech.com. For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgreg This work is copyright ©Concentrated Technology, LLC