During the initial setup of Windows or that account on the PC, someone chose the name "USER". If you setup with a Microsoft account, by default it will use the first 5 characters of your email or phone number. There is no way to change this without breaking things, if you want a different account name you are best off creating a new local user account with the spelling you desire, then you can migrate your data to the new account. Answer from Froggypwns on reddit.com
🌐
Reddit
reddit.com › r/windowshelp › my user folder (c:\users\) is called "user". anyone know why? how can i change this?
r/WindowsHelp on Reddit: My user folder (C:\Users\<username>) is called "USER". Anyone know why? How can I change this?
January 25, 2023 -

So right now it's "C:\Users\USER". Anyone know how this might have happened?

Where is the name of this folder usually set? I'm assuming during setup?

Top answer
1 of 2
2
During the initial setup of Windows or that account on the PC, someone chose the name "USER". If you setup with a Microsoft account, by default it will use the first 5 characters of your email or phone number. There is no way to change this without breaking things, if you want a different account name you are best off creating a new local user account with the spelling you desire, then you can migrate your data to the new account.
2 of 2
1
Hi u/PsyduckAF , thanks for posting to r/WindowsHelp ! Don't worry, your post has not been removed. To let us help you better, try to include as much of the following information as possible! Posts with insufficient details might be removed at the moderator's discretion. Model of your computer - For example: "HP Spectre X360 14-EA0023DX" Your Windows and device specifications - You can find them by going to go to Settings > "System" > "About" What troubleshooting steps you have performed - Even sharing little things you tried (like rebooting) can help us find a better solution! Any error messages you have encountered - Those long error codes are not gibberish to us! Any screenshots or logs of the issue - You can upload screenshots other useful information in your post or comment, and use Pastebin for text (such as logs). You can learn how to take screenshots here . All posts must be help/support related. If everything is working without issue, then this probably is not the subreddit for you, so you should also post on a discussion focused subreddit like r/Windows . I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Discussions

C:\Users\%user%\Desktop refers to a location that is unavailable. . . .
C:\Users%user%\Desktop refers to a location that is unavailable. . . . This happened after i made a GPO for folder redirection. I tested it profusely, and it seemed to work just fine before i started taking baby steps/(more testing) while implementing it. So all looked good and i went for it. More on community.spiceworks.com
🌐 community.spiceworks.com
13
4
April 4, 2016
C:\users\%user% is missing
My "This PC .. Desktop" server path properly shows the "Desktop" location as C:\Users%user%\Desktop. However, when I run that path thru file explorer, I can only find "C:\users\Desktop" (the %user% is missing from the Users… More on learn.microsoft.com
🌐 learn.microsoft.com
1
10
July 8, 2022
How do you store a list of users (C:\Users) in PowerShell to use later on in the same script? - Stack Overflow
I am having issues trying to figure out how to make this script work. I need to get a list (either stored in powershell somehow or saved to a text file) of users from the C:\Users folder and then ... More on stackoverflow.com
🌐 stackoverflow.com
The python code needs to get the user's username to open a file on the C:/Users/USERNAME/ directory - Stack Overflow
I want to open a file in the desktop, or anywhere else in the C:/Users/USERNAME/ directory. but I don't know what the code to get the username is. for example, in batch-file programming I could use... More on stackoverflow.com
🌐 stackoverflow.com
Top answer
1 of 2
13

Yes, %LocalAppData%\Programs is the default folder to "install programs for a single user only" in MS Windows. It's been available since Windows 7/Windows Server 2008 R2.

Such programs are often called Per-User Applications (PUA) in MS documents. While the knowledge about the existence of PUA now is widely spread, many still are not aware of the infrastructure, environment, and tools that MS provided to support them. The folder in question is a part of that infrastructure.

Note: This folder may have a different name depending on the specific Windows setup. The programs should use the corresponding KNOWNFOLDERID constant FOLDERID_UserProgramFiles to locate it properly.

References:

  • Windows Installer Documentation → About Windows Installer → Installation Context
  • The Windows Shell Documentation → Shell Constants, Enumerations and Flags → KNOWNFOLDERID → FOLDERID_UserProgramFiles
2 of 2
5

However, I'm still looking for more straightforward answers. Is C:\Users\MyUser\AppData\Local\Programs the folder where installers install programs for a single user only?

Applications installed to %LocalAppData% would only be available to the user that installed it. Additionally, if a user were on an Active Directory domain, it wouldn’t be synchronized to other machines.

%LocalAppData% is not synchronized between the domain, which means the data only exists locally on the machine.

Is it like a Program Files folder but only for that particular user?

%LocalAppData% is not like %ProgramFiles% other than it’s just another directory. There are significant differences between the two directories.

Is this the recommended directory for installing single-user programs?

%LocalAppData% is a perfectly valid directory that applications can be installed to. In fact, a user can install an application to any directory they have the proper permissions to, there really are no invalid application installation directories.

I want to figure out if that’s the directory to install programs to for that user.

You certainly can choose to install an application like Visual Studio Code to %LocalAppData%\Programs to this directory if you want.

Since you have been specifically interested in Visual Studio Code, I found the following documentation on it.

VS Code provides both Windows user and system level setups. Installing the user setup does not require Administrator privileges as the location will be under your user Local AppData (LOCALAPPDATA) folder. User setup also provides a smoother background update experience.

The system setup requires elevation to Administrator privileges and will place the installation under Program Files.

By default, VS Code is installed under C:\users\{username}\AppData\Local\Programs\Microsoft VS Code.

Source:

  • What is "%localappdata%\Programs" ?

  • How to COMPLETELY uninstall Visual Studio Code from Windows 10

  • What is the difference between ProgramData and AppData?

  • Visual Studio Code on Windows

🌐
Ten Forums
tenforums.com › user-accounts-family-safety › 99715-logged-user-not-shown-c-users-user.html
logged in user not shown in c:\users\user - Windows 10 Help Forums
December 6, 2017 - When I use "whoami" the response is always "user" not "Joe". ... Hello lmpster, and welcome to Ten Forums. :) When you open a command prompt while signed in as "Joe", what path does the prompt show to confirm? This will be the user profile folder for the account.
🌐
Super User
superuser.com › questions › 1603643 › what-who-is-c-users-authorised-user-on-windows-10
What/who is C:\Users\authorised user on Windows 10? - Super User
November 20, 2020 - I have a little script that walks through the visible folders under C:\Users. It skips over C:\Users\Public but recently it's been finding a folder called "C:\User\authorised user". Any i...
Find elsewhere
🌐
Inspire-tech
support.inspire-tech.com › hc › en-us › articles › 360000237001-Why-is-there-a-directory-called-C-Users-username-EasiShare-and-what-is-it-for
Why is there a directory called “C:\Users\%username%\EasiShare” and what is it for?
This directory is termed as “temp folder” because EasiShare will first downloads the files to this folder before opening the files. If the files are not on Sync mode, these files will be sent to the Recycle Bin after the copy of the files have been uploaded back to the server successfully and restores the used space on user's computer.
🌐
Seven Forums
sevenforums.com › general-discussion › 219015-how-do-i-rename-c-users-owner-folder-safely.html
How do I rename the C:/Users/Owner folder safely? Solved - Windows 7 Forums
Is there anyway to safely change this without inconvenient side-effects? The goal is to have it be C:/Users/Mary. This problem is on a netbook with Windows 7 Starter (32 bit). Set up another user.. (Mary). Make sure you give the proper rights to Mary (administrator).
Top answer
1 of 2
2

What I need is a folder filled with .txt files with the name of each computer name that is in the ComputerUp.txt file

Using the file system for this is unnecessary - you can store this information in a variable in-memory instead:

# Read the list of computers from disk
$Computers = Get-Content .\path\to\ComputerUp.txt

# Create a dictionary to hold ComputerName->ListOfUsers data
$UsersPerComputer = [ordered]@{}

foreach($computer in $Computers){
  # enumerate the remote folder names
  $listOfNames = Get-ChildItem \\$Computer\C$\Users |Select-Object -ExpandProperty Name

  # assign the list to the dictionary, use the computer name as the key
  $UsersPerComputer[$computer] = $listOfNames
}

Now you can retrieve the list for a single computer by name:

$targetMachine = 'Computer123'

$UsersPerComputer[$targetMachine] # this will resolve to the list of user folder names we got from Computer123
2 of 2
2

Seems like you're confusing foreach with ForeEach-Object.

  • With foreach your script would look like this:
$Computers = Get-Content "C:\Temp\Cache Cleanup Project\June 10 Lists\ComputerUp.txt"

foreach ($Computer in $Computers)
{
    (Get-ChildItem "\\$Computer\C$\Users").Name |
    Out-File "C:\temp cache cleanup project\Computer Users\$Computer.txt"
}
  • With ForEach-Object it would look like this:
Get-Content "C:\Temp\Cache Cleanup Project\June 10 Lists\ComputerUp.txt" | ForEach-Object {
    (Get-ChildItem "\\$_\C$\Users").Name |
    Out-File "C:\temp cache cleanup project\Computer Users\$_.txt"
} 

As a side note, doing this should get the job done exponentially faster:

$Computers = Get-Content "C:\Temp\Cache Cleanup Project\June 10 Lists\ComputerUp.txt"

$result = Invoke-Command -ComputerName $Computers -ScriptBlock {
    Get-ChildItem C:\Users
}

$result | Group-Object PSComputerName | ForEach-Object {
    $_.Group.Name | Out-File "C:\temp cache cleanup project\Computer Users\$($_.Name).txt"
}
🌐
Eight Forums
eightforums.com › windows 8 forums › user accounts and family safety
Solved - Change C:\Users Username | Windows 8 Help Forums
January 22, 2013 - turn on win8 admin acct and boot to it , go to users in control panel and chose manage another acct and change the name of the other acct .that how i do it anyway ,might give you the results you are looking for .,i could be wrong but i think if you create a new user you might have to reinstall some of programs already on the computer how to turn on win8 hidded admin acct see link below ,or i just right click on Computer and go manager ,then go local user groups and open users and right click on admininstrator and go properties ,and unchek the disable box ., http://www.eightforums.com/tutorials/9650-built-administrator-account-enable-disable-windows-8-a.html
Top answer
1 of 3
78

Only C:\ProgramData actually exists as a "real" folder. C:\Users\All Users is a symbolic link to C:\ProgramData. That is, C:\Users\All Users points to C:\ProgramData, so if you navigate to the former, you are automatically redirected to the latter. That is why they appear identical.

C:\ProgramData is known as the "All Users Profile" and is required for the correct operation of Windows 7. Please do not delete it, if Windows even lets you.

C:\Users\All Users is there for backward compatibility. Poorly-written applications do not retrieve the path of the All Users Profile correctly. They say, "Windows, give me the name of the profiles directory." Windows says, "C:\Users." And the program says, "Okay, I know the All Users profile is called All Users and it's inside the profiles directory, so it must be C:\Users\All Users." Really, what the program should say to Windows is, "Windows, give me the path of the all users profile," to which Windows would say, "C:\ProgramData."

2 of 3
13

They are the same folder. Users\All Users is a junction to \ProgramData. From Application Compatibility: Junction Points and Backup Applications:

All Users legacy folder junction requirements: 

Sym links creation location     Destination  
..\Users\All Users              ..\ProgramData

Users\All Users is a link to the ProgramData folder for legacy reasons. It is a junction point (symlink in the UNIX world) and not a copy of the data. I have only the ProgramData folder on my Windows 7 (x64) computer. My guess it is safe to delete the junction point, but not necessary. I don't recommend deleting ProgramData.

🌐
Autodesk
autodesk.com › support › technical › article › caas › sfdcarticles › sfdcarticles › Windows-cannot-find-C-Users-UserName-AppData-Local-Autodesk-when-running-a-custom-install-or-creating-a-deployment.html
"Windows cannot find 'C:\Users\username\AppData\Local\Autodesk'..." when running a custom install or creating a deployment
October 8, 2023 - An Administrator profile is required to create a deployment or to distribute a deployment, files are extracted in the temp folder along with logs that are placed in the C:\Users\username\AppData\Local\Autodesk folder. After creating the deployment image an Administrator profile is required to test and distribute the deployment, in order to install the product on a workstation or to deploy to other workstations
🌐
Super User
superuser.com › questions › 1830298 › error-in-c-users-username
windows 10 - Error in C:/users/<username> - Super User
February 15, 2024 - It would appear that there's some incorrect quoting somewhere in NPM, so it chokes on the ampersand. (create-react-app is deprecated by the way, don't use it.) // Renaming profile folders isn't supported on Windows. ... @DanielB Having an ampersand in my username should have an affect on other functionality of windows correct?