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