<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Configuring Power BI Server through Power shell in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Configuring-Power-BI-Server-through-Power-shell/m-p/450948#M6301</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to install Power BI Server through powershell (SQL Server 2016 and PoweBI Server(March 2018))&lt;/P&gt;&lt;P&gt;you can use following commands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$rsConfig = Get-WmiObject –namespace "root\Microsoft\SqlServer\ReportServer\RS_PBIRS\v15\Admin" -class MSReportServer_ConfigurationSetting&amp;nbsp;&amp;nbsp; -filter "InstanceName='PBIRS'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$methResult = $rsConfig.GenerateDatabaseCreationScript(&lt;STRONG&gt;$PowerBIDatabaseName&lt;/STRONG&gt;, 1033, "true")&lt;/P&gt;&lt;P&gt;Invoke-SqlCmd&lt;/P&gt;&lt;P&gt;Set-Location SQLSERVER:\SQL\&lt;STRONG&gt;$SQLServerName&lt;/STRONG&gt;\&lt;STRONG&gt;$InstanceName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;invoke-sqlcmd -Query $methResult["Script"] -Username &lt;STRONG&gt;$UserName&lt;/STRONG&gt; -Password &lt;STRONG&gt;$Password&lt;/STRONG&gt; -OutputSqlErrors $true | Out-Null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set-Location -Path C:\Windows\System32&lt;/P&gt;&lt;P&gt;$methResult = $rsconfig.GenerateDatabaseRightsScript("NT Service\PowerBIReportServer", &lt;STRONG&gt;$PowerBIDatabaseName&lt;/STRONG&gt;, $false, $true)&lt;/P&gt;&lt;P&gt;Set-Location SQLSERVER:\SQL\&lt;STRONG&gt;$SQLServerName&lt;/STRONG&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;STRONG&gt;$InstanceName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;invoke-sqlcmd -Query $methResult["Script"] -Username &lt;STRONG&gt;$UserName&lt;/STRONG&gt; -Password &lt;STRONG&gt;$Password&lt;/STRONG&gt; -OutputSqlErrors $true | Out-Null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set-Location -Path C:\Windows\System32&lt;/P&gt;&lt;P&gt;$rsConfig.SetDatabaseConnection(&lt;STRONG&gt;$SQLServerInstanceName&lt;/STRONG&gt;,&lt;STRONG&gt;$PowerBIDatabaseName&lt;/STRONG&gt;, 2, "NT Service\PowerBIReportServer", "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$rsConfig.SetVirtualDirectory("ReportServerWebService",&lt;STRONG&gt;$WebServiceVirtualDirectoryName&lt;/STRONG&gt;,0)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("ReportServerWebService", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;$rsConfig.SetVirtualDirectory("ReportServerWebApp",&lt;STRONG&gt;$WebPortalVirtualDirectoryName&lt;/STRONG&gt;,0)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("ReportServerWebApp", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("PowerBIWebApp", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("OfficeWebApp", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$rsconfig.SetServiceState($false, $false, $false)&lt;/P&gt;&lt;P&gt;Restart-Service $rsConfig.ServiceName&lt;/P&gt;&lt;P&gt;$rsconfig.SetServiceState($true, $true, $true)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Older SQL&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The version in following command must be&amp;nbsp;updated&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$rsConfig = Get-WmiObject –namespace "root\Microsoft\SqlServer\ReportServer\RS_PBIRS\&lt;STRONG&gt;v15&lt;/STRONG&gt;\Admin" -class MSReportServer_ConfigurationSetting&amp;nbsp;&amp;nbsp; -filter "InstanceName='PBIRS'"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;To get the version use following command:&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gwmi -namespace "root\Microsoft\SqlServer\ReportServer\RS_PBIRS" -class "__Namespace"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also in following commands:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$rsConfig.SetVirtualDirectory("ReportServerWebApp",$WebPortalVirtualDirectoryName,0)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("ReportServerWebApp", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"ReportServerWebApp"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;should be changed to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"ReportManager"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jun 2018 04:02:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-29T04:02:32Z</dc:date>
    <item>
      <title>Configuring Power BI Server through Power shell</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Configuring-Power-BI-Server-through-Power-shell/m-p/450948#M6301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to install Power BI Server through powershell (SQL Server 2016 and PoweBI Server(March 2018))&lt;/P&gt;&lt;P&gt;you can use following commands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$rsConfig = Get-WmiObject –namespace "root\Microsoft\SqlServer\ReportServer\RS_PBIRS\v15\Admin" -class MSReportServer_ConfigurationSetting&amp;nbsp;&amp;nbsp; -filter "InstanceName='PBIRS'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$methResult = $rsConfig.GenerateDatabaseCreationScript(&lt;STRONG&gt;$PowerBIDatabaseName&lt;/STRONG&gt;, 1033, "true")&lt;/P&gt;&lt;P&gt;Invoke-SqlCmd&lt;/P&gt;&lt;P&gt;Set-Location SQLSERVER:\SQL\&lt;STRONG&gt;$SQLServerName&lt;/STRONG&gt;\&lt;STRONG&gt;$InstanceName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;invoke-sqlcmd -Query $methResult["Script"] -Username &lt;STRONG&gt;$UserName&lt;/STRONG&gt; -Password &lt;STRONG&gt;$Password&lt;/STRONG&gt; -OutputSqlErrors $true | Out-Null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set-Location -Path C:\Windows\System32&lt;/P&gt;&lt;P&gt;$methResult = $rsconfig.GenerateDatabaseRightsScript("NT Service\PowerBIReportServer", &lt;STRONG&gt;$PowerBIDatabaseName&lt;/STRONG&gt;, $false, $true)&lt;/P&gt;&lt;P&gt;Set-Location SQLSERVER:\SQL\&lt;STRONG&gt;$SQLServerName&lt;/STRONG&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;STRONG&gt;$InstanceName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;invoke-sqlcmd -Query $methResult["Script"] -Username &lt;STRONG&gt;$UserName&lt;/STRONG&gt; -Password &lt;STRONG&gt;$Password&lt;/STRONG&gt; -OutputSqlErrors $true | Out-Null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set-Location -Path C:\Windows\System32&lt;/P&gt;&lt;P&gt;$rsConfig.SetDatabaseConnection(&lt;STRONG&gt;$SQLServerInstanceName&lt;/STRONG&gt;,&lt;STRONG&gt;$PowerBIDatabaseName&lt;/STRONG&gt;, 2, "NT Service\PowerBIReportServer", "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$rsConfig.SetVirtualDirectory("ReportServerWebService",&lt;STRONG&gt;$WebServiceVirtualDirectoryName&lt;/STRONG&gt;,0)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("ReportServerWebService", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;$rsConfig.SetVirtualDirectory("ReportServerWebApp",&lt;STRONG&gt;$WebPortalVirtualDirectoryName&lt;/STRONG&gt;,0)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("ReportServerWebApp", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("PowerBIWebApp", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("OfficeWebApp", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$rsconfig.SetServiceState($false, $false, $false)&lt;/P&gt;&lt;P&gt;Restart-Service $rsConfig.ServiceName&lt;/P&gt;&lt;P&gt;$rsconfig.SetServiceState($true, $true, $true)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Older SQL&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The version in following command must be&amp;nbsp;updated&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$rsConfig = Get-WmiObject –namespace "root\Microsoft\SqlServer\ReportServer\RS_PBIRS\&lt;STRONG&gt;v15&lt;/STRONG&gt;\Admin" -class MSReportServer_ConfigurationSetting&amp;nbsp;&amp;nbsp; -filter "InstanceName='PBIRS'"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;To get the version use following command:&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gwmi -namespace "root\Microsoft\SqlServer\ReportServer\RS_PBIRS" -class "__Namespace"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also in following commands:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$rsConfig.SetVirtualDirectory("ReportServerWebApp",$WebPortalVirtualDirectoryName,0)&lt;/P&gt;&lt;P&gt;$rsConfig.ReserveURL("ReportServerWebApp", "&lt;A href="http://+:80" target="_blank"&gt;http://+:80&lt;/A&gt;", 1033)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"ReportServerWebApp"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;should be changed to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"ReportManager"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 04:02:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Configuring-Power-BI-Server-through-Power-shell/m-p/450948#M6301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-29T04:02:32Z</dc:date>
    </item>
  </channel>
</rss>

