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