
First of all, what you will need to do is to install the Power Apps and Flow for Admins module, which can be done using the following command:
- Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
- Install-Module -Name Microsoft.PowerApps.PowerShell –AllowClobber
Once it has been done,d you’re ready to go
Get-AdminFlow | ForEach-Object { $user = Get-UsersOrGroupsFromGraph -ObjectId $_.CreatedBy.userId;[PSCustomObject]@{ FlowName = $_.DisplayName; OwnerName = $user.DisplayName ; OwnerEmail = $user.UserPrincipalName ; }; } | Export-Csv -Path .\Flows.csv
In case you need to export the connections, you can execute the following command:
Get-AdminPowerAppEnvironment -Default | Get-AdminPowerAppConnection