diff --git a/docs/architecture.md b/docs/architecture.md index 7008d5d..73afd1e 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -143,11 +143,14 @@ synthetic Windows account to imitate that title or ordering. The managed hierarchy is rooted at `OU=Usuarios-SGU`: `Docentes`, `Alumnos`, and `Administrativos` are direct child OUs beneath it. The domain GPO `SGU - User session restrictions` is linked to this root and enables the -per-user `DisableLockWorkstation` policy and disables screen savers for the -complete hierarchy. The computer GPO `SGU - Windows client experience` is linked -to `OU=Laboratorio`; it suppresses first-logon/privacy/diagnostic prompts, -disables location, and enforces always-on display, sleep, and hibernation -settings for managed clients. +per-user `DisableLockWorkstation` and `DisableChangePassword` policies and +disables screen savers for the complete hierarchy. The computer GPO +`SGU - Windows client experience` is linked to `OU=Laboratorio`; it suppresses +first-logon/privacy/diagnostic prompts, disables location, and enforces +always-on display, sleep, and hibernation settings for managed clients. The +same computer GPO configures Edge with `HideFirstRunExperience=1`, +`BrowserSignin=0`, and `SyncDisabled=1`, so shared machines do not show consumer +onboarding or permit personal browser sign-in and cloud synchronization. That computer GPO also owns the base lock-screen image and a per-logon command for the personalized desktop wallpaper. The client-side renderer reads the diff --git a/docs/release-0.6.10.md b/docs/release-0.6.10.md new file mode 100644 index 0000000..4f286ce --- /dev/null +++ b/docs/release-0.6.10.md @@ -0,0 +1,16 @@ +# SGU Credential Provider 0.6.10 + +Esta versión administra Microsoft Edge en los equipos Windows del laboratorio. + +- `HideFirstRunExperience=1` omite la experiencia de primera ejecución y la + pantalla de presentación. +- `BrowserSignin=0` impide iniciar sesión en Edge con cuentas personales o de + organización. +- `SyncDisabled=1` deshabilita Microsoft Sync y su solicitud de consentimiento. +- Las tres configuraciones se publican como valores obligatorios de equipo en + `SGU - Windows client experience`, vinculada a `OU=Laboratorio`. + +Las directivas se escriben directamente en +`HKLM\Software\Policies\Microsoft\Edge`; las plantillas `MSEdge.admx` sólo son +necesarias para editarlas mediante la interfaz de Administrative Templates, no +para su aplicación. diff --git a/scripts/Set-SguDomainComputerPolicies.ps1 b/scripts/Set-SguDomainComputerPolicies.ps1 index 13aed79..79b9540 100644 --- a/scripts/Set-SguDomainComputerPolicies.ps1 +++ b/scripts/Set-SguDomainComputerPolicies.ps1 @@ -82,6 +82,7 @@ $runPolicyKey = 'HKLM\Software\Microsoft\Windows\CurrentVersion\Run' $personalizationPolicyKey = 'HKLM\Software\Policies\Microsoft\Windows\Personalization' $personalizationCspKey = 'HKLM\Software\Microsoft\Windows\CurrentVersion\PersonalizationCSP' $cloudContentPolicyKey = 'HKLM\Software\Policies\Microsoft\Windows\CloudContent' +$edgePolicyKey = 'HKLM\Software\Policies\Microsoft\Edge' $providerClassId = '{D789CFD8-5AD4-489F-9B83-7EB5D9D09335}' $welcomeWallpaperCommand = 'powershell.exe -NoLogo -NoProfile -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -File "{0}" -BaseImagePath "{1}"' -f ` $WelcomeWallpaperScriptPath,$WelcomeWallpaperBasePath @@ -124,7 +125,13 @@ $policies = @( @{ Key = $personalizationCspKey; Name = 'LockScreenImageUrl'; Type = 'String'; Value = $WelcomeLockScreenBasePath }, @{ Key = $personalizationCspKey; Name = 'LockScreenImageStatus'; Type = 'DWord'; Value = 1 }, @{ Key = $cloudContentPolicyKey; Name = 'DisableWindowsSpotlightFeatures'; Type = 'DWord'; Value = 1 }, - @{ Key = $cloudContentPolicyKey; Name = 'DisableWindowsSpotlightOnLockScreen'; Type = 'DWord'; Value = 1 } + @{ Key = $cloudContentPolicyKey; Name = 'DisableWindowsSpotlightOnLockScreen'; Type = 'DWord'; Value = 1 }, + + # Shared laboratory machines should open Edge without consumer onboarding, + # personal browser profiles, or Microsoft cloud synchronization. + @{ Key = $edgePolicyKey; Name = 'HideFirstRunExperience'; Type = 'DWord'; Value = 1 }, + @{ Key = $edgePolicyKey; Name = 'BrowserSignin'; Type = 'DWord'; Value = 0 }, + @{ Key = $edgePolicyKey; Name = 'SyncDisabled'; Type = 'DWord'; Value = 1 } ) $powerSettingIds = @( diff --git a/tests/EdgeLabPolicies.Tests.ps1 b/tests/EdgeLabPolicies.Tests.ps1 new file mode 100644 index 0000000..91e85e3 --- /dev/null +++ b/tests/EdgeLabPolicies.Tests.ps1 @@ -0,0 +1,21 @@ +$repositoryRoot = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path +$policyPath = Join-Path $repositoryRoot 'scripts\Set-SguDomainComputerPolicies.ps1' +$packagePath = Join-Path $repositoryRoot 'scripts\New-SguBootstrapPackages.ps1' +$initializePath = Join-Path $repositoryRoot 'scripts\Initialize-SguDomainController.ps1' +$policy = Get-Content -LiteralPath $policyPath -Raw +$package = Get-Content -LiteralPath $packagePath -Raw +$initialize = Get-Content -LiteralPath $initializePath -Raw + +Describe 'Managed Microsoft Edge laboratory policy' { + It 'suppresses onboarding, browser sign-in and cloud sync through mandatory machine policy' { + $policy | Should Match "edgePolicyKey = 'HKLM\\Software\\Policies\\Microsoft\\Edge'" + $policy | Should Match "Name = 'HideFirstRunExperience'; Type = 'DWord'; Value = 1" + $policy | Should Match "Name = 'BrowserSignin'; Type = 'DWord'; Value = 0" + $policy | Should Match "Name = 'SyncDisabled'; Type = 'DWord'; Value = 1" + } + + It 'ships the policy script and invokes it during server initialization' { + $package | Should Match "'Set-SguDomainComputerPolicies.ps1'" + $initialize | Should Match 'Join-Path \$scriptsRoot ''Set-SguDomainComputerPolicies.ps1''' + } +}