Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Remove Strings from one Text file based on entries in another text file?

$
0
0

I have two text files full of users.  One text file has a list of all users, the second text file has a list of known disabled accounts.  I want to delete the disabled accounts from the "All" users txt file.  It's user names only so the txt files look like this:

 

All Users

a12345

b12345

c12345

 

Known Disabled

a12345

c12345

d12345

 

 

TIA for any replies


Viewing all articles
Browse latest Browse all 6937

Trending Articles