Forum Discussion
[PowerShell][Data Gateway] DataGateway Module not installing latest version
Hi loganmzz , Thank you for reaching out to the Microsoft Community Forum.
The error indicates that the gateway binaries installed on the VM are below the minimum version required by the Power BI service. In practice, this happens when the PowerShell module pulls an older installer or when a previously cached gateway installer is reused during automation.
Ensure the automation installs the latest supported Standard mode gateway. Run Install-DataGateway -AcceptConditions without specifying -InstallerLocation. When this parameter is omitted, the cmdlet downloads and installs the newest gateway version it can access, which usually resolves version mismatches.
If the issue persists, explicitly control the installer version. Download the On premises data gateway (Standard mode) from the Microsoft Download Center or select a November 2025 or later Standard mode build from the currently supported monthly updates page. Save the installer locally and run Install-DataGateway -AcceptConditions -InstallerLocation "C:\BuildAssets\GatewayInstall.exe".
Finally, verify the environment is not contributing to the problem. Use PowerShell 7.0.6 or later (7.4.x preferred), ensure the latest DataGateway module is installed with Install-Module DataGateway -Force and run the script in an elevated session. Before reinstalling, remove any existing GatewayInstall.exe files from temp or build artifact folders to avoid reusing an outdated binary.
Update an on-premises data gateway | Microsoft Learn
PowerShell Cmdlets for On-premises data gateway management | Microsoft Learn
As automation process, installation & registration is done on new fresh VM on every run. So neither cache, neither oldre version for Gateway installer/binaries or PowerShell module exists.