Category Archives: CDXML

DiskPart and PowerShell–part 1

An attendee at the Summit made the statement that the DiskPart utility didn’t have any equivalent in PowerShell. That’s not strictly true as the storage module provides a lot of functionality that maps to diskpart functionality. The module contents include: … Continue reading

Posted in CDXML, Powershell, PowerShell and CIM | Leave a comment

Get-SupportedFileSystems

I stumbled on the Get-SupportedFileSystems cmdlet today. Its part of the Storage module and is defined as a function. Digging a bit further its from a CDXML module based on a CIM class. But which CDXML file contains the definition? … Continue reading

Posted in CDXML, CIM, Powershell, PowerShell and CIM | Leave a comment

Manning Deal of the Day–31 August 2015

Deal of the Day August 31: Half off my book Learn Active Directory Management in a Month of Lunches. Use code dotd083115au at https://manning.com/books/learn-active-directory-management-in-a-month-of-lunches Learn ConfigMgr 2012 in a Month of Lunches and Learn SQL Server Administration in a Month … Continue reading

Posted in CDXML, PowerShell and Active Directory | Leave a comment

WMF 5.0 April 2015 preview – – software inventory logging

A software inventory module is now included with the April 2015 WMF 5.0 preview £> Get-Command -Module SoftwareInventoryLogging | select Name Name—-Get-SilComputerGet-SilComputerIdentityGet-SilDataGet-SilLoggingGet-SilSoftwareGet-SilUalAccessGet-SilWindowsUpdatePublish-SilDataSet-SilLoggingStart-SilLoggingStop-SilLogging Windows updates are always a good place to start poking into your systems £> Get-Command Get-SilWindowsUpdate -Syntax Get-SilWindowsUpdate … Continue reading

Posted in CDXML, CIM, PowerShell v5, WMFv5 | Leave a comment

Scripting Guy CDXML series finished

My CDXML series on the Scripting Guy blog finished today.  The 4 articles are: http://blogs.technet.com/b/heyscriptingguy/archive/2015/02/02/registry-cmdlets-manage-the-registry.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2015/02/03/registry-cmdlets-first-steps-with-cdxml.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2015/02/04/registry-cmdlets-advanced-cdxml.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2015/02/05/registry-cmdlets-using-advanced-cdxml.aspx

Posted in CDXML, CIM, PowerShell and CIM, PowerShell and WMI | Leave a comment

Scripting Guy CDXML series

Today starts a four part series I’ve written for the Scripting Guy blog on using CDXML to create a module to work with the registry.  Don’t know what CDXML is – you will when you’ve read the series The first … Continue reading

Posted in CDXML, CIM, PowerShell and CIM, Registry | Leave a comment

CDXML: Cim jobs

One of the freebies you get when using CDXML is that the cmdlets you create automatically get the –AsJob parameter. I was thinking about jobs in general and realised that I didn’t know how CIM jobs were run. To put … Continue reading

Posted in CDXML, CIM, PowerShell V3, PowerShell v4 | Leave a comment

CDXML–NetworkAdapterConfiguration–Search on Index

The Win32_NetworkAdapterConfiguration class has an Index and an InterfaceIndex property. Both are suitable search properties. The take an unsigned integer as their value – leading to this addition to the CDXML file: <Property PropertyName=”Index”> <Type PSType = “System.UInt32″/><RegularQuery >    … Continue reading

Posted in CDXML, CIM, PowerShell V3, PowerShell v4 | Leave a comment

CDXML–NetworkAdapterConfiguration–IP Enabled

Last time we added a search parameter enabling this: Get-NetworkAdapterConfiguration -DHCPEnabled $true I also want to be able to search based on if the adapter if IP Enabled using: Get-NetworkAdapterConfiguration -IPEnabled $true This can be achieved by specifying another search … Continue reading

Posted in CDXML, CIM, PowerShell V3, PowerShell v4 | Leave a comment

CDXML–adding search parameters

Last time you saw how to create a cmdlet from the Win32_NetWorkAdapterConfiguration class: <?xml version=’1.0′ encoding=’utf-8′?><PowerShellMetadata xmlns=’http://schemas.microsoft.com/cmdlets-over-objects/2009/11′>&nbsp; <Class ClassName=’ROOT\cimv2\Win32_NetworkAdapterConfiguration’>    <Version>1.0</Version>    <DefaultNoun>NetworkAdapterConfiguration</DefaultNoun>     <InstanceCmdlets>      <GetCmdletParameters DefaultCmdletParameterSet=’DefaultSet’>                    </GetCmdletParameters>    </InstanceCmdlets>    </Class>  </PowerShellMetadata> Now its time to add some parameters that can … Continue reading

Posted in CDXML, CIM, PowerShell V3, PowerShell v4 | Leave a comment