PowerShell for Windows Admins:

December, 2016


December 31, 2016  5:35 PM

PowerShell in 2017

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

As 2016 winds down what do we have to look forward to from PowerShell? In January WMF 5.1 should become available for down level clients. This brings PowerShell 5.1 to Windows 7 SP1, 8.1, 2008 R2 SP1, 2012, 2012 R2 Notice that Windows 8 and 2008 aren’t on that list If you’re using DSC...

December 31, 2016  1:36 PM

2016–a PowerShell perspective

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

2016 was important as the 10th anniversary of PowerShell being released as a web download – announced November 2006 at TechEd/IT Forum in Barcelona. The PowerShell team organised a 8 hour web cast on Channel 9 that I was privileged to be part of. We also saw PowerShell 5.1 become available on...


December 30, 2016  2:17 PM

Summit 2017 Registration still open

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Just a quick reminder that the registration for the 2017 PowerShell and DevOps Summit is still open – details from https://powershell.org/summit/


December 30, 2016  2:10 PM

Preserving property order

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

This is a very common pattern:

$os = Get-CimInstance -ClassName Win32_OperatingSystem 
$comp = Get-CimInstance -ClassName Win32_ComputerSystem

$props = @{
  OS = $os.Caption
  InstallDate = $os.InstallDate
  LastBoot = $os.LastBootUpTime
  Make = $comp.Manufacturer
  Model =...


December 29, 2016  2:52 PM

Linux on the desktop

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Linux, Windows 10

My sense of humour has some quirky moments – as my friends will tell you. Last night I had a lot of time to sit and think (why is a story for another time and place) and it one point a thought about Linux on the desktop struck me. Back in the 1980s when I worked in seismic exploration and...


December 27, 2016  5:28 AM

Inertia rules

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Opinion, Powershell

In this article 0 Comments     RSS Feed     Email a friend


December 22, 2016  1:54 PM

Applying updates through WSUS

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, Windows Server 2016, WMI

I like to keep the virtual machines in my test lab up to date so have a WSUS server to download and manage updates. The difficulty is applying the updates. With Windows 2012 R2 I used a module that would contact the WSUS server and apply the updates – the was especially useful on server core...


December 20, 2016  2:20 PM

Calculating Standard Deviation – the class

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

You’ve seen how to calculate standard deviation and how to turn that calculation into a PowerShell function. This time we’ll use the calculation to create a class:

class stats {
  
  static [double] StandardDeviation ([double[]]$numbers) {

    $mean = $numbers | Measure-Object...


December 20, 2016  10:00 AM

Calculating Standard Deviation – the function

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Last time I showed how to calculate the standard deviation of a set of numbers and said the code could easily be turned into a function

function Measure-StandardDeviation {
  [CmdletBinding()]
  param (
    [double[]]$numbers
  )
  $mean = $numbers | Measure-Object -Average |...


December 19, 2016  3:08 PM

Calculating Standard Deviations–the calculation

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

A while ago I saw something asking about calculating standard deviations for a set of numbers in PowerShell. You can calculate the mean (average) of a set of numbers using Measure-Object

 $numbers = 1..10

$mean = $numbers | Measure-Object -Average | select -ExpandProperty...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: