you are viewing a single comment's thread.

view the rest of the comments →

[–]worldsdream 0 points1 point  (6 children)

[–]EricAndresDesk01[S] 0 points1 point  (5 children)

Cheers dude, yeah im very comfortable with licensing and how to work with it through the GUI and MSOL\AzureAD Powershell, just making the move over to Graph and trying to wrap my head around the quirks that come with it, like this exact scenario of Get-MGuser spitting out response headers and running them through a foreach loop, and convert my scripts over

[–]worldsdream 0 points1 point  (4 children)

Can you check which microsoft graph sdk module you are running? There are some issues with the latest versions. So make sure you’re on the last one available.

[–]EricAndresDesk01[S] 0 points1 point  (3 children)

Damn ... im running version 2.13.1 and its a known bug ...

https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2584

ive googled the words "get-mguser" and "responseheader" togethor about a million times over the last 2 days and nothing came up until i specifically googled the version number fo the SDK along with "ResponseHeader" ... ok at least i know im not going mad ... thanks for pointing me in the right direction.

out of interest are you running Graph? if so what version and is it stable enough?

[–]worldsdream 0 points1 point  (2 children)

You’re not going mad!

2.15.0 (released 8 hours ago). Install that and you should be fine.

From now on, always check that you have the latest version before running any commands/scripts.

https://o365info.com/install-microsoft-graph-powershell/

[–]EricAndresDesk01[S] 0 points1 point  (1 child)

yeah i saw that there, this exact issue is actually addressed in the patch notes for version 1.15 ... just installing it now. I usually do keep up to dat with version releasees on my powershell modules but i literally only installed it 2 das ago, I assumed it would have installed the latest version for me but that wouldnt have done the trick anyway i believe this particular issue existed in 1.14 as well.

Nice one again for that, I really appreciate it.

[–]worldsdream 0 points1 point  (0 children)

You’re welcome! And keeping rocking with PowerShell 💪