This tutorial will show you how to get a list of all account names and their user profile folder paths on a local Windows 11 and Windows 10 PC.
When adding a new user account in Windows 11, a profile for the account is automatically created when the user signs in to the new account for the first time.
A user profile is a collection of settings that make the computer look and work the way you want it to for a user account. It is stored in the user's C:\Users\<user name> profile folder, and contains the account's settings for desktop backgrounds, screen savers, pointer preferences, sound settings, and other features. User profiles ensure that your personal preferences are used whenever you sign in to Windows.
A user's profile folder...