Monthly Archives: August 2016

DevOps and IT fashions

DevOps is the latest IT fashion. That statement is more than likely viewed as a heresey by many people in IT. A few years ago Cloud could have been the first word in the sentence and a few years before … Continue reading

Posted in DevOps | 1 Comment

Windows 10 updates

With the anniversary update delivered the Windows 10 development carries on with new updates becoming available – now up to build 14915 Not much in the way of PowerShell goodies though

Posted in Windows 10 | Leave a comment

Access functions

I had a request for the Access functions I wrote about in this post https://richardspowershellblog.wordpress.com/2009/12/18/access-functions/ They are no available from https://onedrive.live.com/?id=43CFA46A74CF3E96%2179699&cid=43CFA46A74CF3E96

Posted in Powershell | Leave a comment

Optimising WMI calls–part 3

The next change just uses 1 call to get the disk information instead of 2 Measure-Command -Expression { $srvs = ‘W16TP5TGT01’, ‘W16TP5TGT02’ for ($i=1; $i -le 150; $i++){ foreach ($srv in $srvs) { $cs = New-CimSession -ComputerName $srv $bootupMemory = … Continue reading

Posted in PowerShell and CIM, PowerShell and WMI | Leave a comment

Optimising WMI calls–part 2

Last time we looked at using CIM sessions to make a set of WMI calls run quicker. This time we’ll reduce the number of calls.  I’m deliberately just reducing the number of calls to the Win32_Service class.  We’ll look at … Continue reading

Posted in PowerShell and CIM, PowerShell and WMI | Leave a comment

PowerShell speaker opportunities still open

You have just over a month to register your session proposals for the 2017 PowerShell Summit – https://powershell.org/2016/08/01/powershell-and-devops-global-summit-2017-call-for-topics/

Posted in Powershell, Summit | Leave a comment

Optimising WMI calls–part 1

Recently saw some code where user was running this $bootupMemory = gwmi -Query “SELECT * FROM Win32_OperatingSystem” -ComputerName $srv$cpuLoad = gwmi -Query “SELECT * FROM Win32_Processor” -ComputerName $srv $tSessions = gwmi -Query “SELECT * FROM Win32_TerminalService” -ComputerName $srv $ima = … Continue reading

Posted in PowerShell and CIM, PowerShell and WMI | Leave a comment

PowerShell is Open Sourced

For those of you that have been at PowerShell events over the last few years you’ll have heard Jeffrey Snover state that he wanted to take PowerShell to other platforms. Now its happened Jeffrey has announced that an ALPHA release … Continue reading

Posted in PowerShell v5 | Leave a comment

Update-Help errors

Updatable help brings the benefit of up to date help with typos fixed and new edge cases described. The down side is that it sometimes fails: PS> Update-Help -ForceUpdate-Help : Failed to update Help for the module(s) ‘Microsoft.PowerShell.Operation.Validation’with UI culture(s) … Continue reading

Posted in Powershell Basics | Leave a comment

What you don’t know

  This article – https://powershell.org/2016/08/08/what-are-your-known-problems-solved-in-dsc/ – started me thinking about the times I’ve worked on big projects. One of the things we’d do was discuss things that could become problems. Knowledge falls into three groups: – things you know – … Continue reading

Posted in General | Leave a comment