Filters - Shay Levy

Shay Levy

If you repeat it, $CRIPT it!

Browse by Tags

All Tags » Filters (RSS)
Converting WMI dates in a pipeline
Get-WMIObject is one of the most used cmdlets in PowerShell and many of us system administrators use it on a daily basis to perform our day to day tasks. Often we need to get values of CIM_DATETIME properties from instances of a class. An example would be the Win32_OperatingSystem class (truncated property list): PS > $os = Get-WMIObject Win32_OperatingSystem PS > $os | Format-List * (...) Debug : False Description : Distributed : False EncryptionLevel : 256 ForegroundApplicationBoost : 2 InstallDate...