Windows: Prevent Lock Screen Timeout When Idle

Corporate Windows computers and servers are usually configured to lock the screen after some time of inactivity.

This is especially inconvenient when your remote desktop session keeps disconnecting with “RDP Session Timeout” each time after few minutes of being idle.

In this article i will show how to stop computer from locking and keep the remote desktop session alive without any 3rd party tools and admin privileges, but with just 2 lines in PowerShell. (more…)

Run CMD as Administrator – Command Prompt

The elevated command prompt allows users to execute commands with administrative privileges.

By default, when opening the command line in Windows, you will not have full rights and not all commands will work.

In this short note i am showing the easiest and quickest way of how to run CMD as administrator.

This method of opening the elevated command prompt works in Windows 7, Windows 10 and higher. (more…)

Install Maven in Windows

Apache Maven is a command-line tool for building and managing dependencies of Java-based applications.

Maven requires Java and before installing Maven in Windows it needs to ensure that Java Development Kit (JDK) is installed and JAVA_HOME environment variable is set.

As only this requirement is satisfied, you can download and install Maven.

In this note i will show how to install Maven in Windows, set the MAVEN_HOME environment variable and add Maven to PATH. (more…)

File is Open in Another Program: Delete – Find Locking Process

If you try to delete a file or a folder locked by some process (open in another program) in Windows you may get an error as follows:

The action can’t be completed because the file is open in another program

The action can’t be completed because the folder or a file in it is open in another program

To delete a file or a folder that is open in another program it is required to identify and kill the process that is holding that file or folder open. (more…)

Windows: Environment Variables Editor – Quick Shortcut

The most convenient way to create and modify environment variables in Windows is to use the default environment variables editor.

Unfortunately it is not easy to find where to launch this tool from that is quite annoying if you have to edit environment variables in Windows often.

In this article i will show how to access the editor of environment variables in Windows and how to create a shortcut for quick access. (more…)

Windows: `Watch` Equivalent – CMD & PowerShell

The watch command in Linux is used to execute a command periodically and show the output.

This is extremely useful if you need to track any changes in the output of a repeatedly executed command.

There is no direct equivalent for the watch command in Windows, however the same result can be achieved using the while loop in a Windows PowerShell or the for loops in a Windows command-line prompt (CMD). (more…)