{"id":79110,"date":"2025-07-25T11:05:52","date_gmt":"2025-07-25T05:35:52","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=79110"},"modified":"2025-07-25T11:07:54","modified_gmt":"2025-07-25T05:37:54","slug":"default-system-and-user-environment-variables","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/default-system-and-user-environment-variables\/","title":{"rendered":"List of SYSTEM and USER Environment Variables"},"content":{"rendered":"<p>Windows has a default set of environment variables and their values. There are two types of environment variables: user environment variables (set for each user) and system environment variables (set for everyone). For example, the variable <strong>%USERNAME%<\/strong> represents the name of the currently logged-on user account.<!--more--><\/p>\n<p>If you have inadvertently removed one or more standard environment variables in Windows 10 or 11, the following table can help you manually re-add them.<\/p>\n<h3>Environment variables (System)<\/h3>\n<p>There are the default <strong>System<\/strong> variables.<\/p>\n<table style=\"word-break: break-all;\">\n<thead>\n<tr>\n<th>Variable<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ComSpec<\/td>\n<td>C:\\WINDOWS\\system32\\cmd.exe<\/td>\n<\/tr>\n<tr>\n<td>DriverData<\/td>\n<td>C:\\Windows\\System32\\Drivers\\DriverData<\/td>\n<\/tr>\n<tr>\n<td>NUMBER_OF_PROCESSORS<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>OS<\/td>\n<td>Windows_NT<\/td>\n<\/tr>\n<tr>\n<td>PATH<\/td>\n<td>C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\WINDOWS\\System32\\OpenSSH\\<\/td>\n<\/tr>\n<tr>\n<td>PATHEXT<\/td>\n<td>.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC<\/td>\n<\/tr>\n<tr>\n<td>PROCESSOR_ARCHITECTURE<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>PROCESSOR_IDENTIFIER<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>PROCESSOR_LEVEL<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>PROCESSOR_REVISION<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>PSModulePath<\/td>\n<td>%ProgramFiles%\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules<\/td>\n<\/tr>\n<tr>\n<td>TEMP<\/td>\n<td>C:\\WINDOWS\\TEMP<\/td>\n<\/tr>\n<tr>\n<td>TMP<\/td>\n<td>C:\\WINDOWS\\TEMP<\/td>\n<\/tr>\n<tr>\n<td>USERNAME<\/td>\n<td>SYSTEM<\/td>\n<\/tr>\n<tr>\n<td>windir<\/td>\n<td>C:\\WINDOWS<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Environment variables (User)<\/h3>\n<p>The following are the User variables.<\/p>\n<table style=\"word-break: break-all;\">\n<thead>\n<tr>\n<th>Variable<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>OneDrive<\/td>\n<td>C:\\Users\\<em>username<\/em>\\OneDrive<\/td>\n<\/tr>\n<tr>\n<td>OneDriveConsumer<\/td>\n<td>C:\\Users\\<em>username<\/em>\\OneDrive<\/td>\n<\/tr>\n<tr>\n<td>PATH<\/td>\n<td>C:\\Users\\<em>username<\/em>\\AppData\\Local\\Microsoft\\WindowsApps;<\/td>\n<\/tr>\n<tr>\n<td>TEMP<\/td>\n<td>C:\\Users\\<em>username<\/em>\\AppData\\Local\\Temp<\/td>\n<\/tr>\n<tr>\n<td>TMP<\/td>\n<td>C:\\Users\\<em>username<\/em>\\AppData\\Local\\Temp<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Note:<\/strong><\/p>\n<p>To open the Environment Variables dialog, launch <strong>sysdm.cpl<\/strong>, click &#8220;Advanced&#8221;, and click &#8220;Environment variables&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows has a default set of environment variables and their values. There are two types of environment variables: user environment variables (set for each user) and system environment variables (set for everyone). For example, the variable %USERNAME% represents the name of the currently logged-on user account.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,869],"tags":[],"class_list":["post-79110","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":59342,"url":"https:\/\/www.winhelponline.com\/blog\/commands-not-recognized-internal-external-command\/","url_meta":{"origin":79110,"position":0},"title":"Commands not recognized as an internal or external command in Command Prompt","author":"Ramesh","date":"July 12, 2023","format":false,"excerpt":"When you run a command-line in a Command Prompt window, the following error may appear: 'help' is not recognized as an internal or external command, operable program or batch file. This happens even if the respective executable file is located in the Windows or System32 folder, such as help (help.exe),\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"move windows and system32 to the top of the path variable","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/path-variable-change-order.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/path-variable-change-order.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/path-variable-change-order.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/path-variable-change-order.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":30783,"url":"https:\/\/www.winhelponline.com\/blog\/dism-exe-not-recognized-cmdlet-ps\/","url_meta":{"origin":79110,"position":1},"title":"[Error] Dism.exe is not recognized as the name of a cmdlet","author":"Ramesh","date":"December 11, 2022","format":false,"excerpt":"When you run a DISM.exe command-line in PowerShell, the command may not be recognized. The following error is shown when you do so: dism.exe : The term 'dism.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"dism.exe not recognized - add system32 to PATH","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/dism-system32-path-missing-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/dism-system32-path-missing-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/dism-system32-path-missing-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":26688,"url":"https:\/\/www.winhelponline.com\/blog\/restore-path-environment-variable-deleted\/","url_meta":{"origin":79110,"position":2},"title":"How to Recover PATH Variable After Deleting it Accidentally","author":"Ramesh","date":"May 18, 2022","format":false,"excerpt":"The PATH is a variable that Windows uses to locate needed executables, especially from the command line. Unfortunately, there are situations where users accidentally delete the PATH variable. This can happen when users inadvertently overwrite the PATH data rather than appending them. There are also cases where some buggy applications\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"recover path environment variable - shadow copy hive","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/05\/recover-path-variable-shadowcopy.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/05\/recover-path-variable-shadowcopy.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/05\/recover-path-variable-shadowcopy.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2978,"url":"https:\/\/www.winhelponline.com\/blog\/set-user-environment-variable-setx-windows-10\/","url_meta":{"origin":79110,"position":3},"title":"How to Set User Environment Variable Using Setx","author":"Ramesh","date":"April 18, 2016","format":false,"excerpt":"You probably know how to add or remove environment variables using GUI in Windows. It can be done by launching sysdm.cpl \u2192 Advanced \u2192 Environment Variables. Alternatively, one can run the following command in the Run dialog to launch the Environment Variables dialog directly: rundll32 sysdm.cpl,EditEnvironmentVariables (To set per-system environment\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Command Prompt","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/04\/cmd.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4094,"url":"https:\/\/www.winhelponline.com\/blog\/windir-not-resolved-recognized-fix-env-variable\/","url_meta":{"origin":79110,"position":4},"title":"Windir Path Not Resolved or Recognized. How to Fix the Environment Variable?","author":"Ramesh","date":"September 20, 2016","format":false,"excerpt":"SystemRoot and Windir are two built-in environment variables that point to your Windows directory. Although both are built-in variables, SystemRoot variable is read-only, but Windir variable can can be removed or edited, and its setting is stored in the registry.If %Windir% is not recognized or resolved by the system, your\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"windir not resolved or recognized","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/09\/windir-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":52476,"url":"https:\/\/www.winhelponline.com\/blog\/ubuntu-wsl-utiltranslatepathlist-failed-translate\/","url_meta":{"origin":79110,"position":5},"title":"Ubuntu on WSL ERROR: UtilTranslatePathList:2671: Failed to translate","author":"Ramesh","date":"June 9, 2023","format":false,"excerpt":"Whenever I launch Ubuntu on WSL, you may get the \"UtilTranslatePathList:2671: Failed to translate\" error. Here's a sample error message: <3>WSL (515) ERROR: UtilTranslatePathList:2671: Failed to translate D:\\xpdf-tools-win-4.04\\bin64 Despite this error, WSL may work fine. But the above error always appears when you start Ubuntu on WSL. Cause One or\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"wsl invalid path ubuntu UtilTranslatePathList","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/wsl-invalid-path-error-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/wsl-invalid-path-error-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/wsl-invalid-path-error-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/wsl-invalid-path-error-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/79110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=79110"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/79110\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=79110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=79110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=79110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}