using the following command, I will get the entire user detail from active directory. However, I want all the details populate into hashtable. How to do this.
get-aduser User1234 -server myDomain -properties *
So, if I use the following, I will get this:
$table1 = get-aduser User1234 -server myDomain -properties *
$table1.GetType()
Result: BaseType is Microsoft.ActiveDirectory.Management.ADAccount
It is not hashtable.