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 http://blogs.msdn.com/b/powershell/archive/2011/12/22/another-holiday-gift-from-the-powershell-team-powershell-3-0-ctp2-getting-started-with-windows-powershell-workflow.aspx 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 https://skydrive.live.com/?cid=43cfa46a74cf3e96#cid=43CFA46A74CF3E96&id=43CFA46A74CF3E96%212931   WSMAN, WMI and CIM https://skydrive.live.com/?cid=43cfa46a74cf3e96#cid=43CFA46A74CF3E96&id=43CFA46A74CF3E96%212933   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

Happy Birthday PowerShell

With all the things happening in the last month – including the release of PowerShell v3 CTP 2 – one thing that seems to have been missed is that PowerShell is 5 years old! Yes – its just over 5 … Continue reading

Posted in Powershell | Leave a comment

WMI, WSMAN, CIM and Authentication pt II

Last time we saw that the WMI cmdlets have an Authentication parameter that uses DCOM authentication. It is possible to ignore this Authentication need if the WSMAN or CIM (PS v3 CTP 2) cmdlets are used. If you look at … Continue reading

Posted in PowerShell and WMI | Leave a comment

WMI, WSMAN, CIM and Authentication

Authentication parameters in WMI, WSMAN and the new CIM cmdlets can be confusing. The PowerShell WMI cmdlets have an Authentication parameter that uses DCOM authentication. Using the Authentication parameter with the WMI cmdlets was explained herehttp://msmvps.com/blogs/richardsiddaway/archive/2011/08/04/authentication-impersonation-and-privileges.aspx   This is not … Continue reading

Posted in PowerShell and WMI | Leave a comment