How to Update the PATH Variable in Windows Server

May 13, 2024 / How-to Guide

Adding a directory to the PATH environment variable on Windows Server allows you to run executable files and commands from any location using Command Prompt or PowerShell. This is especially useful when working with custom applications, developer tools, or server utilities that are not included in the default system path.

Steps to update the PATH variable in Windows Server:

  1. Open Start Search, type env, and select Edit the system environment variables.
    Edit the system
  2. Click the Environment Variables… button.
    environment variables
  3. In the System Variables section, locate Path, and click edit.
    system variales
  4. In the Edit environment variable UI, click New to add the new path. You can also edit or reorder existing paths.
    new
  5. Dismiss all dialogues by selecting OK. Your changes are saved.
  6. Restart apps or the machine to ensure all apps identify the PATH change.
  7. To test, open a new PowerShell window and type:
    $env:PATH

In this manner, you can add to the PATH on Windows Server. Still, if you encounter any issues, get help from our technical team at your earliest.

Managing system configurations in Windows?
Gain full control over your environment with a Windows VPS solution.

Once your PATH is set, learn How to use CMD to Delete a File or a Folder

Spread the love