Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==================================================
- Product Name : Microsoft Office Professional 2013
- Product ID : 00000-00000-00000-00000
- Product Key : 00000-00000-00000-00000-00000
- Installation Folder : C:Program FilesMicrosoft OfficeOffice15
- Service Pack :
- Build Number :
- Computer Name : PC-000-0
- Modified Time : 06.12.2018 14:03:44
- ==================================================
- ==================================================
- Product Name : Windows 10 Pro
- Product ID : 00000-00000-00000-00000
- Product Key : 00000-00000-00000-00000-00000
- Installation Folder : C:Windows
- Service Pack :
- Build Number : 17763
- Computer Name : PC-000-0
- Modified Time : 18.07.2019 09:50:37
- ==================================================
- PC-000-0;Microsoft Office Professional 2013;00000-00000-00000-00000-00000
- BEGIN {
- RS="nn";
- FS="n";
- }
- {
- if ($1 ~ /Product Name/) {
- split($1,productArray,":")
- product = productArray[2]
- }
- if ($1 ~ /Product Key/) {
- split($1,keyArray,":")
- key = keyArray[2]
- }
- if ($1 ~ /Computer Name/ ) {
- split($1,computerArray,":")
- computer = computerArray[2]
- #print product
- #print key
- #print computer
- printf("n")
- printf("%s ; %s ; %s n", computer, product, key)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement