Power Shell

Are you getting any output when you execute same command from powershell ISE?

If yes and if you are not getting any output from UiPath activity, try this code:

Param
(
$name
)
Get-ADUser -identity $Name -properties extensionAttribute1 | Select extensionAttribute1 | out-file “SomeTextFilePathOnYourMachine”

I always redirect powershell commands output to text files and then read those text files. Even in case of any exception, I use try catch block and redirect exception message to text file(in the catch block).

If you want to get output from activity directly, UiPath activity expects us to define type of output. Type of output will be different when the command executes normally and when exception occured. So I always redirect output to text file and read it later.

Let me know if you still get any doubts.