Skip to content
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

Error: Intune Workload: Update-MSGraphEnvironment is not recognized as the name of a cmdlet, #140

Open
William-Francillette opened this issue Jan 23, 2023 · 0 comments

Comments

@William-Francillette
Copy link
Contributor

When using the the Intune workload I receive the following error

System.Management.Automation.CommandNotFoundException: The term 'Update-MSGraphEnvironment' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
"Error retrieving data:"
at Connect-MSCloudLoginIntune, C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.103\Workloads\Intune.psm1: line 67
at Connect, C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.103\ConnectionProfile.psm1: line 327
at Connect-M365Tenant, C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.103\MSCloudLoginAssistant.psm1: line 206
at New-M365DSCConnection, C:\DevOps\Microsoft365DSC-1\Modules\Microsoft365Dsc\modules\M365DSCUtil.psm1: line 1816
at Get-TargetResource, C:\DevOps\Microsoft365DSC-1\Modules\Microsoft365DSC\DSCResources\MSFT_IntuneWindowsInformationProtectionPolicyWindows10MdmEnrolled\MSFT_IntuneWindowsInformationProtectionPolicyWindows10MdmEnrolled.psm1: line 143
at <ScriptBlock>, <No file>: line 2


If I use the Graph workload I don't have the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant