header image

Archive for November, 2014

Add a drop down to a Word document

Posted by: | November 28, 2014 Comments Off on 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 for Word and set visible.  Open a template (in this […]

under: Office 2013, PowerShell

The little changes that make a difference

Posted by: | 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. […]

under: PowerShell Basics

Persisting PowerShell Objects

Posted by: | 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 […]

under: PowerShell

1,000,000 hits on this blog this year

Posted by: | 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

under: General

PowerShell Summit Europe 2015 – – topics to include

Posted by: | 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 […]

under: European Summit, PowerShell

Call for Presentations for PowerShell Summit Europe 2015

Posted by: | 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 […]

under: PowerShell, Summit

Creating NIC team without knowing the team members

Posted by: | 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 […]

under: Networking, PowerShell V3, PowerShell v4

PowerShell books = Deal of the Day

Posted by: | 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

under: Books, PowerShell

PowerShell is 8 years old this month

Posted by: | 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 […]

under: PowerShell

PowerShell in Depth, second edition in print

Posted by: | 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

under: Books, PowerShell

Older Posts »

Categories