Monthly Archives: December 2011

Formatting file listings–the other way

Following on from the previous post I was asked if the bit where we set the case on the file names and extension could be done in a select statement. Simple answer is yes Get-ChildItem | where {-not $_.PSIsContainer} | … Continue reading

Posted in File system, Powershell Basics | Leave a comment

Formatting file listings

A question was left asking about displaying a file listing with the full name in upper case and the extension in lower case. Its one line of PowerShell Get-ChildItem | where {-not $_.PSIsContainer} | sort Fullname | Format-Table @{N=”FullName”; E={$($_.Fullname.ToUpper())}}, … Continue reading

Posted in File system, Powershell Basics | 2 Comments

Selecting Property order

If you run Get-WmiObject -Class Win32_ComputerSystem you get a few properties displayed Domain              : WORKGROUP Manufacturer        : Hewlett-Packard Model               : HP G60 Notebook PC Name                : RSLAPTOP01 PrimaryOwnerName    : Richard TotalPhysicalMemory : 2951139328   Now if you want all properties … Continue reading

Posted in Powershell Basics | Leave a comment

PowerShell workflows

Just as remoting was viewed as the biggest gain in PowerShell v2 it looks like PowerShell workflows will be one of the biggest features on PowerShell v3. Some examples and explanation are available from Enjoy

Posted in PowerShell V3 | Leave a comment

Recordings, Slides and Demo scripts

Here are the recordings, slides and demo scripts from last weeks two Live Meetings. Introduction to WMI   WSMAN, WMI and CIM   Down load and unzip to find all items

Posted in PowerShell and WMI, PowerShell User Group | Leave a comment

WMI LIKEs Wildcards

You may hear or read that WMI can’t accept wildcards. WRONG WMI accepts wildcards but not the ones you might expect.   Consider Get-Process p* This gets all the process that begin with the letter p To do something similar … Continue reading

Posted in PowerShell and WMI | 1 Comment

International WMI week

As far as I am concerned this is International WMI week.  I am delivering a Live Meeting session to the Corpus Christi (Texas) PowerShell group on Tuesday – An Introduction to WMI & PowerShell then on Thursday I am delivering … Continue reading

Posted in PowerShell and WMI | Leave a comment