Home Advanced Request Offering

Powershell run as command

In powershell activities:

I get this error when using run as. I want to run a powershell script in scsm activities for SRs but only this one as a different account. The accounts exist in administration and this one is used.

Full error:

Date: 12/12/2024 8:15:04 AM
Application: System Center Service Manager
Application Version: 10.19.1035.0
Severity: Error
Message: Verification Error...

System.Exception: InitDatabaseConnection error... ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Cireson.Powershell.Activity.UserUtil.RunAsAccountUtil.iDObfSD6Q()
--- End of inner exception stack trace ---
at Cireson.Powershell.Activity.UserUtil.RunAsAccountUtil.iDObfSD6Q()
at Cireson.Powershell.Activity.UserUtil.RunAsAccountUtil..ctor()
at Cireson.Powershell.Activity.WPF.PasswordNotificationDialog..ctor(UserSimpleModel model)
at Cireson.Powershell.Activity.WPF.ScriptForm.kNWlqC6W4(Object , RoutedEventArgs )
System.NullReferenceException: Object reference not set to an instance of an object.
at Cireson.Powershell.Activity.UserUtil.RunAsAccountUtil.iDObfSD6Q()

Any ideas?

Answers

  • Geoff_RossGeoff_Ross Cireson Consultant O.G.

    Hi @Ryan_Kelley

    The workflow account needs to be able to read the ServiceManager DB in order to get the stored credentials for the Run As Account.

    Can you confirm that access?

    Geoff

Sign In or Register to comment.