Here is my code:
$var = Get-ADUser -Identity username | Select -Property ObjectGUID
Echo $var
My output is :
ObjectGUID
-------------
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
I dont want the headers in the variable, so i can pass it to commands with ease.
Please send help and caffiene.