The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 @Anonymous .
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 @Anonymous .
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
@Anonymous 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
User | Count |
---|---|
69 | |
65 | |
63 | |
48 | |
28 |
User | Count |
---|---|
112 | |
82 | |
66 | |
48 | |
43 |