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 for Word and set visible. Open a template (in this […]
Archive for November, 2014
Add a drop down to a Word document
Posted by: richardsiddaway | November 28, 2014 Comments Off on Add a drop down to a Word document |The little changes that make a difference
Posted by: richardsiddaway | November 27, 2014 Comments Off on 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 are often overlooked. One example is a change to Get-ChildItem introduced in PowerShell 3.0. […]
Persisting PowerShell Objects
Posted by: richardsiddaway | November 26, 2014 Comments Off on 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 is saved and overwrites the existing object. There are a number of ways to […]
1,000,000 hits on this blog this year
Posted by: richardsiddaway | November 26, 2014 Comments Off on 1,000,000 hits on this blog this year |Yesterday this blog alone went over the 1,000,000 hits for the year – if you include its mirror sites that comes to over 1,240,000 in total for this year Thank you to everyone who has taken the time to read my posts
PowerShell Summit Europe 2015 – – topics to include
Posted by: richardsiddaway | November 25, 2014 Comments Off on 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 you’d like to be included in the agenda – leave a comment explaining what […]
Call for Presentations for PowerShell Summit Europe 2015
Posted by: richardsiddaway | November 24, 2014 Comments Off on 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 again join together for a few days in Stockholm, Sweden to discuss and learn about […]
Creating NIC team without knowing the team members
Posted by: richardsiddaway | November 23, 2014 Comments Off on 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 1gb | select -ExpandProperty Name) -Name MyTeam Use New-NetLbfoTeam to create the team. The […]
PowerShell books = Deal of the Day
Posted by: richardsiddaway | November 17, 2014 Comments Off on 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
PowerShell is 8 years old this month
Posted by: richardsiddaway | November 14, 2014 Comments Off on PowerShell is 8 years old this month |Strange as it may seem PowerShell 1.0 was release in November 2006. In that time we’ve had a lot of changes: – PowerShell support added to all major Microsoft products – except Office! – Third party adoption of PowerShell – I am now disappointed if a product doesn’t have PowerShell support rather than being surprised […]
PowerShell in Depth, second edition in print
Posted by: richardsiddaway | November 12, 2014 Comments Off on PowerShell in Depth, second edition in print |I received my copies of the print version of PowerShell in Depth, second edition today. Amazon shows it being available in a couple of days Enjoy
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