I’m attempting to build a PS script to check usernames on two different CSV sheets. One has disabled users, the other has licensed, enabled users. I need to find out if any of the licensed, enabled users appear on the disabled users CSV sheet. I’ve gotten thus far:
compare-object (get-content $File1) (get-content $File2) | format-list | Out-File $Location
But I’m not sure how to get this down just right.