ruudmens / LazyAdmin

SysAdmin scripts for you to use.
MIT License
606 stars 216 forks source link

Select-MGProfile Beta is not recognizable #23

Closed skydannypoint closed 10 months ago

skydannypoint commented 1 year ago

The Get-MgMFAStatus script always produces this error when run;

Select-MgProfile: C:\Program Files\PowerShell\Scripts\Get-MgMFAStatus.ps1:69 Line | 69 | Select-MgProfile Beta | ~~~~ | The term 'Select-MgProfile' is not recognized as a name of a cmdlet, function, script file, or executable | program. Check the spelling of the name, or if a path was included, verify that the path is correct and try | again.

Apparently this cmdlet is no longer usable since a newer version of the Graph powershell module was released.

ruudmens commented 10 months ago

Fixed in the last commit. Select-MgProfile is indeed not supported anymore.