Author Archives: richardsiddaway

Add a drop down to a Word document

  Its surprisingly easy to programatically add a drop down list to Word document   $Word = New-Object -Com Word.Application$word.visible = $true$template = “c:\test\template.docx”   $Doc = $Word.Documents.Open($template)$Doc.Activate()    $cntrl = [Enum]::Parse([Microsoft.Office.Interop.Word.WdContentControlType], “wdContentControlDropdownList”) $objCC = $doc.ContentControls.Add($cntrl) $objCC.DropdownListEntries.Add(“PowerShell”)$objCC.DropdownListEntries.Add(“Ruby”)$objCC.DropdownListEntries.Add(“Perl”)   Create the COM object … Continue reading

Posted in Office 2013, Powershell | Leave a comment

The little changes that make a difference

Each version of PowerShell introduces a new headline feature – remoting, workflows, DSC, OneGet in version 2,3,4 and 5 respectively. While this can change the way we work there are also a host of little changes that come along that … Continue reading

Posted in Powershell Basics | Leave a comment

Persisting PowerShell Objects

I was asked recently about persisting PowerShell objects. The idea was to test a particular property on a semi-regular basis and save the object with the highest value for the property.  If the next test has a higher value it … Continue reading

Posted in Powershell | Leave a comment

PowerShell Summit Europe 2015 – – topics to include

Are you planning on attending the PowerShell Summit Europe 2015.  If so what topics would you like to see covered. The Summit is deliberately pitched at a high level so you won’t find beginner level content. If there’s a topic … Continue reading

Posted in European Summit, Powershell | Leave a comment

Call for Presentations for PowerShell Summit Europe 2015

The PowerShell Summit is the number one conference where PowerShell enthusiasts gather and learn from each other in fast-paced, knowledge packed presentations. PowerShell experts from all over the world including MVP’s, Guru’s, community leaders and PowerShell team members, will once … Continue reading

Posted in Powershell, Summit | Leave a comment

Creating NIC team without knowing the team members

I was asked how to create a NIC team only using the 1GB adapters without knowing how many 1gb NICs were on the server.   I think this should solve the problem   New-NetLbfoTeam -TeamMembers (Get-NetAdapter | where Speed -ge … Continue reading

Posted in Networking, PowerShell V3, PowerShell v4 | Leave a comment

PowerShell books = Deal of the Day

Manning’s Deal of the Day for 18 November 2014 includes PowerShell in Depth, second edition and PowerShell and WMI

Posted in Books, Powershell | Leave a comment