Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get time from remote server

Status
Not open for further replies.

Leosy

Technical User
Apr 13, 2012
49
0
0
PL
HI

I have PS command

Code:
PS C:\Users\Administrator> Get-WmiObject Win32_LocalTime -computerName WOAPP-01

and results

Code:
__GENUS          : 2
__CLASS          : Win32_LocalTime
__SUPERCLASS     : Win32_CurrentTime
__DYNASTY        : Win32_CurrentTime
__RELPATH        : Win32_LocalTime=@
__PROPERTY_COUNT : 10
__DERIVATION     : {Win32_CurrentTime}
__SERVER         : WOAPP-01
__NAMESPACE      : root\cimv2
__PATH           : \\WOAPP-01\root\cimv2:Win32_LocalTime=@
Day              : 20
DayOfWeek        : 1
Hour             : 22
Milliseconds     :
Minute           : 1
Month            : 5
Quarter          : 2
Second           : 3
WeekInMonth      : 4
Year             : 2013

But how to "re-model" this command to receive date and time from this reults for example: "22:01:03"

Best regards
L.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top