PowerShell for Windows Admins:

January, 2018


January 31, 2018  8:51 AM

Clear-RecycleBin

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Every so often I find a new cmdlet in PowerShell. This was the case with Clear-RecycleBin that I’ve just found. It appears to have been introduced with PowerShell 5.0 BUT isn’t available in PowerShell 6.0 With pretty simple syntax PS> Get-Command Clear-RecycleBin...

January 31, 2018  5:01 AM

Documentation can be wrong!

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

We rely on vendor documentation to help us solve problems. Documentation is produced by people and people make mistakes so Documentation can be wrong! As an example: The CIM class Win32_OperatingSystem has a Description property. According to the documentation the Description property...


January 30, 2018  12:50 PM

PowerShell sleep

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

PowerShell use tends to be very interactive. You run a command at the console and get some results. You run a script and get some results. How do you make PowerShell sleep? There’s a few ways you can make PowerShell code sleep. First there’s Start-Sleep

PS> for ($i=0; $i -le 10;...


January 28, 2018  8:26 AM

PowerShell –f string

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

A PowerShell –f string is used to format the data inside a string. –f is usually referred to as the format operator. The operation of the format operator is best explained by examples. At its simplest you create fields in the string using {} and the arguments to the right of the –f...


January 27, 2018  7:09 AM

DSC update

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The PowerShell team have posted an update on what’s happening with DSC. 0 Comments     RSS Feed     Email a friend


January 26, 2018  7:03 AM

PowerShell v6.0.1

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

PowerShell v6.0.1 is available from https://github.com/PowerShell/PowerShell/releases This release upgrades PowerShell to use .NET core v2.0.5 which addresses a couple of...


January 25, 2018  11:37 AM

Iron Scripter prequels

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

One of the new things for Summit 2018 is the iron Scripter competition on the last afternoon. As a warm up for the competition we’re running a number of Iron Scripter prequels. A puzzle will be published every week – first 2 are on powershell.org. A forum exists to discuss the solutions...


January 25, 2018  10:21 AM

PowerShell v6 GA and beyond

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

PowerShell v6 achieved General Availability on 10 January 2018. 0 Comments     RSS Feed     Email a friend


January 8, 2018  3:55 AM

Just the date

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Way back in this post https://richardspowershellblog.wordpress.com/2008/03/27/start-and-end-of-week/ I showed how to...


January 4, 2018  2:44 PM

Relevance of Scripts

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Books, Powershell

I had a sudden thought today about the relevance of scripts – PowerShell Scripts -  today. PowerShell v6 can’t run some of the modules that we’ve come to rely on – for instance the AD cmdlets. The Windows Compatibility Pack (see previous post) enables access to some of the underlying...


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: