header image

Archive for October, 2012

The DnsClient module has a number of Get- cmdlets Get-DnsClient | Format-List InterfaceAlias, ConnectionSpecificSuffix, Register*, UseSuffix* An example of the output is InterfaceAlias                 : Ethernet ConnectionSpecificSuffix       : RegisterThisConnectionsAddress : True UseSuffixWhenRegistering       : False Of more interest when trouble shooting is Get-DnsClientCache PS> Get-DnsClientCache | select -f 1 | fl Entry      : RecordName : […]

under: DNS, PowerShell V3, Windows 8, Windows Server 2012

When: Tuesday, Nov 13, 2012 7:30 PM (BST) Where: *~*~*~*~*~*~*~*~*~* PowerShell workflows are one of the major new features of PowerShell v3. This session will provide an introduction to using this functionality and some ideas of where they fit into administering your systems Notes Richard Siddaway has invited you to attend an online meeting using […]

under: PowerShell User Group, PowerShell V3

A question of scope

Posted by: | October 18, 2012 | No Comment |

I had a question left on my blog regarding scope.  The following is a simplified version of the problem function level1 { $iterations++ Write-Host ‘$iterations in level 1 = ‘ $iterations level2 } function level2 { $iterations++ Write-Host ‘$iterations in level 2 =’ $iterations } $iterations = 0 Write-Host ‘$iterations at start =’ $iterations level1 […]

under: PowerShell original

Started to investigate the DnsClient module.  First cmdlet to catch my eye was Get-DnsClientServerAddress. Always good to know a way to find the DNS server. PS> Get-DnsClientServerAddress InterfaceAlias               Interface Address ServerAddresses                              Index     Family ————–               ——— ——- ————— Bluetooth Network Connection        19 IPv4    {} Bluetooth Network Connection        19 IPv6    {fec0:0:0:ffff::1, fec0:0:0:ffff::2, fec0:0:0:ffff::3} WiFi                                12 IPv4    […]

under: DNS, PowerShell V3, Windows 8, Windows Server 2012

PowerShell 3 and Word

Posted by: | October 15, 2012 | 2 Comments |

  This is a common scenario $word = New-Object -ComObject "Word.application" $word.visible = $true $doc = $word.Documents.Add() $doc.Activate() $word.Selection.Font.Name = "Cambria" $word.Selection.Font.Size = "20" $word.Selection.TypeText("PowerShell") $word.Selection.TypeParagraph() $word.Selection.Font.Name = "Calibri" $word.Selection.Font.Size = "12" $word.Selection.TypeText("The best scripting language in the world!") $word.Selection.TypeParagraph() $file = "c:\scripts\office\test1.doc" $doc.SaveAs([REF]$file) $Word.Quit() Create a new Word document – put some text into […]

under: Office 2010, Office 2013, PowerShell V3, Windows 7, Windows 8

PowerShell summit

Posted by: | October 14, 2012 | No Comment |

April 22-14  2013 – Microsoft campus.  PowerShell team and MVPs http://powershell.org/summit/ Tickets going fast

under: Deep Dive, PowerShell original

CDXML modules and nouns

Posted by: | October 14, 2012 | No Comment |

CDXML modules don’t expose the verb and the noun of the cmdlets they publish.  If you want to discover the set of nouns in a CDXML module you need a bit of brute force: Get-Command -Module DhcpServer | foreach {   ($_.Name -split "-")[1] }  | sort | group -NoElement | sort count –Descending

under: PowerShell V3, Windows 8, Windows Server 2012

Windows 8 update

Posted by: | October 12, 2012 | No Comment |

The first Windows 8 update became available this week.  This fixes some issues that have come up during the OEM process.  Fast and frequent updates sound good to me. In addition number of apps have been updated – one I really like is the addition of conversation groupings to the mail app.  That’s made it […]

under: Windows 8