Hello,
I'm not entirely sure of what is going on but I am having a weird experience when working with, again I assume, HashTables.
When I output a hash table any output thereafter appears to try to be added to the hashtable.
So a simplified version of what I am doing is below:
$AllDemUsers=Get-ADUser -Filter {SamAccountName -like "*999SSMITH*"} -Properties *"Before" $AllDemUsers | Select SamAccountName, employeeID, employeeType $AllDemUsersA=Get-ADUser -Filter {SamAccountName -like "*999TCRAIG*"} -Properties *"After" $AllDemUsersA | Select SamAccountName, employeeID, employeeType
With the second command the "After" is added into the table and there are not a second set of headings as I would expect. I was doing something similar the other day and it was adding all sorts of nonsense to the first column... Do I need to close the table before outputting the next one?