PowerShell Team

Automating the world one-liner at a time…

Exploring WMI with PowerShell V2

I was messing around with my son’s computer today trying to figure out why one of his programs wouldn’t work.  I was going to use ProcMon to monitor the processes but wasn’t sure what the processes where.  So first I had to figure out what processes were getting started when I ran his program.  I guessed that there was a ...

PowerShell Interview

I recently did a pretty wide ranging interview for TechNet with Osama Sajid.  They broke it up into 3 sections.  You can find the first section (along with pointers to the others) HERE.  In part 3 I talk about the idea of Integrated Lifetime Earnings and how this is affected by PowerShell.  I think this is a pretty ...

Plus (+) in .NET Class Names

On one of our internal discussion aliases, someone asked why do we need a plus (+) the class name for FTP? Typically, you would expect this to work [Net.WebRequestMethods.Ftp], but it doesn’t. The solution is [Net.WebRequestMethods+Ftp] and it has something to do with nested classes In C#, a nested class looks something like public class ...

Get-SystemUptime and Working with the WMI Date Format

I just got a quick ping from someone at work for an uptime script.  I checked in WMI with by using Search-WmiHelp to find a wmi class that had an uptime property (Win32_OperatingSystem has LastBootUpTime).  While I had found the uptime property I needed, I was left with another pretty common problem that people hit (in VBScript and ...

PrimalForms 2009 – From SAPIEN

SAPIEN Technologies ,makers of PrimalScripts have added another cool product for Windows PowerShell users - PrimalForms. Check it out http://www.primaltools.com/products/info.asp?p=PrimalForms Thanks Osama Sajid, Program Manager...