header image

Archive for August, 2016

DevOps and IT fashions

Posted by: | August 31, 2016 Comments Off on 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 that virtualisation.   IT has a long history of jumping on band wagons and […]

under: DevOps

Windows 10 updates

Posted by: | August 31, 2016 Comments Off on 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

under: Windows 10

Access functions

Posted by: | August 31, 2016 Comments Off on 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 now available from https://onedrive.live.com/?id=43CFA46A74CF3E96%2179699&cid=43CFA46A74CF3E96

under: PowerShell

Optimising WMI calls–part 3

Posted by: | August 30, 2016 Comments Off on 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 = Get-CimInstance -Query "SELECT * FROM Win32_OperatingSystem" -CimSession $cs $cpuLoad = Get-CimInstance -Query "SELECT * […]

under: PowerShell and CIM, PowerShell and WMI

Optimising WMI calls–part 2

Posted by: | August 30, 2016 Comments Off on 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 the disks another time   Our code becomes Measure-Command -Expression { $srvs = ‘W16TP5TGT01’, ‘W16TP5TGT02’ […]

under: PowerShell and CIM, PowerShell and WMI

PowerShell speaker opportunities still open

Posted by: | August 30, 2016 Comments Off on 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/

under: PowerShell, Summit

Optimising WMI calls–part 1

Posted by: | August 29, 2016 Comments Off on 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 = gwmi -Query "SELECT * FROM Win32_Service WHERE name=’imaservice’" -ComputerName $srv $mfcom = gwmi -Query […]

under: PowerShell and CIM, PowerShell and WMI

PowerShell is Open Sourced

Posted by: | August 18, 2016 Comments Off on 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 of PowerShell is now available for Linux and Mac.  Currently available for Ubuntu, […]

under: PowerShell

Update-Help errors

Posted by: | August 16, 2016 Comments Off on 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 -Force Update-Help : Failed to update Help for the module(s) ‘Microsoft.PowerShell.Operation.Validation’ with UI culture(s) {en-GB} : Unable to retrieve the HelpInfo XML file for UI culture […]

under: PowerShell Basics

What you don’t know

Posted by: | August 10, 2016 Comments Off on 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 – things you don’t know – you know that X is a thing but you […]

under: General

Older Posts »

Categories