From 0b7551499d5ac530ff5dc34549865608491056e0 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Fri, 23 May 2025 14:48:48 +0000 Subject: [PATCH] Cambio de interfaz a reg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Se cambia la API por una más robusta. La interfaz reg add. --- Políticas_Acceso.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Políticas_Acceso.ps1 b/Políticas_Acceso.ps1 index eb9f0d9..f60e1f4 100644 --- a/Políticas_Acceso.ps1 +++ b/Políticas_Acceso.ps1 @@ -1,3 +1,2 @@ # Deshabilitar Lock Workstation -New-Item -Path "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Force | Out-Null -Set-ItemProperty -Path "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "DisableLockWorkstation" -Value 1 -Type DWord +reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableLockWorkstation /t REG_DWORD /d 1 /f