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 […]
Archive for August, 2011
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 […]
Webcast: Get the most from PowerShell and WMI
Posted by: richardsiddaway | August 30, 2011 | No Comment |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
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 […]
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 } } […]
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
Reminder: TechEd Australia PowerShell conference
Posted by: richardsiddaway | August 28, 2011 | No Comment |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
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 = […]
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 […]
European PowerShell Deep Dive–presenting
Posted by: richardsiddaway | August 26, 2011 | No Comment |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 […]
Categories
- .NET
- Active Directory
- Architecture
- Azure
- Bash
- BITS
- Books
- CDXML
- CIM
- Cloud
- COM
- Containers
- Deep Dive
- Desired State Configuration
- DevOps
- DHCP
- DNS
- DSC
- European Summit
- Events
- Exchange
- File System
- Firewall
- General
- General IT Matters
- Hyper-V
- IIS
- Infrastructure
- IT Community
- IT Security
- Learning PowerShell
- Linux
- Math
- Microsoft
- Modules
- Nano Server
- Networking
- Office 2010
- Office 2013
- Open Source
- Opinion
- Outlook
- Philosophy
- PowerShell
- PowerShell 7
- PowerShell and .NET
- PowerShell and Active Directory
- PowerShell and CIM
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- PowerShell Basics
- PowerShell original
- PowerShell Summit
- PowerShell User Group
- PowerShell User Group 2
- PowerShell v2
- PowerShell V3
- PowerShell v4
- PowerShell v5
- PowerShell v6
- PowerShell.org
- PowerShellGet
- PowerShellV2
- PSAM
- Rant
- Registry
- Scripting
- Scripting Games
- Scripting Games 2104
- Security
- SQL Server
- Storage
- Strings
- Summit
- Technology
- Uncategorized
- Virtualization
- Windows 10
- Windows 2012 R2
- Windows 7
- Windows 8
- Windows 8 Server
- Windows 8.1
- Windows Server
- Windows server 1709
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
- WMFv5
- WPF
- WSUS