Wednesday, April 24, 2013

The Scripting Games are about to start!

A few hours left to the 2013 Powershell Scripting Games! I am very excited because for the first time I will be taking part in such a competition. In the meanwhile, to stay focused on my objective of learning as much as possible, I am browsing the Net and reading some pretty interesting resources.


Heres' a list:
  • The two first posts by Jeffery Hicks about the evolution of Powershell toward CIM and WSMAN (post 1, post2). 
  • An article of The Scripting Guy about WMI classes related to disks (see here).
  • Another post by Ed Wilson on using Get-ADComputer (see here)
  • A post by jeff Wouters about Compare-Object (see here)
  • A post by Richard Siddaway on updating the Help for V3 (see here)
  • ... and last but not least a post by Bartek Bielawski on $Matches automatic variable

In the meantime I have just downloaded the Windows Management Framework 3  for one of my Windows 7 x64 SP1 (6.1.7601) computers and when I tried to run it quit saying 'The update is not applicable to your computer'.

The problem here is that I though I had .NET 4.0 installed on that computer and I was wrong. When I run the WMI query to verify that .NET 4 was installed I got the following result and I thought it was good:
Get-WmiObject Win32_Product | where { $_.name -match '.NET Framework 4'}

Name              : Microsoft .NET Framework 4 Client Profile
Vendor            : Microsoft Corporation
Version           : 4.0.30319
Caption           : Microsoft .NET Framework 4 Client Profile
Unfortunately having this is not enough. For reference, after I installed the real Full version of the .NET 4 framework, the previous query returned:
Get-WmiObject Win32_Product |where { $_.name -match '.NET Framework 4'}

Name              : Microsoft .NET Framework 4 Extended
Vendor            : Microsoft Corporation
Version           : 4.0.30319
Caption           : Microsoft .NET Framework 4 Extended

Name              : Microsoft .NET Framework 4 Client Profile
Vendor            : Microsoft Corporation
Version           : 4.0.30319
Caption           : Microsoft .NET Framework 4 Client Profile
Much better!

Ok, the Games are coming in about 8 hours. Go and register if you want to compare your knowledge to other Powershell aficionados. This is the link to the registration form. Tomorrow it will be too late!

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...