Skip to main content
100%

Power Query script to get msmdsrv.exe port number via R

✓ Published0🌍 Public
HHugoberry
Last edited Mar 13, 2017
Created on Mar 13, 2017

This example shows how to retrieve the port number of the msmdsrv.exe process by combining R scripts with Power Query’s M language. It first runs a system command via `system2` to capture the task list and netstat output, then parses the results using `read.fwf` with fixed-width columns. The M code invokes the R script through `R.Execute`, formats the resulting tables with `Table.TransformColumns` and `Table.PromoteHeaders`, and finally joins the process ID from the task list with the matching netstat entry to extract the local address port. The visualization relies on text-based data processing rather than graphical libraries.

AI-generated description

Similar vizzes