Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
104 | |
98 | |
97 | |
39 | |
38 |
User | Count |
---|---|
151 | |
122 | |
78 | |
73 | |
67 |