header image

Archive for August, 2011

Windows firewall

Posted by: | August 31, 2011 | 1 Comment |

I normally leave the Windows firewall enabled in my test environment. It ensures I don’t forget it when testing. My recent session for the TechEd:Australia PowerShell conference involved me disabling various firewall rules on the subject machine to set up part of the demo. I had to use the GUI tools to do this. I’’ve […]

under: COM, Firewall, PowerShellV2

UK User Group sessions

Posted by: | August 31, 2011 | No Comment |

This is the provisional list of meetings for the rest of the year   20 September Aleksandar Nikolic  7.30pm BST 25 October  WSMAN and WMI  – this is an extended version of the talk I gave over Live Meeting to the TechEd Australia PowerShell conference 7.30pm GMT 22 November Jonathan Medd “What’s new in PowerCLI […]

under: PowerShell User Group

I will be presenting the above webcast next week. Date: Wednesday, September 7, 2011 Time: 12:00 PM – 1:00 PM CST   Thats 6pm UK time   Register for the web cast at http://powershell.com/cs/media/p/11256.aspx

under: PowerShell and WMI

Testing services

Posted by: | August 30, 2011 | No Comment |

A forum question about testing services and if they weren’t running got me thinking. I created an function to solve the question function test-service{ [CmdletBinding(SupportsShouldProcess=$true)] param ( [parameter(Position=0, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [Alias("CN", "ComputerName")] [string]$computer="." , [string]$service="BITS" , [parameter(Mandatory=$true)] [string]$file ) BEGIN { if (!(Test-Path -Path $file)){Throw "log file not found"} } PROCESS { $result = Get-WmiObject […]

under: PowerShell and WMI

Forum question wanted to take a list of computer names in a csv Using the Quest cmdlets it becomes Import-Csv computers2.csv | foreach { $comp = Get-QADComputer -Name $($_.Name) if ($comp) {$location = $comp.DN} else {$location = "Does NOT exist in AD"} New-Object -TypeName Psobject -Property @{ Name = $_.Name Location = $location } } […]

under: PowerShell and Active Directory

PowerShell and WMI is Manning’s deal of the day – 50% off print or e-book.   The deal also extends to PowerShell in Practice and PowerShell in Action 2E See www.manning.com for details

under: Books, PowerShellV2

The TechEd Australia PowerShell conference starts tomorrow at midnight UK time (9am in Australia).  Details from http://msmvps.com/blogs/richardsiddaway/archive/2011/08/22/teched-australia-powershell-conference.aspx   I will be presenting on WSMAN and WMI

under: PowerShellV2

Network Adapter vendors

Posted by: | August 28, 2011 | No Comment |

The NDis WMI classes expose some information about the vendors that produce the various adapters in our systems function get-adaptervendor { param( [string]$computer="." ) Get-WmiObject -Namespace root\wmi -Class MSNdis_CoVendorDescription ` -ComputerName $computer | foreach { $id = Get-WmiObject -Namespace root\wmi ` -Class MSNdis_CoVendorId -ComputerName $computer ` -Filter "InstanceName=’$($_.InstanceName)’" New-Object -TypeName PSobject -Property @{ Computer = […]

under: Networking, PowerShell and WMI

Msndis class

Posted by: | August 27, 2011 | No Comment |

The MSNdis class from the root\wmi namespace calls the MSNdis_CoHardwareStatus and MSNdis_CoDriverVersion classes. On my Windows 7 system it tries to call something else but I get a “Get-WmiObject : Not supported” error. Neither of these classes seems to have much in the way of documentation available. Rather than calling MSNdis and getting a lot […]

under: Networking, PowerShell and WMI

I was notified last night that my submission to the Deep Dive was successful and I will be presenting. There will be a good number of PowerShell MVPs attending. This will be the PowerShell event of the year in Europe. The one in April in the USA was brilliant – this will be at least […]

under: Deep Dive, PowerShell original

Older Posts »