header image

Archive for September, 2015

PowerShell DSC for Linux 1.1

Posted by: | September 30, 2015 Comments Off on 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

under: DSC, Linux, PowerShell v5

Controlling copies

Posted by: | September 30, 2015 Comments Off on 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 extension PS> Get-ChildItem -Path C:\test2\t*.txt     Directory: C:\test2 Mode                LastWriteTime         Length Name —-                […]

under: PowerShell Basics

WMF 5.0 production preview–installed

Posted by: | September 30, 2015 Comments Off on 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.   I’ve not noticed any problems with using powershell 5.0 in this environment

under: PowerShell v5

Win32_ReliabilityRecords Class

Posted by: | September 29, 2015 Comments Off on 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 Message, TimeGenerated Message       : Installation Successful: Windows successfully installed the following update: Definition Update […]

under: CIM, PowerShell and WMI, PowerShell v5

Everything is recycled

Posted by: | September 29, 2015 Comments Off on 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 name of the game – you were a C# developer or a java developer […]

under: Opinion

Error handling for DNS lookups

Posted by: | September 29, 2015 Comments Off on 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  Section IPAddress —-                   —- —  ——- ——— W12R2DSC.Manticore.org A    1200 Answer  10.10.54.204   If […]

under: DNS, PowerShell v5, Windows Server 2012 R2

PowerShell and DevOps Global Summit–call for topics extended

Posted by: | September 28, 2015 Comments Off on 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.   If 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/

under: DevOps, PowerShell, Summit

Updating help problem

Posted by: | September 28, 2015 Comments Off on 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 -Force Update-Help : Failed to update Help for the module(s) ‘PSDesiredStateConfiguration’ with UI culture(s) {en-GB} : Unable to retrieve the HelpInfo XML file for UI culture en-GB. Make sure the HelpInfoUri […]

under: PowerShell Basics

Where next?

Posted by: | September 27, 2015 Comments Off on 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 a German language conference and people at the Stockholm Summit were talking about an […]

under: PowerShell

Bad habits when creating objects

Posted by: | September 27, 2015 Comments Off on 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 -Value $comp.Manufacturer $obj | Add-Member -MemberType NoteProperty -Name Model -Value $comp.Model $obj […]

under: PowerShell Basics

Older Posts »

Categories