RuiRomano / pbimonitor

MIT License
221 stars 83 forks source link

FetchGraph.ps1 #38

Closed byteboy78 closed 8 months ago

byteboy78 commented 1 year ago

Hi,

This uses access token. Is there another way to login interactively and extract this data?

Thanks.

JamesDBartlett3 commented 8 months ago

@byteboy78, I've attached a customized version of Fetch - Graph.ps1 which automatically:

Download here: FetchGraph.zip

Note: The Fetch - Utils.psm1 module must remain in the same folder with the script, or you'll have to modify the path on line 14 of the script.

I just tested the attached script by extracting the zip file into a new folder and executing it from there with no parameters. It successfully authenticated with my current user account, called the Graph APIs, and dumped the expected data into a new folder called graph. I'm marking this issue as closed for now, but if it doesn't work for you, please tag me in a new comment, and I'll re-open the issue.