Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi
Thanks a lot for any help and regards
#1. Authenticate to Power BI with Power BI Service Administrator Account
$User = "XXXXXXX"
$PW = "XXXXXXXX"
$SecPasswd = ConvertTo-SecureString $PW -AsPlainText -Force
$myCred = New-Object System.Management.Automation.PSCredential($User,$SecPasswd)
$DSPath = "C:\DS.csv"
Connect-PowerBIServiceAccount -Credential $myCred
Get-PowerBIDataset -Scope Organization | Export-Csv $DSPath -NoTypeInformation
hi there
have you tried the examples on the Power BI Rest APIs to make sure it works for your account?
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasetingroup#code-try-0
Hi Gilbert
Thanks a lot but
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 10 | |
| 10 | |
| 8 | |
| 7 |
| User | Count |
|---|---|
| 41 | |
| 37 | |
| 35 | |
| 34 | |
| 20 |