Forum Discussion
set alias for Power BI
My Windows 10 Pro has Anaconda Powershell Prompt, and its $PSVersionTable is:
Name Value
PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
I have to “run as Administrator” in order to run commands in Anaconda Powershell Prompt. I’m unfamiliar with its commands though, except to activate a conda environment. After I’ve activated a conda environment (that’s customized for Microsoft Power BI Desktop), I can start the program at C:\Program Files\WindowsApps\Microsoft.MicrosoftPowerBIDesktop_2.105.664.0_x64__8wekyb3d8bbwe\bin\PBIDesktop.exe .
Since that path is so long, I want to create a program alias. I followed the instructions to add a new key in Registry Editor. But why do I get the error:
start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
start PBIDesktop+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
P.S. if I click on the shortcut icon for Power BI after activating the conda environment, Power BI will still show a Python script error. Apparently, it still needs to be started from the conda environment.
- farismalaebSteel Contributor
- rootsmusicBrass ContributorOk farismalaeb, I've added a system variable and a user variable for admin. But Powershell still gives the error.
- farismalaebSteel ContributorHI
I tested the URL provided with a similar app and it works fine.
Just make sure that you include the .exe in the Registry Key.
Does the Anaconda require an additional parameter?
Also, if you run the application name alias .exe from Run, are you getting any results