Monthly Archives: December 2013

The PowerShell year – 2013

This year has been a pretty good year for the PowerShell community. The highlights include: PowerShell 4.0 becomes available A very successful PowerShell Summit in April A community hosted and judged Scripting Games – though as PowerShell is the only … Continue reading

Posted in Opinion, Powershell | 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

LastLogoff timestamp

I was recently asked if there was any way to fill in the LastLogoff timestamp The short answer is no.  The values in the attributes related to logons are maintained by Active Directory during the logon process. I wouldn’t want … Continue reading

Posted in Active Directory | Leave a comment

Scripting Games 2014–more information

More information is available on the Games: Logon and operational information http://powershell.org/wp/2013/12/21/important-scripting-games-login-and-operational-information/ Events and Event authors http://powershell.org/wp/2013/12/21/2014-winter-scripting-games-the-event-authors/ Team Foundation Tips http://powershell.org/wp/2013/12/19/2014-winter-scripting-games-team-formation-tips/ Games schedule http://powershell.org/wp/2013/12/16/2014-winter-scripting-games-schedule/ Registration opens 2 January 2014 with a practice event starting on 6 January Time to get … Continue reading

Posted in Scritping Games 2014 | Leave a comment

Countdown to the Scripting Games–32 days and counting

The countdown to the Winter 2014 Scripting Games has started. Officially starting at 1am (UTC or GMT) 19 January 2014 the following dates should be noted: 2 January 2014 – registration opens 6 January 2014 – a practice event becomes … Continue reading

Posted in Scripting Games | Leave a comment

Deal of the Day–17 December 2013

Manning – http://www.manning.com – have multiple PowerShell books as their deal of the day – today and tomorrow. The deal started at midnight ET today ( 3am GMT) and lasts for 48 hours.   Books included: PowerShell and WMI PowerShell in … Continue reading

Posted in Books, Powershell | Leave a comment

A new version of ADMT

A new version of the AD Migration Tool (ADMT) has been announced – http://blogs.technet.com/b/askds/archive/2013/12/13/an-update-for-admt-and-a-few-other-things-too.aspx While not ready for download just yet at least we know its in the pipeline and supports the newer versions of Windows

Posted in Active Directory | 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

CDXML–network adapter configuration

I’ve amended the new-cdxml function created earlier in the series: function new-cdxml {[CmdletBinding()]param ([Parameter(Mandatory=$true)][string]$class, [Parameter(Mandatory=$true)][string]$noun, [string]$namespace = ‘ROOT\cimv2’,[string]$path = “C:\Scripts\Modules\Hardware”) $code = @”<?xml version=’1.0′ encoding=’utf-8′?><PowerShellMetadata xmlns=’http://schemas.microsoft.com/cmdlets-over-objects/2009/11′>&nbsp; <Class ClassName=’$namespace\$class’>    <Version>1.0</Version>    <DefaultNoun>$noun</DefaultNoun>     <InstanceCmdlets>      <GetCmdletParameters DefaultCmdletParameterSet=’DefaultSet’>                    </GetCmdletParameters>    </InstanceCmdlets>    </Class>  </PowerShellMetadata>“@ … Continue reading

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