Use CR for Carriage Return so it knows to findstr on next line. Look at finstr commands and see how they use them. Google some examples to see how you can apply it. Trial and error...best way to learn. I am sure others here might even have a better idea other then mine but hey it is a start. lol
If it is all on one line it should be easier now...use findstr to look for it then save it to file by using ) >test.txt file. You should be able to do that easily IF on one line now.
try find " - - - - " and see results. 5 spaces for where numbers would be....for some reason the forum is adjusting my spaces so I wrote this note. lol Might try this... findstr /m " - - - - " msdm.txt Sorry you might need to set the key (assign to %key%) before being able to save to another file. ( %key% ) >test.txt Refine and adjust to your needs. I could be wrong but the whole point is to set what you are looking for and add to findstr to search in msdm.txt file then to save that info to another file like you mentioned before. If you wish it not to be shown once you know it is working then add your >nul to nul out output to screen....that's up to you.
Why not just ask alphawaves if you can use his oem-dm key dumper which puts it like it should to a txt file? Might make it simpler. This would work then for no more conversion stuff... Note: You will need to edit the above to what ever the oem-dm key dumper names the text file of course.
Nope. Every tool, I've tried these few weeks, won't dump any key but ReadKeyFromUEFI under WinPE x86. Apart from that, I still cannot use Alphawaves' OEM-DM.exe on DVD - 'cause it always outputs a txt. Unless copy it to HDD or %TEMP% ... But I am after WinPE AIO solution. Like Detect OEM-DM key. If existed, apply the edition for the key. If not, let user choose one to his favor for appropriate Firmware Type and OS Architecture. And install KMS tool.
WinPE is the key word...got you. Back to the conversion thingy. lol Its late here so I am off to bed so I will see you tomorrow. Been fun scripting.
Hey xinso, I was reading that rweverything portable works min. in windows pe....have you tried that to get the key info? You probably have but thought I would ask anyways. This is for slic (replaced with msdm) info but should work similar to using for key. rw.exe /command=SLIC.rw /logfile=SLIC.log rw.exe /command=MSDM.rw /logfile=MSDM.log I might have the above written wrong but you get the idea. Now you can do a findstr to find the key in log file and use it for your usage.
They make a portable x64 version of rw.exe also. Have you tried the below example (will need powershell installed in windows pe possibly)... WMIC Path SoftwareLicensingService Get OA3xOriginalProductKey >c:\test.log Here are commands for rweverything as well (not included in portable version): Parameter Description /Command=<FileName> Auto execute command interpreter with the input file. /Command="cmd1;cmd2..." Execute commands. /LogFile=<FileName> Output result to log file. /Min Run minimized. /Stdout Output to stdout console. (co-work with /Command) /Stderr Output to stderr console. (co-work with /Command)
I cant for the life of me figure out how to run rw.exe from command line properly....grrrrr I am missing something somewhere but I don't know where. lol I cant find any useful info online regarding the command line structure for rw either. Not much support in this area that I can find. If I can find this info out I will be able to use it in searchengines oem project since he has dropped it (might need to adjust for windows 10 final when released but without figuring out how to use rw.exe from command line I will be sh*t out of luck, lol). I know searchengine uses rw everything for extracting the key and then he applies it during install but it might not work on windows 10 once it is final so I need to find a solution to this also. Looks like we are both in the same boat xinso. lol I noticed something about searchengines project that you could use (I would say ask him but he isn't here anymore). His oem-sync.exe extracts key and copies to clipboard to be applied during the windows pe part of installation. Just run the exe and it does everything for you. Just a suggestion since I cant figure out rw everything yet.
Yes. I always experimented before posting, I don't like see and copy and post. It's useless even installed with all available optional components for "WinPE".
oem-sync.exe won't work in WinPE either, Cerberus8855. And the results are same for Portable: Code: rw /command="ACPI Dump SLIC";"RwExit" /logfile=C:\CMD.log Code: Software Licensing Description Table: 0x00000000DFED9C40 53 4C 49 43 76 01 00 00 01 02 44 45 4C 4C 20 20 SLICv.....DELL 50 45 5F 53 43 33 20 20 01 00 00 00 4D 53 46 54 PE_SC3 ....MSFT 01 00 00 00 00 00 00 00 9C 00 00 00 06 02 00 00 ................ 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 .$..RSA1........ 7F F6 C1 05 BE 5C 57 63 A5 8A 68 F3 6E 8F 06 FA .....\Wc..h.n... AF B4 9F 68 82 23 EC 50 40 5A 73 7F EC E4 07 CB ...h.#.P@Zs..... DC 25 1A 9C E3 E3 66 11 E0 A5 98 06 C5 80 0A FA .%....f......... 42 93 86 98 E7 D5 1B D4 D7 3A A4 0B EE E2 7D BE B........:....}. 5F 5B 15 0C AB D0 21 DE BF E9 B5 6E A4 57 B9 8C _[....!....n.W.. 0C D2 BA 3A 69 30 76 94 71 A2 64 D7 4C D8 85 BF ...:i0v.q.d.L... DF A5 6A C8 DC 45 D5 4D 8C B8 8C 05 2F FC 2E 23 ..j..E.M..../..# C4 29 C5 6F 3F 29 6C 6D 57 79 0E B6 75 ED 21 95 .).o?)lmWy..u.!. 01 00 00 00 B6 00 00 00 00 00 02 00 44 45 4C 4C ............DELL 20 20 50 45 5F 53 43 33 20 20 57 49 4E 44 4F 57 PE_SC3 WINDOW 53 20 03 00 02 00 00 00 00 00 00 00 00 00 00 00 S .............. 00 00 00 00 00 00 79 4C 96 C9 63 D6 86 2B 21 B7 ......yL..c..+!. 88 23 E4 C9 9B 67 18 22 CF 30 60 CD 6B EF E5 B2 .#...g.".0`.k... 9E 25 15 9D F5 14 98 42 83 50 76 AA F3 92 22 8C .%.....B.Pv...". 7B 2C EB BB 18 BA B5 E8 5D A6 47 E7 A5 D4 81 DB {,......].G..... AD E1 22 DB AC DC 01 D3 69 7F 9E 4E F1 D0 AF AC ..".....i..N.... 16 28 A9 9D EB 07 12 72 E2 0B F0 02 5E 31 E6 B1 .(.....r....^1.. 0B 6D 86 58 8C F8 7A 70 76 7B 72 3A 7E 32 96 8F .m.X..zpv{r:~2.. 8F D1 45 80 9E BF 29 5B 81 D6 1B AF 4C 08 89 3A ..E...)[....L..: B0 E3 72 1F A3 D2 ..r... Signature "SLIC" Length 0x00000176 (374) Revision 0x01 (1) Checksum 0x02 (2) OEM ID "DELL " OEM Table ID "PE_SC3 " OEM Revision 0x00000001 (1) Creator ID "MSFT" Creator Revision 0x00000001 (1) OEM Public Key Structure Type 0x00000000 (0) Length 0x0000009C (156) Key Type 0x06 (6) Version 0x02 (2) Reserved 0x0000 (0) Algorithm 0x00002400 (9216) Magic "RSA1" Bit Length 0x00000400 (1024) Exponent 0x00010001 (65537) Modulus 0x7F 0xF6 0xC1 0x05 0xBE 0x5C 0x57 0x63 0xA5 0x8A 0x68 0xF3 0x6E 0x8F 0x06 0xFA 0xAF 0xB4 0x9F 0x68 0x82 0x23 0xEC 0x50 0x40 0x5A 0x73 0x7F 0xEC 0xE4 0x07 0xCB 0xDC 0x25 0x1A 0x9C 0xE3 0xE3 0x66 0x11 0xE0 0xA5 0x98 0x06 0xC5 0x80 0x0A 0xFA 0x42 0x93 0x86 0x98 0xE7 0xD5 0x1B 0xD4 0xD7 0x3A 0xA4 0x0B 0xEE 0xE2 0x7D 0xBE 0x5F 0x5B 0x15 0x0C 0xAB 0xD0 0x21 0xDE 0xBF 0xE9 0xB5 0x6E 0xA4 0x57 0xB9 0x8C 0x0C 0xD2 0xBA 0x3A 0x69 0x30 0x76 0x94 0x71 0xA2 0x64 0xD7 0x4C 0xD8 0x85 0xBF 0xDF 0xA5 0x6A 0xC8 0xDC 0x45 0xD5 0x4D 0x8C 0xB8 0x8C 0x05 0x2F 0xFC 0x2E 0x23 0xC4 0x29 0xC5 0x6F 0x3F 0x29 0x6C 0x6D 0x57 0x79 0x0E 0xB6 0x75 0xED 0x21 0x95 SLIC Marker Structure Type 0x00000001 (1) Length 0x000000B6 (182) Version 0x00020000 (131072) OEM ID "DELL " OEM Table ID "PE_SC3 " Windows Flag "WINDOWS " SLIC Ver 0x00020003 (v2.3) Reserved 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Signature 0x79 0x4C 0x96 0xC9 0x63 0xD6 0x86 0x2B 0x21 0xB7 0x88 0x23 0xE4 0xC9 0x9B 0x67 0x18 0x22 0xCF 0x30 0x60 0xCD 0x6B 0xEF 0xE5 0xB2 0x9E 0x25 0x15 0x9D 0xF5 0x14 0x98 0x42 0x83 0x50 0x76 0xAA 0xF3 0x92 0x22 0x8C 0x7B 0x2C 0xEB 0xBB 0x18 0xBA 0xB5 0xE8 0x5D 0xA6 0x47 0xE7 0xA5 0xD4 0x81 0xDB 0xAD 0xE1 0x22 0xDB 0xAC 0xDC 0x01 0xD3 0x69 0x7F 0x9E 0x4E 0xF1 0xD0 0xAF 0xAC 0x16 0x28 0xA9 0x9D 0xEB 0x07 0x12 0x72 0xE2 0x0B 0xF0 0x02 0x5E 0x31 0xE6 0xB1 0x0B 0x6D 0x86 0x58 0x8C 0xF8 0x7A 0x70 0x76 0x7B 0x72 0x3A 0x7E 0x32 0x96 0x8F 0x8F 0xD1 0x45 0x80 0x9E 0xBF 0x29 0x5B 0x81 0xD6 0x1B 0xAF 0x4C 0x08 0x89 0x3A 0xB0 0xE3 0x72 0x1F 0xA3 0xD2 Code: rw /command=C:\slic.rw /logfile=C:\FILE.log slic.rw Code: >ACPI Dump SLIC >RwExit Code: Software Licensing Description Table: 0x00000000DFED9C40 53 4C 49 43 76 01 00 00 01 02 44 45 4C 4C 20 20SLICv.....DELL 50 45 5F 53 43 33 20 20 01 00 00 00 4D 53 46 54PE_SC3 ....MSFT 01 00 00 00 00 00 00 00 9C 00 00 00 06 02 00 00................ 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00.$..RSA1........ 7F F6 C1 05 BE 5C 57 63 A5 8A 68 F3 6E 8F 06 FA.....\Wc..h.n... AF B4 9F 68 82 23 EC 50 40 5A 73 7F EC E4 07 CB...h.#.P@Zs..... DC 25 1A 9C E3 E3 66 11 E0 A5 98 06 C5 80 0A FA.%....f......... 42 93 86 98 E7 D5 1B D4 D7 3A A4 0B EE E2 7D BEB........:....}. 5F 5B 15 0C AB D0 21 DE BF E9 B5 6E A4 57 B9 8C_[....!....n.W.. 0C D2 BA 3A 69 30 76 94 71 A2 64 D7 4C D8 85 BF...:i0v.q.d.L... DF A5 6A C8 DC 45 D5 4D 8C B8 8C 05 2F FC 2E 23..j..E.M..../..# C4 29 C5 6F 3F 29 6C 6D 57 79 0E B6 75 ED 21 95.).o?)lmWy..u.!. 01 00 00 00 B6 00 00 00 00 00 02 00 44 45 4C 4C............DELL 20 20 50 45 5F 53 43 33 20 20 57 49 4E 44 4F 57 PE_SC3 WINDOW 53 20 03 00 02 00 00 00 00 00 00 00 00 00 00 00S .............. 00 00 00 00 00 00 79 4C 96 C9 63 D6 86 2B 21 B7......yL..c..+!. 88 23 E4 C9 9B 67 18 22 CF 30 60 CD 6B EF E5 B2.#...g.".0`.k... 9E 25 15 9D F5 14 98 42 83 50 76 AA F3 92 22 8C.%.....B.Pv...". 7B 2C EB BB 18 BA B5 E8 5D A6 47 E7 A5 D4 81 DB{,......].G..... AD E1 22 DB AC DC 01 D3 69 7F 9E 4E F1 D0 AF AC..".....i..N.... 16 28 A9 9D EB 07 12 72 E2 0B F0 02 5E 31 E6 B1.(.....r....^1.. 0B 6D 86 58 8C F8 7A 70 76 7B 72 3A 7E 32 96 8F.m.X..zpv{r:~2.. 8F D1 45 80 9E BF 29 5B 81 D6 1B AF 4C 08 89 3A..E...)[....L..: B0 E3 72 1F A3 D2 ..r... Signature"SLIC" Length0x00000176 (374) Revision0x01 (1) Checksum0x02 (2) OEM ID"DELL " OEM Table ID"PE_SC3 " OEM Revision0x00000001 (1) Creator ID"MSFT" Creator Revision0x00000001 (1) OEM Public Key Structure Type0x00000000 (0) Length0x0000009C (156) Key Type0x06 (6) Version0x02 (2) Reserved0x0000 (0) Algorithm0x00002400 (9216) Magic"RSA1" Bit Length0x00000400 (1024) Exponent0x00010001 (65537) Modulus0x7F 0xF6 0xC1 0x05 0xBE 0x5C 0x57 0x63 0xA5 0x8A 0x68 0xF3 0x6E 0x8F 0x06 0xFA 0xAF 0xB4 0x9F 0x68 0x82 0x23 0xEC 0x50 0x40 0x5A 0x73 0x7F 0xEC 0xE4 0x07 0xCB 0xDC 0x25 0x1A 0x9C 0xE3 0xE3 0x66 0x11 0xE0 0xA5 0x98 0x06 0xC5 0x80 0x0A 0xFA 0x42 0x93 0x86 0x98 0xE7 0xD5 0x1B 0xD4 0xD7 0x3A 0xA4 0x0B 0xEE 0xE2 0x7D 0xBE 0x5F 0x5B 0x15 0x0C 0xAB 0xD0 0x21 0xDE 0xBF 0xE9 0xB5 0x6E 0xA4 0x57 0xB9 0x8C 0x0C 0xD2 0xBA 0x3A 0x69 0x30 0x76 0x94 0x71 0xA2 0x64 0xD7 0x4C 0xD8 0x85 0xBF 0xDF 0xA5 0x6A 0xC8 0xDC 0x45 0xD5 0x4D 0x8C 0xB8 0x8C 0x05 0x2F 0xFC 0x2E 0x23 0xC4 0x29 0xC5 0x6F 0x3F 0x29 0x6C 0x6D 0x57 0x79 0x0E 0xB6 0x75 0xED 0x21 0x95 SLIC Marker Structure Type0x00000001 (1) Length0x000000B6 (182) Version0x00020000 (131072) OEM ID"DELL " OEM Table ID"PE_SC3 " Windows Flag"WINDOWS " SLIC Ver0x00020003 (v2.3) Reserved0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Signature0x79 0x4C 0x96 0xC9 0x63 0xD6 0x86 0x2B 0x21 0xB7 0x88 0x23 0xE4 0xC9 0x9B 0x67 0x18 0x22 0xCF 0x30 0x60 0xCD 0x6B 0xEF 0xE5 0xB2 0x9E 0x25 0x15 0x9D 0xF5 0x14 0x98 0x42 0x83 0x50 0x76 0xAA 0xF3 0x92 0x22 0x8C 0x7B 0x2C 0xEB 0xBB 0x18 0xBA 0xB5 0xE8 0x5D 0xA6 0x47 0xE7 0xA5 0xD4 0x81 0xDB 0xAD 0xE1 0x22 0xDB 0xAC 0xDC 0x01 0xD3 0x69 0x7F 0x9E 0x4E 0xF1 0xD0 0xAF 0xAC 0x16 0x28 0xA9 0x9D 0xEB 0x07 0x12 0x72 0xE2 0x0B 0xF0 0x02 0x5E 0x31 0xE6 0xB1 0x0B 0x6D 0x86 0x58 0x8C 0xF8 0x7A 0x70 0x76 0x7B 0x72 0x3A 0x7E 0x32 0x96 0x8F 0x8F 0xD1 0x45 0x80 0x9E 0xBF 0x29 0x5B 0x81 0xD6 0x1B 0xAF 0x4C 0x08 0x89 0x3A 0xB0 0xE3 0x72 0x1F 0xA3 0xD2