If you’re having trouble getting your computer to stay connected to the network, or if you just want to change the timeout period for your monitor, you can do so from the command line. Here’s how:

  1. Open a command prompt window by clicking on the Start button and typing “cmd” in the search box.
  2. When cmd appears in your results, right-click on it and select “Run as Administrator.”
  3. When the command prompt window opens, type “netstat -an” and press Enter. This will display all of your active network connections.
  4. Next, type “timeout /t 30” and press Enter. This will set the timeout period for your monitor to 30 minutes. ..

The powercfg utility can be used on the command line to change power configuration settings, including the monitor timeout, which is what we’ll use here.

The command syntax:

This will change the monitor setting to stay on for 120 minutes while on AC power. You can use -dc at the end to change the setting for when you are on battery power.