Monday, January 19, 2009

retrieve the current local time

PS> Get-WmiObject -Class Win32_LocalTime -ComputerName .
| Select-Object -Property [a-z]*

Information like DayOfWeek, WeekInMonth, Quarter etc.

No comments:

Post a Comment