Monthly Archives: September 2015

PowerShell DSC for Linux 1.1

PowerShell DSC for Linux 1.1 has been released. http://blogs.msdn.com/b/powershell/archive/2015/09/30/powershell-dsc-for-linux-version-1-1-is-now-available-and-new-linux-resources.aspx With bug fixes, support for the separation of configuration and node ids  and new resources this release makes it easier than ever to manage your Linux boxes through DSC

Posted in DSC, Linux, PowerShell v5 | Leave a comment

Controlling copies

I was recently asked about ‘forcing’ a copy so that only the files you want are copied Consider a folder with lots of files. I want to copy those files that start with the letter t and have a txt … Continue reading

Posted in Powershell Basics | Leave a comment

WMF 5.0 production preview–installed

I’ve installed WMF 5.0 PP on a number of Windows 2012 R2 (full GUI and server core). Installation was over the top of a mixture of PowerShell 4.0 and various versions of PowerShell 5.0 previews. Installation worked in all cases. … Continue reading

Posted in PowerShell v5 | Leave a comment

Win32_ReliabilityRecords Class

The Win32_ReliabilityRecords class was introduced with Windows 7. It contains information from the Windows Event Log related to system reliability. The most interesting properties are the Message and the TimeGenerated £> Get-WmiObject -class win32_reliabilityRecords | select -First 1 | fl … Continue reading

Posted in CIM, PowerShell and WMI, PowerShell v5 | 1 Comment

Everything is recycled

I was just thinking this morning about the DevOps phenomenon. When I started in IT it wasn’t unusual for people to do development work and operations – especially in smaller organisations. Over the years this changed and specialisation became the … Continue reading

Posted in Opinion | Leave a comment

Error handling for DNS lookups

Interesting question on the forum regarding the Resolve-DNSname cmdlet. This is part of the DNSclient module introduced with Windows 8. If the DNS record is found everything is good £> Resolve-DnsName W12R2DSC -Server server02 | ft -a Name                   Type TTL  … Continue reading

Posted in DNS, PowerShell v5, Windows Server 2012 R2 | 1 Comment

PowerShell and DevOps Global Summit–call for topics extended

The call for topics for the PowerShell and DevOps Global Summit (renamed PowerShell Summit) has been extended. If you’re thinking of submitting please do so. I you want some ideas fro topics we’ll consider – see http://powershell.org/wp/2015/09/16/speaking-at-powershell-summit-2016-topic-ideas-for-aspiring-speakers/

Posted in DevOps, Powershell, Summit | Leave a comment

Updating help problem

A question on the forum posed this question – why does update-help fail on Windows 10 in this case: £> Update-Help -Module PSDesiredStateConfiguration -ForceUpdate-Help : Failed to update Help for the module(s) ‘PSDesiredStateConfiguration’ with UI culture(s) {en-GB} :Unable to retrieve … Continue reading

Posted in Powershell Basics | Leave a comment

Where next?

With the demise of the European PowerShell Summit organised by powershell.org what should happen next in Europe as far as a PowerShell conferences are concerned? The probability is that there will be a number of regional conferences. Tobias already has … Continue reading

Posted in Powershell | 1 Comment

Bad habits when creating objects

I’m seeing a lot of code recently that looks like this $comp = Get-CimInstance -ClassName Win32_ComputerSystem$os = Get-CimInstance -ClassName Win32_OperatingSystem $obj  = New-Object -TypeName PSObject $obj | Add-Member -MemberType NoteProperty -Name Name -Value $comp.Name$obj | Add-Member -MemberType NoteProperty -Name  Manufacturer … Continue reading

Posted in Powershell Basics | Leave a comment