How To Get All The Disabled Flows Using PowerShell

In this blog, you will see how to get all the disabled flows using PowerShell.

In this blog, you will see how to get all the disabled flows (flows that have been created or shared with you).

Refer to my previous blog - How to connect to Microsoft Flow using PowerShell.

Open PowerShell window and run the following script. Enter the credentials in the login popup window. 

  1. Add PowerApps Account  
  2. Add-PowerAppsAccount  
  3.   
  4. # Get all the flow which contains "Test" in the display name  
  5. $flowColl=Get-Flow   
  6.   
  7. # Loop through all the flows  
  8. foreach($flow in $flowColl)  
  9. {  
  10.     # Check whether the flow is enabled  
  11.     if($flow.Enabled -eq $false)  
  12.     {  
  13.         $flow.DisplayName  
  14.     }  
  15. }  

Output

It displays all the disabled flows.

Thus in this blog, you saw how to get all the disabled flows using PowerShell.