
@echo off
for /f "usebackq tokens=2* delims= " %%i in (`reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /s /v "ProfileImagePath"`) do echo.%%j
pause

Код: Выделить всё
@echo off
for /f "tokens=2*" %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /s /v "ProfileImagePath"^|findstr /rc:"^[ ][ ]*"') do echo.%%j
pauseКод: Выделить всё
wmic path win32_userprofile get localpath | findstr /vric:"localpath"Код: Выделить всё
wmic path win32_userprofile get localpath | findstr /vric:"localpath"Код: Выделить всё
dir "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" | %{$_.GetValue('ProfileImagePath')}