-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module suddenly stop working #20
Comments
Hi, |
Hey @andrew-s-taylor sorry for late response I was on vacation... After rolling back to older version of Graph.Authentification module everything work's again... |
I'm having the same issue - been trying to get it working, but no avail. Going to a different version of Graph.Authentication isn't quite helping, nor is using the updated one from Microsoft they released today (2.19.0). What I've observed, is if I open a new PowerShell window, and re-run the get-windowsautopilotinfocommunity.ps1 script, it appears to function fine. However - the kicker is I can't for the life of me get it to run within the context of a script. It was all working great before Microsoft updated their Graph.Authentication module. There's another post similar to this: microsoftgraph/msgraph-sdk-powershell#2715 |
Hi, is it any particular command in the module, or all of them? |
So I'm running this during the OOBE portion of a Windows setup (Shift + F10). I've got a PowerShell script that's hosted online that:
This is where the same error comes up. Interestingly, if I run through this all manually, I get the same error. However, if I run Powershell from within a PowerShell window and re-run the same command ( get-windowsautopilotinfocommunity.ps1 -Online -AppId $AutopilotParams.AppId -AppSecret $AutopilotParams.secret -Tenantid $AutopilotParams.tenant -grouptag $GRPTAG ), it works as intended. I tried also just specifying the -online parameter and used my own credentials, and same result. Still working through the issues we saw came up last week around the time Microsoft updated the Graph module from 2.17 to 2.18. I was hoping 2.19 would have fixed it, but it seems it didn't as of yet. |
Ah, it's probably the AZ and Graph modules causing issues again, it happened with one of the V1 versions as well which broke pagination. As a workaround, try adding "-newdevice" to the command, that skips retreiving the device list so won't worry about pagination issues |
Invoke-MgGraphRequest : The pipeline has been stopped.
Add-AutopilotImportedDevice : System.MissingMethodException: Method not found: 'Void
|
Before issuing the connect-azaccount, I had to issue: Update-AzConfig -EnableLoginByWam $false Seems to be working again now as intended. |
Thank you for letting me know. I'll add it as a comment in the next release :) |
Hey Andrew, I am having a similar issue, when trying to delete the device from Intune, I am getting an error. I have tried sdk 2.17.0, 2.18.0, and 2.19.0 and am getting the same error on each. I've been using this script for a long time and have never encountered this issue before. Here is the error I am getting. Delete Intune Device
|
Hi, Is that the module, or the nuke script? |
This is from running the nuke script, all other pieces of the script are working except the delete intune device portion. I removed the name of the device for anonymity purposes. |
Does it list Intune devices before that? It's not populating any device names in your yes/no message |
Hi Andrew,
Module was working without issues, but suddenly from yesterday each time I run it I am getting following issue. Any idea?
Loading all objects. This can take a while on large tenants
Invoke-MgGraphRequest : The pipeline has been stopped.
At C:\Program Files\WindowsPowerShell\Scripts\get-windowsautopilotinfocommunity.ps1:1959 char:26
Something went wrong. Error: Method not found: 'Void Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider..ctor(Azure.Core.TokenCredential, System.String[], Microsoft.Kiota.Authentication.Azure.ObservabilityOptions, System.String[])'.
Stop-Transcript : An error occurred stopping transcription: The host is not currently transcribing.
At D:\AutoPilot3.ps1:128 char:5
The text was updated successfully, but these errors were encountered: