I am searching for an example of how to combine Get-ADComputer with AD-GetUser. Get-ADComputer -Filter 'Name -like "Nany-*"' -Properties CN, IPv4Address | Select CN, IPv4Address| Export-CSV "C:\Computers&Users.csv"
This creates the information I'm wanting from the AD-ADComputer command, but I would like to also include the last logged in user and have it be in the same .CSV file
I have found I can do it in two separate scripts, so any ideas on making it one would be great.