Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
I would like to know how to export Power BI template from a Power BI desktop report using power shell?
or perform this action using a C# application
I found this link on th web. But it seems like it is only for exporting reports .
Even using this give me the following error-
New-PowerBIReport : The term 'New-PowerBIReport' is not recognized as the name of a cmdlet, function, script fil
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
again.
At line:1 char:1
+ New-PowerBIReport -Path 'C:\abc\pqr\Lending ...
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-PowerBIReport:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Could anybody please steer me in the correct direction?
Solved! Go to Solution.
HI @Meghmala ,
As document mentioned, this script require objectid to export specific contents. I think you need to use report id to instead.
ID of the report to export.
| Type: | Guid |
| Aliases: | ReportId |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
Output file to save the exported report to. Path must not already exist.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
ID of the workspace containing the Power BI report to export.
| Type: | Guid |
| Aliases: | GroupId |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
In addition, did this report create on power bi service? Current export not works on online report.
Export a report from Power BI service to Desktop (Preview)
Regards,
Xiaoxin Sheng
HI @Meghmala ,
As document mentioned, this script require objectid to export specific contents. I think you need to use report id to instead.
ID of the report to export.
| Type: | Guid |
| Aliases: | ReportId |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
Output file to save the exported report to. Path must not already exist.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
ID of the workspace containing the Power BI report to export.
| Type: | Guid |
| Aliases: | GroupId |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
In addition, did this report create on power bi service? Current export not works on online report.
Export a report from Power BI service to Desktop (Preview)
Regards,
Xiaoxin Sheng
Hi,
I am exploring the same similar feature "Export Power BI report template using PowerShell schript", but I couldn't find out the solution posted in this thread. Help me with the solution. Thank you!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!