Yesterday I posted an article about getting the online url for a cmdlet help topic. Today I want to demonstrate how we might take advantage of this piece of information. Since the link is already in the form of a URL, wouldn’t it make sense to put this in an HTML document? At first glance,…
Tag: cmdlet
Thursday Treat – A PowerShell Word Find Game
Now for something completely different but hopefully a little fun. I’m a big fan of word games and puzzles. Tim Bolton has assembled a few PowerShell themed crosswords, which you can find on his blog. I’ve always like word finds so I put together a pretty simple one using 16 common PowerShell cmdlet names. You…
Friday the 13 Script Blocks
In celebration of Friday the 13th and to help ward off any triskaidekaphobia I thought I’d offer up 13 PowerShell scriptblocks. These are scriptblocks that might solve a legitimate business need like finding how long a server has been running to the more mercurial such as how many hours before I can go home. A…
Order Managing Active Directory with Windows PowerShell: TFM – Finally!
Yes, its finally true. You can finally get your hands on Managing Active Directory with Windows PowerShell: TFM. The book is being printed so you can get your copy today. You can order it today at ScriptingOutpost.com in both print and ebook format. Or if you prefer the best of both worlds get both as…
Online PowerShell Training
Time is running out to register for SAPIEN Technologies’ online PowerShell Fundamentals training. The first class starts June 17. The class is essentially self-study with materials supplied by SAPIEN including an e-book version of Windows PowerShell: TFM 2nd ed. I’ll meet online twice a week via Webex with students to review the material. Students will…
Techmentor San Francisco 2008
I finished up my slide decks last week for the first Techmentor conference of the year in San Francisco (March 30 -April 3). If you’ve never been to a Techmentor conference you’re missing a great opportunity to hear and see your favorite IT speakers. Plus it’s a lot of fun to meet your peers, swap…
PowerShell Process Uptime
Not too long ago, I wrote an MCPMag Tip Sheet column on using the pipeline in PowerShell. I showed how you could get the start time of a specified service: $svcname=Read-Host “Enter a service name” ; get-process | where {$_.id -eq (get-wmiobject win32_service | where {$_.name -eq $svcname}).ProcessID} | select -property StartTime We can take…
More Fun with Get-Content
A few followups on my recent post about Get-Content. First, you can also use the CAT alias if you’re used to the Unix world, or TYPE in place of get-content. The Get-Content cmdlet does have a parameter called -totalcount that will return the specified number of lines from the beginning of the file: cat c:\boot.ini…
PowerShell Get Content
One slick trick you can do in PowerShell with text files that’s difficult to accomplish without extra tools is to display sections of text files without showing the entire file. When you use the Get-Content cmdlet, the resulting content is treated as an array of strings. This means you can simply specify the line you…
Powershell Help Examples
It may seem like a little thing, but the Get-Help cmdlet in PowerShell has some features you may not be aware of. I’m always using the -full parameter to see all the help information, primarily so I can see the examples. Well Get-Help has a -examples switch which won’t display syntax help, but it will…