Practicing PowerShell and using it in your test labs is one thing, using PowerShell in your production environment all together. In this video you will learn some ways PowerShell helps you mitigate risk using WhatIf and Confirm.
- [Voiceover] So you're probably thinking right now…"Matt, I've got the hang of this PowerShell stuff…and I'm ready to start writing my commandlets,…I'm ready, I've been working on my test environment,…they all worked great."…You're gonna get to a point where you run your…first PowerShell script inside a reduction environment…and I guarantee you,…you're gonna have that first script all ready to go,…it's all fired up, commandlets are all in order,…you know it worked in tests…and your hand is gonna hover over the word Enter.…You're not sure what's gonna happen,…you're gonna have anxiety.…PowerShell can cause anxiety.…So, let me actually show you a commandlet here.…
And I'll recommend,…don't run what I'm about ready to show you,…but let's talk about what this would do…inside of our environment.…So, I'm gonna say Get-Service…and bring up my handy-dandy pipe…and type in Stop-Service.…I know what you're thinking.…You might be sitting on the edge of your chairs…as you're watch this video, going, "Matt's not really…going to push the button, is he?…
Updated
2/14/2020Released
5/21/2016Matt then dives into PowerShell's functions and What If statements, working with output, and coding in the Integrated Scripting Environment (ISE). The course wraps up with some tips on using PowerShell for both on-premises and cloud deployments involving Office 365 and Azure.
- Identify the purpose of a delimiter.
- Recognize the tools needed to build a command using the ISE.
- Identify the options to use when running Get-Service from a remote computer.
- Recognize the capabilities of four cmdlets.
- Explain how to transfer aliases from a file into PowerShell.
- Determine if a cmdlet will generate an error when executed.
Share this video
Embed this video
Video: Relieving anxiety with -WhatIf and -Confirm