September 2, 2010 12:26 PM
Posted by: Richard Siddaway
PowerShell v2,
User Group
When: Tuesday, Sep 14, 2010 8:30 PM (BST)
Where: Virtual
*~*~*~*~*~*~*~*~*~*
Jonathan Medd - PowerShell MVP - explains the new remoting features in PowerShell 2.0
Richard Siddaway has invited you to attend an online meeting using Live Meeting.
...
August 31, 2010 2:03 PM
Posted by: Richard Siddaway
Network,
PowerShell v2
We have seen how to query WMI for information on network adapters. But what we didn’t get was information about the addresses allocated to the NICs. We need a different class for that
Get-WmiObject -Class Win32_NetworkAdapterConfiguration
However this...
August 30, 2010 3:39 AM
Posted by: Richard Siddaway
Books,
PowerShell v2Today Manning are offering 50% their best selling books including PowerShell in Practice.
See www.manning.com to order
August 28, 2010 5:07 AM
Posted by: Richard Siddaway
PowerShell v2,
WMI
Get-WmiObject -Class Win32_NetworkAdapter
will show us a list of network adapters. We can narrow this down to a specific adapter
Get-WmiObject -Class Win32_NetworkAdapter -Filter "DeviceId='11'" | fl *
What if we know that there is a...
August 26, 2010 3:14 PM
Posted by: Richard Siddaway
Network,
PowerShell v2Ok – just to help out we can do this to see the useful information we need to complete our IPconfig listing
Get-WmiObject -Class Win32_NetworkAdapter -Filter "NetEnabled='$true'" | Format-List NetConnectionID, Description, MACAddress, Speed
This gets a display like...
August 26, 2010 1:09 PM
Posted by: Richard Siddaway
Network,
PowerShell v2Network adapters are a fundamental part of our system – without them our networks grind to a halt because the machines can’t communicate. We have a good tool in ipconfig for looking at NIC information but we can extend this using PowerShell and WMI.
Let’s start by seeing what is...
August 23, 2010 12:39 PM
Posted by: Richard Siddaway
Operating System,
PowerShell v2
Working with WMI dates can be awkward sometimes. For instance if we look at the last boot up time of our system
$machine = Get-WmiObject -Class Win32_OperatingSystem
PS> $machine.LastBootUpTime
20100823183135.359600+060
We get a non-intuitive...
August 10, 2010 1:13 PM
Posted by: Richard Siddaway
PowerShell v2,
WMIit seems that the WMI provider I mentioned last time is effectively discontinued in Office 2010.
I’ll see if I can get a machine set up with Office 2007 to investigate further
August 9, 2010 1:55 PM
Posted by: Richard Siddaway
PowerShell v2If you have Office 2010 installed you should find an msapps12 namespace on your machine.
The classes exposed by this namespace can be found with
Get-WmiObject -Namespace root\msapps12 –List
There are a lot of them! The classes seem to be broken down by Office...