Monthly Archives: September 2011

WMI provider and MOF file

WMI is installed as a series of providers. The information on creating the classes comes from MOF files. I was recently asked about a problem with a specific class & could it be restored – in this case it was … Continue reading

Posted in PowerShell and WMI | Leave a comment

Proxy function for Get-WmiObject

There are many people who don’t like to see the WMI system properties PS> Get-WmiObject -Class Win32_OperatingSystem | select __* __GENUS          : 2__CLASS          : Win32_OperatingSystem__SUPERCLASS     : CIM_OperatingSystem__DYNASTY        : CIM_ManagedSystemElement__RELPATH        : Win32_OperatingSystem=@__PROPERTY_COUNT : 63__DERIVATION     : {CIM_OperatingSystem, CIM_LogicalElement, CIM_ManagedSystemElement}__SERVER         : RSLAPTOP01__NAMESPACE      : … Continue reading

Posted in PowerShell and WMI | Leave a comment

PowerShell 3 and DHCP 2: scopes

In this post http://msmvps.com/blogs/richardsiddaway/archive/2011/09/20/powershell-and-dhcp-1-servers.aspx I showed how we could discover DHCP server information Scopes can be discovered Get-DhcpServerv4Scope -ComputerName server02  -ScopeId 10.10.54.0 Now how do we create a scope? We use Add-DhcpServerv4Scope. Now shouldn’t that have been New-DhcpServerv4Scope? Never the … Continue reading

Posted in DHCP, PowerShell V3, Windows 8 Server | Leave a comment

PowerShell remoting and the customisation of remoting end points–recording

The recording of Aleksandar’s session for the UK user group http://msmvps.com/blogs/richardsiddaway/archive/2011/09/08/powershell-user-group-20-september-2011.aspx entitled PowerShell remoting and the customisation of remoting end points Is available from https://skydrive.live.com/?cid=43cfa46a74cf3e96#!/?cid=43cfa46a74cf3e96&sc=documents&uc=1&id=43CFA46A74CF3E96%212927   The slides and demo scripts are included in the zip file. The next meeting … Continue reading

Posted in PowerShell User Group | 3 Comments

select-object quirk

I was working with the new CIM cmdlets in PowerShell 3 CTP and mistyped a command (as I thought) Get-Cimclass win32_operatingsystem | select -ExpandProperty methods | select -f 1 select -ExpandProperty Qualifiers   My surprise was because of the two … Continue reading

Posted in PowerShell V2, PowerShell V3 | Leave a comment

PowerShell Deep Dive speakers

Some more sessions have been announced for the Deep Dive http://www.theexpertsconference.com/europe/2011/powershell-deep-dive/session-abstracts/ The speaker line up includes: Aleksandar Nikolic Shay Levy Kirk Munro Dmitry Sotnikov Jeffery Hicks James Brundage Tobias Weltner Brandon Shell James O’Neill Ravi Chaganti Me   There will … Continue reading

Posted in Deep Dive, Powershell, Powershell Basics, PowerShell V2, PowerShell V3 | 1 Comment

PowerShell and DHCP: 1 – servers

Remember that yesterday I loaded the RSAT tools on to my Windows 8 server instance. This includes a PowerShell module that auto loads – like all Windows 8 modules on the PS module path Start by looking at the GET … Continue reading

Posted in PowerShell V3, Windows 8 Server | 2 Comments