Skip to content

2. Kiosk User Settings

Applies the following user settings:

  • Microsoft Edge Settings
    • Disables Zoom
  • Enter PowerShell Script Name = Widget User Settings
  • Upload Powershell Scripts File = {SOURCE BELOW}
  • Execution Level = User
  • Execution Context = Enrolled User
  • Execution Schedule:
    • Run Once On Publish = TRUE
    • Run At Every Login = TRUE
    • Run On Schedule = FALSE
# ---------------------------
# Function: Create nested registry path
# ---------------------------
function Ensure-RegistrySubKey {
param (
[string]$ParentKey,
[string]$SubPath
)
$fullPath = $ParentKey
foreach ($part in $SubPath -split "\\") {
$fullPath = Join-Path $fullPath $part
if (-not (Test-Path $fullPath)) {
New-Item -Path $fullPath -Force | Out-Null
}
}
return $fullPath
}
# ---------------------------
# Find Microsoft Edge AppContainer key
# ---------------------------
$baseAppContainer = "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage"
$edgeKey = Get-ChildItem -Path $baseAppContainer |
Where-Object { $_.PSChildName -like "microsoft.microsoftedge*" } |
Select-Object -First 1
if ($null -eq $edgeKey) {
Write-Warning "Edge AppContainer key not found for this user."
} else {
# Create full Zoom path and set value
$fullZoomPath = Ensure-RegistrySubKey -ParentKey $edgeKey.PSPath -SubPath "MicrosoftEdge\Zoom"
# Set-ItemProperty -Path $fullZoomPath -Name "DefaultZoomFactor" -Value $zoomFactor -Type DWord
# Write-Host "✅ Zoom factor set to $zoomFactor in: $fullZoomPath"
$zoomDisabled = 1;
Set-ItemProperty -Path $fullZoomPath -Name "ZoomDisabled" -Value $zoomDisabled -Type DWord
Write-Host "✅ ZoomDisabled set to $zoomDisabled in: $fullZoomPath"
}