lithnet / resourcemanagement-powershell

Lithnet FIM/MIM Service PowerShell Module
MIT License
37 stars 12 forks source link

[Get-Resource], UnwillingToPerformException #42

Closed 1nput0 closed 1 month ago

1nput0 commented 1 month ago

Hi,

We have a production and an integration enviroment of MIM where we use lithnet. We installed a second integration enviroment. On this new server we have Powershell 5 and Powershell 7 installed. When MIM wants to create a provisioning job, we receive following error in the request:

Error Invoking PowerShell script. Error: 'Get-Resource : Failure Message: Failure Source: IdentityIsNotFound Details: The requestor's identity was not found. Correlation ID At line:11 char:16 + ... $obj = Get-Resource -ID 'removed ID for this issue' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Resource], UnwillingToPerformException + FullyQualifiedErrorId : Lithnet.ResourceManagement.Client.UnwillingToPerformException,Lithne t.ResourceManagement.Automation.GetResource '

Is MIM on this server using pwsh.exe as standart instead of powershell.exe? Is there a way we can change that?

Thanks

ryannewington commented 1 month ago

It looks like the account you are running the script as does not exist in the MIM service

1nput0 commented 1 month ago

Thank you! You were right it works now.