Skip to content

Instantly share code, notes, and snippets.

@Hugoberry
Last active April 2, 2017 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hugoberry/910b33cb36f390d76b6d0018c1cc24de to your computer and use it in GitHub Desktop.
Save Hugoberry/910b33cb36f390d76b6d0018c1cc24de to your computer and use it in GitHub Desktop.
Power Query CurrentUser via a lightweight PowerShell HTTP API
// Based on running the simple HTTP API service from:
// https://blogs.msdn.microsoft.com/powershell/2014/09/29/simple-http-api-for-executing-powershell-scripts/
let
output = Json.Document(Web.Contents("http://localhost:8888/?command=whoami"))
in
output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment