Tuesday, November 08, 2016

Windows Uptime

(Because supporting the uptime command would be too easy...)

In the Command Prompt

C:\temp>net stats srv | find "since"

Statistics since 10/20/2016 10:02:37 AM

PowerShell v3

PS C:\temp> Get-CimInstance -ClassName win32_operatingsystem | select csname, lastbootuptime

csname lastbootuptime
------ --------------
DC1 10/20/2016 11:01:15 AM

It appears that PowerShell doesn't handle the time falling back...

So I created a uptime alias in Powershell. The following will do it in your current shell.

function get-uptime {Get-CimInstance -ClassName win32_operatingsystem | select csname, lastbootuptime}
new-alias uptime get-uptime

To make the alias sticky add these commands to the Microsoft.PowerShell_profile.ps1 file in your profile and enable script execution. Where your profile file is at and how to enable script execution are in the links below.

Useful links

First Quarter

53% visible

Add in a contrail from a passing jet

Monday, November 07, 2016

Waxing Crescent, 47% visible

Friday, November 04, 2016

A beauty tonight

Waxing Crescent, 23% visible

Waxing Crescent 16% visible

Thursday, November 03, 2016

Congrats to the 2016 World Series Champion

Chicago Cubs

Wednesday, October 19, 2016

A beautiful morning moon

Waning Gibbous, 85% visible

Tuesday, October 18, 2016

A tale of two moons. Last night

Waning Gibbous, 94% visible

And this morning

Waning Gibbous, 92% visible

Monday, October 17, 2016

Full, 98% visible

Canon SX710 Point and Shoot

Friday, October 14, 2016

Back to a beautiful clear night sky. Someday I'll live where there is less light polution.

Waxing Gibbous, 93% visible

Wednesday, October 12, 2016

The Night Sky

I've always loved the night sky. The Moon, the stars, the darkness - just feels right. I made a friend a year ago who got me motivated to start making pictures of the moon. Every pic reminds me of that friendship. It may be all that I have...
Beautiful sky tonight

Waxing Gibbous, 78% visible

Tuesday, October 11, 2016

High thin clouds made getting this image a little challenging. A little #Lightroom magic and something decent appears

Waxing Gibbous, 69% visible

Monday, October 10, 2016

First Quarter, 59% visible

First quarter, 44% visible

Waxing Crescent, 38% visible

Thursday, October 06, 2016

Waxing Crescent, 22% visible

Wednesday, October 05, 2016

Mr. Moon is back. I can see the earth light - just can't seem to catch it in the image.

Waxing Crescent, 14% visible

Tuesday, September 27, 2016

Just about gone...

Waning Crescent, 12% visible

Thursday, September 22, 2016

Hazy morning. Lightroom saves the day

Waning Gibbous, 61% visible