invoke-command Archives - Sebastian Gräf
277
archive,tag,tag-invoke-command,tag-277,ajax_fade,page_not_loaded,,side_area_uncovered_from_content,qode-theme-ver-15.0,qode-theme-bridge,wpb-js-composer js-comp-ver-5.4.7,vc_responsive
 

invoke-command Tag

As published in my Technet Gallery Script Center here, you can get current timezones remotely via PowerShell with Get-Timezones. Get-Timezones is using WMI to communicate with your servers.[crayon-5b4e407c6d308596842720/]This will give you following output:With Set-Timezone you can set timezones remotely. If you need to disable automatic daylight saving time...

Okay at the end it's a simple $PSVersion wrapped in an Invoke-Command but hey these simple things are needful in case you need to run it against of 100s of servers and not just locally. With the help of Invoke-Command via WinRM and $PSVersionTable.psversion wrapped in...