Which of the below CmdLet Displays the TimeZone settings of a remote server?
-
get-wmiobject -Class "win32_Desktop" -namespace "root\CIMV2"-computername $computername | Format-List *
-
get-wmiobject -Class "win32_Enviornmanet" -namespace "root\CIMV2"-computername $computername | Format-List *
-
get-wmiobject -Class "win32_TimeZone" -namespace "root\CIMV2"-computername $computername | Format-List *
-
get-wmiobject -Class "win32_TimeZoneSetting" -namespace "root\CIMV2"-computername $computername | Format-List *
C
Correct answer
Explanation
The win32_TimeZone WMI class contains timezone configuration information including bias, standard name, and daylight name. Option A queries desktop settings, option B has a typo (Enviornmanet) and queries environment variables, and option D uses a non-existent class name win32_TimeZoneSetting.