PowerShell: How can I to force to get a result as an Array instead of Object May 27, 2023 by Tarik Try $x = @(get-aduser) The @() syntax forces the result to be an array