Skip to content

Commit 290a72e

Browse files
Update Enable-AutoTimezone.ps1
Add comments to variables
1 parent 59736bf commit 290a72e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

WINDOWS/Scripts/Enable-AutoTimezone.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
.NOTES
66
Author: James Robinson | SkipToTheEndpoint | https://skiptotheendpoint.co.uk
7-
Version: v1
7+
Version: v1.1
88
Release Date: 2024-08-31
99
1010
Intune Info:
@@ -25,10 +25,10 @@ $Script:LogsFolder = "$env:ProgramData\Microsoft\IntuneManagementExtension\Logs"
2525
$ErrorActionPreference = [System.Management.Automation.ActionPreference]::SilentlyContinue
2626
$Host.UI.RawUI.WindowTitle = '$ScriptName'
2727

28-
$LocationValue = "Allow"
29-
$AutoTZValue = "3"
30-
$LFSVCValue = "1"
31-
$SensorValue = "1"
28+
$LocationValue = "Allow" # Allow - Forces the "Let apps access your location" toggle in Settings > Privacy & Security to "On".
29+
$AutoTZValue = "3" # 3 - Enables the automatic time zone setting.
30+
$LFSVCValue = "1" # 1 - Enables location services.
31+
$SensorValue = "1" # 1 - Enables the Windows Location Platform for the SENSOR_CATEGORY_LOCATION device sensor set: https://learn.microsoft.com/en-us/windows/win32/sensorsapi/sensor-category-location.
3232

3333
#### Functions ####
3434
function Start-Logging {
@@ -83,4 +83,4 @@ try {
8383
catch {
8484
Write-Error "$($_.Exception.Message)"
8585
Exit 1
86-
}
86+
}

0 commit comments

Comments
 (0)