< Back

Export-PBIReport

Sat Jan 18, 2020 8:41 pm

NAME Export-PBIReport



SYNOPSIS

Download reports as PBIX files to the specified folder.





SYNTAX

Export-PBIReport [[-authToken] <String>] [-report] <Object> [[-destinationFolder] <String>] [[-timeout] <Int32>]

[[-groupId] <String>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-authToken <String>

The authorization token required to comunicate with the PowerBI APIs

Use 'Get-PBIAuthToken' to get the authorization token string



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-report <Object>

The PBI Report Object or Report Id (GUID)



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-destinationFolder <String>

A string with the path to the destination folder



Required? false

Position? 3

Default value .

Accept pipeline input? false

Accept wildcard characters? false



-timeout <Int32>

Timeout seconds for the export HTTP request



Required? false

Position? 4

Default value 300

Accept pipeline input? false

Accept wildcard characters? false



-groupId <String>



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-Report -name "SampleReport" | Export-PBIReport













-------------------------- EXAMPLE 2 --------------------------



PS C:\\># Get's all reports from current workspace and saves them on the destination folder



Get-PBIReport | Export-PBIReport -destinationFolder ".\\OutputFolder"









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Export-PBIReport -report {ReportGUID}















RELATED LINKS