Date and Time in PowerShell

by Jan 14, 2009

In yesterday’s PowerShell script of the day entry,posted over on my PowerShell scripts blog , I re-implemented an MSDN sample (originally written in VBScript) that calculates up time. The script first used a WMI class (Win32_OperatingSystem) to determine when a computer started. Then the script gets the current time, and works out and displays the difference (i.e. the currentnt uptime). The .NET framework… Read the full text.