1

Topic: PowerShell File comparison

There was a necessity comparing of 2 text files and record in the third data file from the first and the second. Who can help, how it can be implemented? PowerShell I study at all for a long time and such skills still are not present sad And now in more details:
1 file
Outswapping from AD
"A way to leak", Petrov Peter Petrovich, PetrovPP
"A way to leak", Petrov1 Peter Petrovich, Petrov1PP
"A way to leak", Petrov2 Peter Petrovich, Petrov2PP
Etc. (more than 500 users)
2 file
0000000051; 99996; Petrov Peter Petrovich; Office; the Address; Phone
0000004002; 99997; Petrov1 Peter Petrovich; Office; the Address; Phone
0000000403; 99998; Petrov2 Peter Petrovich; Office; the Address; Phone
Etc. (more than 500 users)
As a result it is necessary to take  the first user from 1 file (Peters Petor Petrovich) to find it in the second file and the first parameter from a line to remove values 0 and to write down and so on all users. I.e. as a result it should turn out:
"A way to leak", Petrov Peter Petrovich, PetrovPP, 51
"A way to leak", Petrov1 Peter Petrovich, Petrov1PP, 4002
"A way to leak", Petrov2 Peter Petrovich, Petrov2PP, 403
And it registers in 3 file (Inverted commas and commas are very important since further the result will boot in AD)
And at a finding of two  identical to write down an error in a separate file with instructions .