Invoking get-aduser powershell command

Hello,

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.)

image

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

Thanks!

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:
https://docs.microsoft.com/en-us/powershell/module/addsadministration/get-aduser?view=win10-ps
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.

Example:

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