How to set the Time Zone in Windows using PowerShell DSC

Play How to set the Time Zone in Windows using PowerShell DSC

The Discussion

  • User profile image
    Al Schneiter

    Hi
    The script does not really mach the Video. Can you please change that and upload the DCS Files?
    Cheers,
    Al

  • User profile image
    yup
    Just incase you are doing this now a days;
    $usr = "administrator"
    $pwd = ConvertTo-SecureString -String "myPWD" -AsPlainText -Force
    $crd = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $usr, $pwd
    icm -VMName bwrs -Credential $crd { hostname }
    icm -VMName bwrs -Credential $crd { set-timezone -Name "Tzone Name" }

Add Your 2 Cents