ugurkocde / IntuneOffboarding

https://ugurkoc.de/
MIT License
96 stars 25 forks source link

Update Get-IntuneOffboardingToolv2.ps1 #10

Closed LDP-KStill closed 4 months ago

LDP-KStill commented 6 months ago

Missing two quotation marks

AndrewJNet commented 5 months ago

Confirmed this fixes it for me. Resolves #9

ugurkocde commented 4 months ago

lgtm. Thanks @LDP-KStill

blinkblinktwo commented 2 months ago

lgtm. Thanks @LDP-KStill

By chance, does the auth button code also need the quotes on permissions? Changed to like the below?

$AuthenticateButton.Add_Click({ try { Connect-MgGraph -Scopes "Device.Read.All", "DeviceManagementManagedDevices.ReadWrite.All", "DeviceManagementServiceConfig.ReadWrite.All" -ErrorAction Stop $context = Get-MgContext