Hi guys,
reg query "hklm\software\microsoft\windows nt\currentversion\profilelist" /s | find /i "S-1-5-21">> parent.txt
This gives me:
=========================== parent.txt
HKEY_LOCAL_MACHINE\software\microsoft\windows nt\currentversion\profilelist\S-1-5-21-1187487854-1727753276-2704374040-103101.bak
HKEY_LOCAL_MACHINE\software\microsoft\windows nt\currentversion\profilelist\S-1-5-21-1187487854-1727753276-2704374040-4229
But, when I then do:
for /f %%c in (parent.txt) do @echo %%c
I get:
HKEY_LOCAL_MACHINE\software\microsoft\windows
HKEY_LOCAL_MACHINE\software\microsoft\windows
instead of:
HKEY_LOCAL_MACHINE\software\microsoft\windows nt\currentversion\profilelist\S-1-5-21-1187487854-1727753276-2704374040-103101.bak
HKEY_LOCAL_MACHINE\software\microsoft\windows nt\currentversion\profilelist\S-1-5-21-1187487854-1727753276-2704374040-4229
Any help greatly appreciated.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.