How to make server not go into LOCK mode continuously

If we make the changes below in "gpedit.msc" from run command. The system will NOT GO into lock mode. The below changes I made it in Windows Server 2012 R2.

1) Go to run command and pass value as "gpedit.msc" and follow the path below.

2) Computer Configuration-->Administrative Templates-->System-->Power Management-->Video and Display Setting-->Turn off the display(plugged in)




and make the change below.



 Invoke-Command `
 -ComputerName SERVERA.RAMESHTECH.COM,SERVERB.RAMESHTECH.COM,SERVERC.RAMESHTECH.COM `
 -ScriptBlock {powercfg /change monitor-timeout-ac 0
 powercfg /change monitor-timeout-dc 0
 powercfg /change standby-timeout-ac 0
 powercfg /change standby-timeout-dc 0
 } -Verbose

Comments

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

Pre login Handshake or Connection Timeout Period

Transparent Data Encryption(TDE) with Master Key and Certificate in SQL Server