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 […]
Archive for December, 2013
CDXML–NetworkAdapterConfiguration–Search on Index
Posted by: richardsiddaway | December 23, 2013 | No Comment |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 > […]
CDXML–NetworkAdapterConfiguration–IP Enabled
Posted by: richardsiddaway | December 23, 2013 | No Comment |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> […]
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 […]
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
Countdown to the Scripting Games–32 days and counting
Posted by: richardsiddaway | December 17, 2013 | No Comment |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 […]
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 […]
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
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 […]
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> […]
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