Running a powershell script

SvcISPwrBIEmbeddedPrd 21 Reputation points
2020-08-06T08:34:18.37+00:00

I want t connect to powerbi service but im getting the below error:

Connect-PowerBIServiceAccount : The term 'Connect-PowerBIServiceAccount' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At line:1 char:1

  • Connect-PowerBIServiceAccount
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ObjectNotFound: (Connect-PowerBIServiceAccount:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,547 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vaibhav Chaudhari 38,746 Reputation points
    2020-08-06T08:41:08.43+00:00

    Open PowerShell in Admin mode and run below to install the module. Then retry your command.

    Install-Module -Name MicrosoftPowerBIMgmt
    

    Step by step details are here - install-power-bi-powershell-in-your-windows-machine


    If the response helped, do "Accept Answer" and upvote it -- Vaibhav

    2 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Klaus Bilger 81 Reputation points
    2020-08-06T08:43:55.023+00:00

    HI

    did you load / import the modul ?
    Install-Module -Name MicrosoftPowerBIMgmt

    which Version of .NET is running our your side ??

    Installing .NET Framework 4.7.2 should help.

    regards

    klaus


  2. SvcISPwrBIEmbeddedPrd 21 Reputation points
    2020-08-06T11:59:54.7+00:00

    Thanks alot guys for the feedback ...its working now :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.