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

Enable-DCEntraIDPIMRole #33

Open
mpaghubasan opened this issue Sep 22, 2023 · 2 comments
Open

Enable-DCEntraIDPIMRole #33

mpaghubasan opened this issue Sep 22, 2023 · 2 comments

Comments

@mpaghubasan
Copy link

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
Copy link
Author

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
Copy link

toky76 commented Sep 26, 2023

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

  • ... $Schedule = New-Object Microsoft.Open.MSGraph.Model.EntraIDMSPrivileg ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
    • FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

The solution of mpaghubasan is working!

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

2 participants