Date and Time in PowerShell

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 More...

Read the complete post at http://pshscripts.blogspot.com/2009/01/date-and-time-in-powershell.html


Posted Jan 14 2009, 07:34 AM by PowerShell Scripts
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.