http://www.codeplex.com/PsObject/Wiki/View.aspx?title=WMI&version=4
http://powershelllive.com/blogs/feed-powershellguy/archive/2007/03/01/hey-powershell-guy-how-can-i-get-the-uptime-of-a-service.aspx
http://thepowershellguy.com/blogs/posh/archive/2007/03/26/powershell-wmi-explorer-part-2.aspx
PS> $w1 = Get-WmiObject -class Win32_OperatingSystem
PS> $w1 Get-Member
ConvertFromDateTime ScriptMethod System.Object ConvertFromDateTime();ConvertToDateTime ScriptMethod System.Object ConvertToDateTime();Delete ScriptMethod System.Object Delete();GetType ScriptMethod System.Object GetType();Put ScriptMethod System.Object Put();
PS> $w1.ConvertToDateTime($w1.LastBootUpTime)08 April 2007 10:05:35
Thursday, July 12, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment