PowerShell Re-Introduction Part Five: PowerShell Rookie Review
Part One: More PowerShell: A Re-Introduction If You’re Starting from Scratch
Part Two: PowerShell Re-Introduction: Part Two
Part Three: PowerShell Re-Introduction Part Three: Script Prerequisites
Part Four: PowerShell Re-Introduction Part Four: Our First Script
So we’ve got cmdlets and script basics nailed down. We still have to look at a couple of things to shake off the “rookie” label.
For example, we might think we need a cheat sheet like this. And, of course, PowerShell.Com is the Bomb. They got this wicked cool example of adding a clock to your PowerShell console here.
So while we need to review all the details we’ve covered, let’s take a minute to look at what our friends have done that might help us extend our knowledge into more valuable spaces.
First, here’s a great video looking at PowerShell Maturity from Idera.Com and Tobias Weltner:
http://www.idera.com/Events/RegisterWC.aspx?DoThis=TY&EventID=289
And here’s some more help with filters and pipes:
http://www.computerperformance.co.uk/powershell/powershell_wmi_filter.htm
For example try this one:
Help Get-EventLog
What we see here is that we can go to a remote computer and get the system log and check the errors.
Finally, in a domain it’s less complicated because console and remote computer can share user credentials, but for non-domain computers or computers in different domains, we need to learn how to log in remotely. To help with that, we have this from TechNet:
http://technet.microsoft.com/en-us/magazine/ff700227.aspx
What we see here is that running PowerShell commands that target remote computers requires two things:
- The remote target must be running the WinRM service.
- You have to run PowerShell as an administrator.
Most of this is taken care of using Enable-PSRemoting on the target. Of course, you get a lot smarter if you run:
Help Enable-PSRemoting
Then, we get the money pitch from the Scripting Guy: Here‘s the fastball that explains how to log into a remote machine using a specific user ID and password.
-robot
Tags: