Skip to main content

Posts

Showing posts from November, 2012

Power Platform Audit Scripts using PowerShell -All Power Automate (Running Flows)

Get All Ruining Power Automate (Flows) Using PowerShel l Clear-Host Install-Module -Name Microsoft.PowerApps.Administration.PowerShell #Add-PowerAppsAccount $scriptPath = split-path -parent $MyInvocation.MyCommand.Definition $OutputFilePath = "$scriptPath\FlowRuns.csv" try { Remove-Item $OutputFilePath } catch{} $flowRunHeaders = "Flow,Name,Run Count,Last Run Date, Last Run Status"; Add-Content -Path $OutputFilePath -Value $flowRunHeaders function GetRuns  {     param     (         [Parameter(Mandatory = $true)]         [string]$FlowName,         [Parameter(Mandatory = $true)]         [string]$EnvironmentName     )     process     {         if ($EnvironmentName -ne $null -and $FlowName -ne $null)         {             $TimeoutInMinutes = 2            ...