Cambio de interfaz a reg
Se cambia la API por una más robusta. La interfaz reg add.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user