Leadership optimize

Video: Five must-know PowerShell commands for Windows administrators

Bill Detwiler shows you how to use the Get-Help, Set-ExecutionPolicy, Get-ExecutionPolicy, Get-Service, and ConvertTo-HTML PowerShell commands.
Over the last few years, Microsoft has tried to make PowerShell the Windows management tool of choice. As a Windows administrator, you need to be familiar with the basics of using PowerShell. And during this week's TR Dojo episode, I show you how to use the following five basic PowerShell commands:

  1. Get-Help
  2. Set-ExecutionPolicy
  3. Get-ExecutionPolicy
  4. Get-Service
  5. ConvertTo-HTML

Check out the following links for more PowerShell resources:

For those who prefer text to video, click the View Transcript link below the video player windows or check out Brien Posey's article, "10 PowerShell commands every Windows admin should know," on which this video is based.

You can also sign up to receive the latest TR Dojo lessons through one or more of the following methods:

About

Bill Detwiler is Managing Editor of TechRepublic and Tech Pro Research and the host of Cracking Open, CNET and TechRepublic's popular online show. Prior to joining TechRepublic in 2000, Bill was an IT manager, database administrator, and desktop supp...

5 comments
pancras
pancras

More and more i just skip enties where M$ is used. It's always complaining complaining by whinoes who feel they are misgarded. Yeah its a company and yeah they are in IT to make money and yeah they can only make money by listening to the customer

Spitfire_Sysop
Spitfire_Sysop

If M$ wants to improve the shell experience they should use things that work. Things that people are familiar with. I invision a shell that will take 100% of the commands that worked with DOS. It would also be POSIX compliant. They did do a good job of mapping "del" and "rm" to the same command. This is the idea. Make it so you could run a BASH script just as easily as a BAT file. My biggest complaint with the crazy long form commands they pull from the proverbial arse is a lack of consistancy. For example sometimes different words are separated by a hyphen "Remove-Item" and other times the words are jammed together like "ThisCommand-IsWayTooLong" with no solid pattern that I have seen. What a cludge.

Bill Detwiler
Bill Detwiler

In this week's TR Dojo episode, I show you how to use the Get-Help, Set-ExecutionPolicy, Get-ExecutionPolicy, Get-Service, and ConvertTo-HTML PowerShell commands. In June 2010, I asked TR member if they used PowerShell to manager their Windows server and desktops. A whopping 81 percent said "no". June 2010 PowerShell poll: http://www.techrepublic.com/blog/itdojo/enable-and-disable-remote-desktop-on-a-windows-server/1864 Nearly a year later, I'm interested to know if the results from my earlier poll have changed. Take the new poll and let me know: http://www.techrepublic.com/blog/itdojo/video-five-must-know-powershell-commands-for-windows-administrators/2577

Castor09
Castor09

I agree. Why they threw away all the DOS commands is beyond me, and there is also no real pattern in their commands, verb-subject | pipe-myself | becauseit-isnotworking I don't like powershell, but MS is probably going to force it on us anyway.... *sigh*

colintyrrell
colintyrrell

I see the percentage of 'No' is still high, but dropping. I don't use it; but videos like this can help correct the imbalance/ignorance. Good stuff