[quote quote=282601]pls provide sample text files, sample desired output, and explain what you want to do – convert what to what?
[/quote]
Hi
The text file (simple notepad .txt) named userlist.txt Contains
dsafdsafds1
fdasfasdfa2
wqewqreerw3
xcvzxcvxzc4
uyiuoyiuoy5
hjklhjlhkl6
nmnmmmmnmm7
The result I want to achieve is
Number
Userid
1
dsafdsafds1
2
fdasfasdfa2
3
wqewqreerw3
4
xcvzxcvxzc4
5
uyiuoyiuoy5
6
hjklhjlhkl6
7
nmnmmmmnmm7
The goal with this is
The text file is a symbolic file with pretend user users.
That I pull information about from AD (I do not have access to Active Directory so I will add that part later to the script).
The result will be exported to a CSV file.
But I can’t get the userid and number on the same row.
As a start thing, until I get back to work, when I do that I will start adding “fetch information from Active Directory”.