PowerShell for Windows Admins:


June 9, 2016  3:47 AM

Converting strings to dates

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

You’ll see many examples of this: PS>  [datetime]'12/25/2016' 25 December 2016 00:00:00 This works great if the date is in US format – MM/DD/YYYY For those of us who use different date formats – such as England DD/MM/YYYY – this approach won’t work PS> ...

March 10, 2016  12:13 PM

Really?

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Been testing things for my container talk at the Summit and opened Internet Explorer on my Server 2012 R2 machine to be greeted by “Microsoft recommends upgrading to Windows 10” Forget Server 2016 guys all you need is Windows 10  :-)


February 22, 2016  9:34 AM

Quick test for updates that aren’t installed

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

I want a quick test to determine if any of the updates I’d approved hadn’t been installed on all of the relevant machines. Get-WsusUpdate -Approval Approved | where InstalledOrNotApplicablePercentage -ne 100 Get the list of approved updates and filter on the...


February 15, 2016  10:50 AM

PowerShell Conference EU 2016–things to look forward to

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

With 64 days to the European PowerShell conference (and less to the PowerShell Summit) I’m busy getting my sessions prepared. At the European conference I’m presenting pre-conference workshops on DSC and CIM and then two sessions on managing the new Container feature in Server 2016 with...


May 21, 2015  1:30 PM

IPAM: 1 Installation and configuration

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

IPAM stands for IP Address Management. It’s a feature in Windows Server 2012 R2 that enables you manage your DHCP and DNS servers as a whole rather than at the individual service or server level. Installation of IPAM follows the standard approach for any Windows feature. Note that you can...


September 4, 2014  1:07 PM

OneNote and XML–finding notebooks

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

When OneNote first came out there wasn’t an API for it as you get for Word or Excel. A community module enabled you to work with the XML that formed the OneNote note books but it wasn’t updated after Office 2007 and doesn’t really work with later versions of OneNote. I was looking at the...


August 29, 2014  2:29 PM

Grains of rice on a chess board

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

There is a story about the inventor of chess being rewarded by putting 1 grain of rice on the first square of the board; 2 on the second and so on. How much rice does that come to? The total number of grains is 1.84467440737096E+19 At 25mg per grain that's 461168601842739 kilogrammes of...


August 29, 2014  1:00 PM

Event Log Providers

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

An event log provider is writes to an event log.  I’ve used WMI in the past to get these but while looking for somethign else discovered that Get-WinEvent can also find this information. Get-WinEvent -ListProvider * | ft Name, LogLinks -AutoSize –Wrap Provides a nice long list of all of...


August 20, 2014  10:19 AM

Count property

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Its frequently said that PowerShell is so big that no one can know everything about it.  I proved that today when I “discovered” a change in PowerShell of which I wasn’t aware. If you create an array: £> $a = 1,2,3 You can then get the number of members of that array i.e. its...


August 20, 2014  7:49 AM

Split-Path serendipity

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

I’ve used Split-Path and its associated cmdlet Join-Path a lot when working with file system paths. Something I read today started me asking if it would work with URLs It does: £> Split-Path -Path '


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: