Set Windows to store UTC time
This commit is contained in:
parent
9fdb3d979f
commit
4300575df6
3 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,10 @@
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
||||||
|
|
||||||
|
function Initialize-Configuration {
|
||||||
|
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Value 1 -Type "DWord";
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host "Starting Restoration of Windows";
|
Write-Host "Starting Restoration of Windows";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
||||||
[Context]$context = [Context]::new();
|
[Context]$context = [Context]::new();
|
||||||
|
|
|
@ -77,7 +77,5 @@ $startLayout | Add-Member -NotePropertyName "primaryOEMPins" -NotePropertyValue
|
||||||
|
|
||||||
$startLayout | ConvertTo-Json -Compress | Set-Content "$env:SystemDrive\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.json";
|
$startLayout | ConvertTo-Json -Compress | Set-Content "$env:SystemDrive\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.json";
|
||||||
|
|
||||||
Write-Information "Copy Region & Language Settings to System Configuration";
|
|
||||||
|
|
||||||
Pop-Location;
|
Pop-Location;
|
||||||
Remove-Item -Recurse "$tempDir";
|
Remove-Item -Recurse "$tempDir";
|
||||||
|
|
|
@ -11,6 +11,9 @@ function Invoke-WindowsInstallation([Context] $context)
|
||||||
$softwarePath = "$PSScriptRoot/../Software";
|
$softwarePath = "$PSScriptRoot/../Software";
|
||||||
|
|
||||||
if (-not $context.Get("InitialConfiguration")) {
|
if (-not $context.Get("InitialConfiguration")) {
|
||||||
|
if ((Get-Command Initialize-Configuration -ErrorAction SilentlyContinue)) {
|
||||||
|
Initialize-Configuration $context;
|
||||||
|
}
|
||||||
|
|
||||||
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";
|
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue