Hi,
I have this script that searches the members of a group to see which AD accounts are disabled.
It works perfectly if I run it in Powershell but Power Automate Desktop says it has a syntax error.
Any ideas ?
Thanks
get-adgroupmember -Identity groupname | %{Get-ADUser -Identity $_.distinguishedName -Properties Enabled | Where-Object{$_.Enabled -ne $true}} | Select name, DistinguishedName,Enabled | Format-Table -Property * -Autosize