Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Converting WMI Date and Time

$
0
0

If the end points are v2 you can still use the CIM cmdlets but you have to create a DCOM based CIMsession to the endpoint

if you are staying with wmi cmdlets looks like your code will be something like

(gwmi namespacegoeshere -ComputerName ‘test’).endtime | foreach { [System.Management.ManagementDateTimeConverter]::ToDateTime($_) }

depends what else your class is returning as to whether you need to do anything else


Viewing all articles
Browse latest Browse all 13067

Trending Articles