header image

Archive for December, 2013

The PowerShell year – 2013

Posted by: | December 31, 2013 | No Comment |

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 accepted language maybe a name change is needed? PowerShell in Depth and PowerShell Deep Dives […]

under: Opinion, PowerShell original

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 >    <CmdletParameterMetadata PSName="Index" /> </RegularQuery> </Property> <Property PropertyName="InterfaceIndex"> <Type PSType = "System.UInt32"/> <RegularQuery > […]

under: CDXML, PowerShell and CIM, PowerShell V3, PowerShell v4

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 parameter: <Property PropertyName="IPEnabled"> <Type PSType = "System.Boolean"/> <RegularQuery >    <CmdletParameterMetadata PSName="IPEnabled" /> </RegularQuery> </Property> […]

under: CDXML, PowerShell and CIM, PowerShell V3, PowerShell v4

LastLogoff timestamp

Posted by: | December 23, 2013 | No Comment |

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 them to be programmable as that as would create a potential loop hole […]

under: Active Directory

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 the teams organized in between the Turkey and Mince Pies

under: Scripting Games 2104

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 available 19 January 2014 – event 1 starts 26 January 2014 – event 2 starts […]

under: Scripting Games

Manning – 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 Practice PowerShell in Depth PowerShell Deep Dives Windows PowerShell in Action, Second Edition Learn PowerShell […]

under: Books, PowerShell original

A new version of ADMT

Posted by: | December 16, 2013 | No Comment |

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

under: Active Directory

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′>   <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 be used for searching.  This will be […]

under: CDXML, PowerShell and CIM, PowerShell V3, PowerShell v4

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′>   <Class ClassName=’$namespace\$class’>     <Version>1.0</Version>     <DefaultNoun>$noun</DefaultNoun>     <InstanceCmdlets>       <GetCmdletParameters DefaultCmdletParameterSet=’DefaultSet’>                     </GetCmdletParameters>     </InstanceCmdlets>    </Class>   […]

under: CDXML, PowerShell and CIM, PowerShell V3, PowerShell v4

Older Posts »

Categories