Tag Archives: cmdlet

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 … Continue reading

Posted in PowerShell, Training | Tagged , , , , , , , , | Comments Off

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 … Continue reading

Posted in PowerShell, Scripting | Tagged , | 2 Comments

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 … Continue reading

Posted in PowerShell, Scripting | Tagged , | 3 Comments

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 … Continue reading

Posted in PowerShell, Scripting | Tagged | 8 Comments

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 … Continue reading

Posted in PowerShell, Scripting | Tagged | Comments Off