.Bat that extracts an specific regsitry key (SID) to a .txt or .reg file
ExtractSID.bat:
REG QUERY HKU |Findstr /R "DEFAULT S-1-5-[0-9]*-[0-9-]*$" >> SID.txt
With result on file SID.txt:
HKEY_USERS\.DEFAULT
HKEY_USERS\S-1-5-21-57989841-484763869-1957994488-1003
What i need on SID.txt:
S-1-5-21-57989841-484763869-1957994488-1003



