Forum Discussion
PowerBi desktop silent installation using powershell
I need some assitance with installating powerbi desktop silently on windows 10 machines using powershell script.
I have made a script, specified below.
Powershell script
#To install specific versions, update the URL variables below with links to the .msi installers.
$installerPath = "C:\Temp\install\PBIDesktopSetup_x64.exe"
$pcoipAgentUrl= "https://www.microsoft.com/en-us/download/details.aspx?id=58494"
# Start powershell logging
$SaveVerbosePreference = $VerbosePreference
$VerbosePreference = 'continue'
$VMTime = Get-Date
$LogTime = $VMTime.ToUniversalTime()
mkdir "C:\\NMWLogs\ScriptedActions\remotedesktop" -Force
Start-Transcript -Path "C:\Temp\NMWLogs\ScriptedActions\powerBi\ps_log.txt" -Append
Write-Host "################# New Script Run #################"
Write-host "Current time (UTC-0): $LogTime"
# Make directory to hold install files
mkdir "C:\Temp\install" -Force
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri $pcoipAgentUrl -OutFile "$installerPath" -UseBasicParsing
# Install powerBi."https://www.microsoft.com/en-us/download/details.aspx?id=58494"
Write-Host "INFO: Installing powerBi. . ."
$process = Start-Process msiexec.exe -ArgumentList -silent -passive -quiet ACCEPT_EULA=1
Write-Host "INFO:powerbi install finished."
# End Logging
Stop-Transcript
$VerbosePreference=$SaveVerbosePreference.
The script is downloading the exe file from the websit, but not doing the installation.
Need guidnace on this part, how can I install it silently.
$process = Start-Process msiexec.exe -ArgumentList -silent -passive -quiet ACCEPT_EULA=1
Write-Host "INFO:powerbi install finished."
Please guide me on this, or anybody else knows a different way.
1 Reply
- lbendlinSuper User
"The script is downloading the exe file from the website"
I doubt that. The actual download URL for the current version is https://download.microsoft.com/download/8/8/0/880BCA75-79DD-466A-927D-1ABF1F5454B0/PBIDesktopSetup_x64.exe
Your installation step is missing the input file, your -ArgumentList is empty/malformed.
Maybe this link can give you some pointers