From fddb4943f9dfacc718ded5d4ef380edf046f525c Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Thu, 7 Aug 2025 14:09:04 -0600 Subject: [PATCH] =?UTF-8?q?Agregar=20script=20para=20ocultar=20botones=20d?= =?UTF-8?q?el=20men=C3=BA=20de=20inicio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Políticas/Apagado.ps1 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Políticas/Apagado.ps1 diff --git a/Políticas/Apagado.ps1 b/Políticas/Apagado.ps1 new file mode 100644 index 0000000..f9b1dba --- /dev/null +++ b/Políticas/Apagado.ps1 @@ -0,0 +1,30 @@ +# Ejecutar como Administrador +$basePath = "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\Start" + +# Subclaves a ocultar (todas menos HideLock) +$toHide = @( + "HideChangeAccountSettings", + "HideHibernate", + "HidePeopleBar", + "HidePowerButton", + "HideRecentJumplists", + "HideRestart", + "HideShutDown", + "HideSignOut", + "HideSleep", + "HideSwitchAccount", + "HideTaskViewButton", + "HideUserTile" +) + +foreach ($item in $toHide) { + $path = Join-Path $basePath $item + if (!(Test-Path $path)) { + New-Item -Path $path -Force | Out-Null + } + # Behavior = 1 → ocultar + New-ItemProperty -Path $path -Name "value" -Value 1 -PropertyType DWord -Force | Out-Null + Write-Host "Ocultado: $item" +} + +Write-Host "✔ Todos los botones ocultos excepto 'Bloquear'. Reinicia para aplicar cambios."