Invoking get-aduser powershell command


I am trying to use the following command from powershell" Get-aduser -identity $user

I am getting the following error:

Here is my work flow (I put [-identity] in the parameters section, direction = in, type is string, and the value is the user.)


What does get-aduser return and what should my variable type be?


Hi @kdrumz,
Get-ADUser returns every information about user from Active Directory you need. But you need to use it with proper arguments that just Get-ADUser. More info here:
Additionally to be able to work with it further in Studio you need to use proper object type for it or add " | Out-String" for the command.


Get-ADUser xyz -something | Out-String
1 Like