March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I have a requirement where I have to open PowerBI Desktop Application via PowerShell & also open a PBIX File using PowerShell.
Can someone help me with this ?
Solved! Go to Solution.
Hi @Rohitb ,
At my knowledge, we can get path of the .pbix file and open power bi desktop with the .pbix file using powershell.
Sample:
$PowerBIFilePath = "C:\*** "
Start-Process -FilePath $PowerBIFilePath
Best Regards,
Wearsky
Open PowerShell:
Place PBIDesktop file path between double quotes, like this:
Start-Process -FilePath "C:\Program Files\Microsoft Power BI Desktop RS\bin\PBIDesktop.exe"
for PBIX files:
Place your file path between double quotes, like this:
Start-Process -FilePath "C:\Users\Ahadk\OneDrive\Desktop\test.pbix"
Hey @ahadkarimi
Opening the pbix was already stated by @v-xiaocliu-msft .
The next ask from the user is to save the opened file as another format.
Hi @Rohitb ,
At my knowledge, we can get path of the .pbix file and open power bi desktop with the .pbix file using powershell.
Sample:
$PowerBIFilePath = "C:\*** "
Start-Process -FilePath $PowerBIFilePath
Best Regards,
Wearsky
Thankyou for your response @v-xiaocliu-msft .
How do I save the PowerBI File as PBIT/PBIP using PowerShell ?
Hi @Rohitb ,
I'm afraid that this requirement cannot be easily implemented with PowerShell. This may require programming experience with PowerShell and .NET. As a simple workaround, please try Power Automate Desktop.
Sample:
You can record your operation steps, such as saving, etc…
Best Regards,
Wearsky
@v-xiaocliu-msft Thankyou for your response.
I have already explored Power Automate way but we want to explore via PowerShell/Python/.Net
Can you please help with either of the 3 coding language ?
I am not sure whether this is even possible because based on MSFT documentation; the only was is for it to be done manually
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |