- Windows all users path
- Вопрос
- Ответы
- How do I view all the users on a Windows computer? (5 ways)
- Quick Steps:
- 1. How to see users using the Windows command line (PowerShell & CMD list users)
- 2. How to use PowerShell to get all users on a computer
- 3. How to see the list of all user accounts in Computer Management
- 4. How to see the list of active user accounts using the Control Panel
- 5. How to see the list of active user accounts on the Windows sign-in screen
- Did you find many hidden user accounts on your Windows PC?
- Структура профиля пользователя
- Relocation of the Users and the ProgramData directories to a drive other than the drive that has the Windows directory
- More information
- Information that is documented in the current release of the Windows AIK and the Windows OPK
- The Profiles Directory setting
- The ProgramData setting
Windows all users path
Вопрос
Как получить доступ к desktop All Users на сервере Windows 2008 R2. Надо часто рваскидывать ярлыки для всех пользователей сразу на рабочий стол. Помогите плиз
Ответы
(не нужно «ломиться» туда, где закрыто :-)) не то что туда «нельзя», туда просто «не нужно!»)
Познакомьтесь с организацией личных папок в Win7 или WS2008R2. Там многие объекты представляют собой не папки, а junctions. (Поэтому в них пытаться «зайти» просто бессмысленно. )
Думаю, Вам нужна папка C:\Users\Default\Desktop — все новые пользователи будут «подхватывать» ярлыки оттуда.
Если нужно создавать ярлыки для уже существующих пользователей, то Ваш подход вообще неверный — нужно пользоваться Group Policy Preferences (очень удобно!)
(еще можно работать с папкой C:\Users\Public\Desktop. но это «чревато» — все добавления-удаления ярлыков будут сразу сказываться на всех локальных пользователях компьютера! легко удалить что-то нужное. )
How do I view all the users on a Windows computer? (5 ways)
Sometimes, you may need to extract a list of all the user accounts on a Windows computer. Or you may want to know the hidden user accounts that exist alongside your user account. To help you out, we compiled a list of five methods that you can use to see all the users, including the hidden ones created by Windows or third-party apps that you installed. Here they are:
Quick Steps:
- Open CMD or PowerShell.
- Type net user, and press Enter.
- Net user lists the users that have accounts configured on a Windows PC, including hidden ones or disabled user accounts.
NOTE: This guide covers Windows 10, Windows 7, and Windows 8.1. If you don’t know the Windows version that you have, read How to tell what Windows I have (11 ways).
1. How to see users using the Windows command line (PowerShell & CMD list users)
This method works both in the Command Prompt and PowerShell. Open the command-line app that you prefer, type net user, and press Enter. Net user lists the users that have accounts configured on a Windows PC, including hidden ones or disabled user accounts. The user accounts are listed by their internal names that Windows uses behind the scenes, not by their full display name that you see when you sign in to Windows.
Run net user to make Windows CMD show users
You can also have the net user list stored in a text file that opens in Notepad or any other text editor. Type net user > filename.txt, and a file with the name you provided is created under “C:\Users\Your User Name.”
Save the net list of users to a file using net user > filename.txt
If you want to export the CMD list of users to a text file that’s saved in a location you choose, enter net user > “path\filename.txt” and press Enter.
Export the CMD list of users to a file at a specified location
A neat trick is using this command to find information about a specific user account: type net user username and press Enter. Windows then displays helpful information about that user account, like when the password was set the last time, when it expires (if it’s set to expire), the groups it’s a part of, and more.
Getting details about a user account in CMD, using the net user command
If you want to know more about this command and all its parameters, go to this documentation page: Net user.
2. How to use PowerShell to get all users on a computer
Besides the net user command, here’s another command that you can use in PowerShell to view all users in Windows 10 or previous versions: Get-WmiObject Win32_UserAccount -filter “LocalAccount=True” | Select-Object Name,FullName,Disabled.
Get-WmiObject Win32_UserAccount -filter “LocalAccount=True” | Select-Object Name,FullName,Disabled
Alternatively, if you use Windows 10, you can also run the simpler get-localuser command, as pointed out by one of our readers.
Using PowerShell to get all users on a computer
3. How to see the list of all user accounts in Computer Management
Another method that displays all user accounts, including hidden users or disabled ones, involves using Computer Management. Open Computer Management, and go to “Local Users and Groups -> Users.” On the right side, you get to see all the user accounts, their names as used by Windows behind the scenes, their full names (or the display names), and, in some cases, also a description.
Windows list of users displayed in Computer Management
Double-click or double-tap on a user account to learn more about its properties and settings, including the user groups that it is part of.
4. How to see the list of active user accounts using the Control Panel
A method that is less geeky but which also displays less information involves opening the Control Panel. After you start it, go to “User accounts” or “User Accounts and Family Safety,” depending on the Windows version that you have.
The User Accounts entry from the Control Panel
Then, click or tap on User accounts.
Opening the User Accounts settings
Now you see your user account, information about it, and several links. Click or tap the link that says “Manage another account.”
Manage another account
Now you see the active, not-hidden user accounts in Windows, whether they are local accounts, administrators, etc.
Control Panel shows the list of users on a Windows computer
With this method, you cannot see hidden or disabled user accounts.
5. How to see the list of active user accounts on the Windows sign-in screen
The obvious and most straightforward method is to look at the sign-in screen just before you log into Windows. You should see all the active (not hidden) user accounts that exist in Windows on this screen. If you are using Windows 10, this list is shown in the bottom-left corner of the sign-in screen.
Windows 10 list of users shown on the sign-in screen
If you are using Windows 7, all active user accounts are displayed front and center.
Windows 7 list of users shown on the sign-in screen
The same is true when using the Windows 8.1 sign-in screen.
Windows 8.1 list of users shown on the sign-in screen
The downside of this method is that you cannot see hidden or disabled user accounts.
Did you find many hidden user accounts on your Windows PC?
We highly recommend trying the first three methods for identifying all the user accounts that exist on your Windows computer or device. You may be surprised to see that some of your apps created hidden user accounts that you had no idea existed. Before closing this tutorial, share in a comment whether you found hidden user accounts on your PC and how many of them were there. We are curious to know.
Структура профиля пользователя
С тем, что такое профиль пользователя в операционной системе Windows мы разобрались в прошлый раз.
В этой заметке разеремся со структурой папок в профиле пользователя. Это позволит нам понять идеологию работы с данными, которая по умолчанию заложена в операционной системе Windows.
Напомню, что профили находятся в папке Пользователи Windows 7 (в английской версии Windows папка называется Users) и в папке Documents and Settings Windows XP.
Когда вы зайдете в папку Пользователи (Users) или Documents and Settings, то, вероятно, кроме папок с именами созданный на компьютере учетных записей пользователей обнаружите папку Общие. В ней находятся настройки одинаковые для всех пользователей компьютера, а также общие папки и файлы. По моему наблюдению редко кто пользуется общим доступом к папкам и файлам, поэтому папка Общие для нас практически не представляет интереса.
После создания учетной записи пользователя на компьютере папка профиля еще не создается. Она появится позже, когда вы зайдете на компьютер под вновь созданной учетной записью. При этом название папки профиля всегда будет соответствовать имени учетной записи, но тут есть один важный момент — имя своей учетной записи вы всегда можете изменить через Панель управления, но при этом название папки вашего профиля останется без изменений !
Набор папок внутри папки профиля одинаков для всех пользователей. Он создается по умолчанию в момент первого входа в компьютер под новой учетной записью.
В операционной системе Windows существует специальный шаблон профиля пользователя. Именно он по умолчанию используется при создании новых учетных записей. Но где же этот шаблон находится?
Оказывается, что он расположен в этой же самой папке, но он скрыт от посторонних глаз.
Далее я буду разбирать структуру папок профиля на примере Windows 7. В Windows XP и в Windows 8 эта структура практически ничем не отличается.
Чтобы увидеть папку с шаблоном, нужно включить отображение скрытых и системных файлов в Проводнике Windows. Делается это следующим образом – в Параметрах папок и поиска программы Проводник, необходимо на вкладке Вид снять галочки напротив пунктов Скрывать защищенные системные файлы и Показывать скрытые файлы и папки.
Теперь в Проводнике отображаются скрытые и системные папки. Значки скрытых папок имеют немного «затуманенный» вид:
Вы видите, что появилось несколько новых папок. В моем случае это папки «All Users», «Default», «Default User» и «Все пользователи». Без углубления в подробности скажу, что папки «Default User» и «Все пользователи» не являются папками в обычном понимании этого слова. Это своеобразные ярлыки (ссылки), которые создаются операционной системой автоматически и они предназначены для совместимости программ и различных версий операционной системы Windows. В Windows 7 тоже самое можно сказать и о папке «Documents and Settings», которая находится в корне диска C: и также является скрытой.
Итак, новый профиль создается в системе на основе параметров и настроек, находящихся в папках “Default” и “All Users”. Именно эти папки определяют настройки по умолчанию для новых профилей, а также настройки одинаковые для всех пользователей компьютера.
Теперь давайте перейдем в папку любого пользователя. Вы видите, что у некоторых папок на их значках отображается стрелочка?
Этот значок указывает на то, что эта папка является ярлыком. Такие ярлыки также применяются для совместимости операционной системы с программами.
Давайте вновь установим галочку напротив пункта Скрывать защищенные системные файлы в Параметрах папок и поиска программы Проводник. Теперь в Проводнике будут отображаться только интересующие нас папки.
Сначала предлагаю разобраться с папками, которые больше относятся к информации, которую мы храним на компьютере, нежели к настройкам нашей учетной записи. Итак, на скриншоте ниже вы видите, каким образом папки профиля пользователя связаны с элементами окна программы Проводник.
Всю личную информацию пользователь может хранить в своих папках-библиотеках и эти данные будут доступны только ему. Другие пользователи не будут иметь доступ к этой информации. Как вы теперь понимаете, в программе Проводник отображаются папки вашего профиля, соответственно и информация, которую вы поместите в Библиотеки, например, в папку «Видео» или «Изображения» фактически будет хранится в вашем профиле по адресу C:\Пользователи\Имя пользователя\Мои видеозаписи или C:\Пользователи\Имя пользователя\Изображения.
Тоже самое касается и других элементов, таких как папка «Загрузки» или созданные и сохраненные вами поисковые запросы (папка «Поиски»).
Кстати, обратите внимание, что вся информация (файлы и папки), которую вы храните на своем Рабочем столе, находится в папке «Desktop». В этом вы легко сможете убедиться, заглянув в эту папку. Если вы из нее удалите файл, то он исчезнет и с Рабочего стола, и наоборот — скопированная в нее информация тут же появится и на Рабочем столе.
Итак, мы рассмотрели папки пользовательского профиля, с которыми мы имеем дело практически каждый день при работе на компьютере. Осталась еще одна очень важная папка, которая по умолчанию является скрытой – «AppData». В этой папке находятся основные настройки пользовательского интерфейса Windows и программ, установленных на компьютере. О ней более подробно расскажу в следующий раз.
Relocation of the Users and the ProgramData directories to a drive other than the drive that has the Windows directory
This article describes the changes in policy for the relocation of the Users directory and the ProgramData directory to a drive other than the %systemdrive% drive in Windows operating systems.
Original product version: В Windows 10 — all editions, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2
Original KB number: В 949977
Using the ProgramData setting to redirect folders to a drive other than the system volume will block your ability to upgrade to future versions of Windows.
By changing the default location of the user profile directories or program data folders to a volume other than the system volume, you cannot service your Windows installation. Any updates, fixes, or service packs cannot be applied to the installation. We recommend that you do not change the location of the user profile directories or program data folders.
Beginning with Windows 10, OS upgrades are supported even if user profiles are redirected to another drive. For example, if you are using Windows 8.1 with ProfilesDirectory set to D:\, you can upgrade to Windows 10.
More information
%systemdrive% is defined as the drive that contains the Windows directory. There are various reasons why you may want to relocate the Users directory or the ProgramData directory to other drives.
For Windows, the most common reasons are as follows:
- It is easier to back up data from a single drive and from a drive that contains only user files.
- It is easier to rebuild the operating system drive on a user’s computer if user data is located on a separate volume. In this case, the drive that contains the Windows directory can be formatted, and Windows can be reinstalled without having to worry about how to remove user data.
For Windows Server, the most common reason is as follows:
- There are performance improvements when you relocate the Users directory and the ProgramData directory to a drive other than the operating system drive.
For information about how to use the answer file setting, see Answer Files Overview.
If you use the FolderLocations unattend setting to move user data to a location other than the %systemdrive% drive, some servicing components may not be installed. These components may include critical updates, security updates, hotfixes, and service packs.
Information that is documented in the current release of the Windows AIK and the Windows OPK
The Windows Automated Installation Kit (AIK) and the Windows OEM Preinstallation Kit (OPK) for Windows and Windows Server contain documentation warnings that are related to the usage of the Profile Directory and ProgramData unattend settings. These are the settings that let you relocate the Users directory and the ProgramData directory to locations other than their default locations. This includes other drives.
These warnings were included before the servicing stack update (update 937287) was available. This update addresses the issue that is discussed in the warning text. Windows AIK and the Windows OPK documentation reads as follows. You cannot upgrade such installations to the next version of Windows.
Setting information from the Windows AIK and Windows OPK documentation:
The Profiles Directory setting
The Profiles Directory setting specifies the path of the user profile folder.
Use this setting to move the user profile folder (typically %SYSTEMDRIVE%\Users) to another location during Setup or Sysprep. The destination path can be on a volume other than the system drive, as long as it meets the following requirements:
- It must be on an NTFS volume.
- It must not be the path of another operating system user profile folder.
- It must not contain any serviceable components.
This setting can be used to keep system data separate from user data. If Windows is reinstalled on the system volume, a user who has administrative rights can manually recover data from this location.
Using ProfilesDirectory to redirect folders to a drive other than the system volume blocks upgrades. Using ProfilesDirectory to point to a directory that is not the system volume will block SKU upgrades and upgrades to future versions of Windows. For example, if you use Windows 8 together with ProfilesDirectory set to D:\, you cannot upgrade to Windows 8 Pro or to the next version of Windows. The servicing stack does not handle cross-volume transactions, and it blocks upgrades.
The ProgramData setting
The ProgramData setting specifies the path of the program data folder.
These settings should be used only in a test environment. By changing the default location of the user profile directories or program data folders to a volume other than the System volume, you cannot service your Windows installation. Any updates, fixes, or service packs cannot be applied to the installation. Microsoft recommends that you do not change the location of the user profile directories or program data folders. This is especially true for Microsoft Store apps. Changing the location of %programdata% will cause errors when you install, uninstall, or update these apps.
If you use the unattend settings to set up the operating systems that are listed in this article, we will provide commercially reasonable efforts to support your scenario.