Announcements
hello
Hello,
can you try running {
$services= get-service -ComputerName <>
Write-Output $services
}
Outputs of powershell scripts (when ran in PAD) are and HAS to be Text Value outputs (See Docs), so writing the output of your variable will work (also read this)
same....empty, does it works for you?
@Rika1
is the code completed,
I could see it is incompleted after <>
Also in the action , enable the script error variable to see any errors associated with the code
Hi,
Yes the same powershell I use works also on the Server.
When you say result is empty in PA, do you mean you dont see an output within Power Automate cloud?
eventually found a way that it works on PA Desktop
$out=invoke-command -ComputerName $computername -Credential $Onpremcredentials -ScriptBlock { "get-service"|powershell}write-output $out
Thanks, for your help
Thanks!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
David_MA 259 Super User 2026 Season 2
11manish 227 Super User 2026 Season 2
Valantis 134 Super User 2026 Season 2