PixelSmith
Programmer
I am attempting to collapse an old domain and I want to identify users that have logged into this domain BUT have not logged into any other domain....
I have the logic for identifying users in the old domain, but how can I select only the users that are not logging on the new domain so I can disable their accounts?
Code:
get-qaduser -service Old.Domain.com -ip lastlogontimestamp, passwordlastset,passwordstatus | select SamAccountName, displayname,last, logontimestamp, passwordlastset,passwordstatus | ft –AutoSize > LastLogins.txt
I have the logic for identifying users in the old domain, but how can I select only the users that are not logging on the new domain so I can disable their accounts?