Cambio de interfaz a reg

Se cambia la API por una más robusta. La interfaz reg add.
This commit is contained in:
2025-05-23 14:48:48 +00:00
parent c2a6232f7b
commit 0b7551499d

View File

@@ -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