Tags » Powershell-basics

Scripting Game puzzle - - January 2016

Here’s how I’d solve the puzzle

function get-starttime {


]$computername = $env:COMPUTERNAME


foreach ($computer in $computername){
$props = @{
ComputerName = $computer… 837 more words

Powershell Basics


How do you find the FQDN of the machine you’re using. The simplest way is to combine a couple of environmental variables:

SERVER02.MANTICORE.ORG… 71 more words

Powershell Basics

Testing against an arrays contents

You may need to test if a value is a member of an array. PowerShell provides 2 operators for testing array membership – – -in and –contains. 171 more words

Powershell Basics

Starting to use PowerShell

A common question goes along the lines of “I’ve leant PowerShell (from class, book etc) but what do I do next?”

The usual answer is to pick a problem in your organisation and solve it. 30 more words

Powershell Basics

2015 December Scripting Games Puzzle

The December 2015 puzzle was based on the 12 Days of Christmas song. Starting with this here-string.

$list = @”
1 Partridge in a pear tree… 416 more words

Powershell Basics

Objects, properties and values

One thing that seems to keep causing confusion is using Select-Object to pick off one or more properties from a set of objects:

PS> Get-CimInstance -ClassName Win32_Share | select Path… 183 more words

Powershell Basics

Inputting computer names

Somehting I was writing yesterday started me thinking about the way you input a list of computer names to a cmdlet. Many cmdlets have a ComputerName parameter so knowing how to deal with this sort of input will help. 533 more words

Powershell Basics