Well here we are at the last Friday of the year. In fact , the last Friday of the decade! On this auspicious occasion, let’s have some PowerShell fun and celebrate Friday. No matter what you call it, I’m assuming Friday is your last typical workday and something we look forward to. However, the name…
Tag: DateTime
Friday Fun with Timely PowerShell Prompts
If PowerShell is a part of your daily routine, you most likely have a console window open all day. In addition to using PowerShell to get stuff done, you can use PowerShell to keep you on track. I’ve written before and talked about how I use PowerShell to manage my day. You may not need…
PowerShell Dates, Times and Formats
If you are like me you use date time values constantly in PowerShell. From simply displaying the current date and time in progress message to using different values to create file or folder names. The Get-Date cmdlet has a -Format parameter which you can use. The tricky part is remembering what values to specify. Especially…
Friday Fun: Does Anyone Really Know What Time It Is?
In PowerShell it is brain-dead easy to get the date and time with Get-Date. If you look through articles I’ve posted you’ll find plenty of examples using Get-Date and the [DateTime] object. But now that we’re getting ready for a new year, I thought you might be planning ahead and might want a few shortcuts…
Friday Fun: Get Friday the 13th
I thought it might be fun today to use PowerShell to discover all the Friday the 13ths in a given year. So I put together a simple PowerShell one-liner. To make it flexible I’ll use a variable for the year, using the current year as my value. $year = (Get-date).Year Because there can only be…
More WMI Dates – Win32Product InstallDate
I’ve written in the past about converting obtuse WMI datetime formats into more user friendly formats. The other day via Twitter I got a question about the InstallDate property that comes from the Win32_Product class. This property has a different format, than what I’ve written about previously. And while I think the format is easy…
Friendly WMI Dates
Gee..you think you know something only to find out you don’t. Or maybe this falls into the category of teaching an old dog new tricks.
When I first started using PowerShell several years ago, I learned about how to convert a WMI date to a more user friendly format…