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

Unable to utilize PIM role creation #31

Open
Naiquist opened this issue Sep 14, 2023 · 0 comments
Open

Unable to utilize PIM role creation #31

Naiquist opened this issue Sep 14, 2023 · 0 comments

Comments

@Naiquist
Copy link

Naiquist commented Sep 14, 2023

Hello All,

I've upgraded to the newest DC toolbox version and updated existing PIM role scripts to reflect "Enable-DCEntraIDPIMRole"
When I run the command, I get the following error after defining the duration of the role

Duration for 'Intune Administrator' [9 hour(s)]: 9
New-Object : Cannot find type [Microsoft.Open.MSGraph.Model.EntraIDMSPrivilegedSchedule]: verify that the assembly containing this type is loaded.
At line:1286 char:21

  • ... $Schedule = New-Object Microsoft.Open.MSGraph.Model.EntraIDMSPrivileg ...

  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
    • FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

    Any help would be much appreciated :)

    *** Using older version of DCToolbox with old command still works**

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