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:
- Open Start Search, type env, and select Edit the system environment variables.

- Click the Environment Variables… button.

- In the System Variables section, locate Path, and click edit.

- In the Edit environment variable UI, click New to add the new path. You can also edit or reorder existing paths.

- Dismiss all dialogues by selecting OK. Your changes are saved.
- Restart apps or the machine to ensure all apps identify the PATH change.
- 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.
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