DanielChronlund / DCToolbox

Tools for Microsoft cloud fans
314 stars 53 forks source link

Enable-DCEntraIDPIMRole #33

Open mpaghubasan opened 1 year ago

mpaghubasan commented 1 year ago

Hi, I recently reinstalled Windows 11 Pro and when I'm trying to activate PIM via powershell I came across this error. When I installed the modules AzureADPreview and DCToolbox. DCAzureADPIMRole is not recognized anymore. Then that's the time that I noticed that DCEntraIDPIMRole is now there and when I used it allowed me to select the roles I need to activate. However, when I'm done selecting the choices, it shows me this error message. There's not much article regarding this so any assistance would be appreciated.

image

mpaghubasan commented 1 year ago

Update: Resolved by installing the previous version of DCToolbox 1.0.39 and using DCAzureADPIMRole. Hopefully, using DCEntraIDPIMRole on ver 2.0.2 will be resolved soon.

toky76 commented 1 year ago

Hi,

I am having the same problem" New-Object : Cannot find type [Microsoft.Open.MSGraph.Model.EntraIDMSPrivilegedSchedule]: verify that the assembly containing this type is loaded. At C:\Users\PeterTokarcik\OneDrive - kyndryl\Dokumenty\WindowsPowerShell\Modules\DCToolbox\2.0.2\DCToolbox.psm1:1286 char:21

The solution of mpaghubasan is working!