Skip to content

Instantly share code, notes, and snippets.

@MarcusWegener
MarcusWegener / Power BI Desktop EN.ps1
Last active October 23, 2019 09:41
This script sets the UICulture in the registry and launches the Power BI desktop
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Microsoft Power BI Desktop" -Name "UICulture" -Value "en-EN"
Start-Process '"C:\Program Files\Microsoft Power BI Desktop\bin\PBIDesktop.exe"'
@MarcusWegener
MarcusWegener / Power BI Desktop DE.ps1
Last active October 23, 2019 09:41
This script sets the UICulture in the registry and launches the Power BI desktop
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Microsoft Power BI Desktop" -Name "UICulture" -Value "de-DE"
Start-Process '"C:\Program Files\Microsoft Power BI Desktop\bin\PBIDesktop.exe"'
@MarcusWegener
MarcusWegener / Get-PowerBI-DiagPort.ps1
Last active September 19, 2019 06:39 — forked from guyinacube/Get-PowerBI-DiagPort.ps1
Get the Power BI Diagnostic port using PowerShell
#BITTE ÖFFNEN SIE ZUERST IHRE POWER BI-DESKTOP-DATEI, BEVOR SIE DIESES SCRIPT AUSFÜHREN!!!!!
#Erhält eine Liste der Prozess-IDs für alle offenen Power BI Desktop-Dateien
$processids = Get-Process msmdsrv -erroraction 'silentlycontinue' | Select-Object -ExpandProperty id
#Durchläuft alle Prozess-IDs, ruft den Diagnoseport für jede Datei ab und generiert schließlich die Verbindung, die beim Herstellen einer Verbindung zum Vertipaq-Modell verwendet werden kann.
if($processids)
{
foreach($processid in $processids)
{