Active Roles scheduled script dies on access denied

Hello,

I have a Active Roles script module to move dormant objects using Move-QADObject and -ErrorAction SilentlyContinue.

When i run it as a scheduled task the script dies when access is denied to move an object.

I can run the job in ISE no problem and the script continues. Is there something i need to do further in the script or in Script Module or Scheduled Task to get it to continue?

Help is apprecaited.

Thank you,

Lu

Parents
  • also - if it works running interactively via ise, you're probably using your own credentials 

    Assuming you are using a different account to run the service, vs a  proxy service account for the target domain, then you'd need to load the stored proxy credential in ARS into a credential object and use -credential with your qad command to get the permissions it needs to do that work.

    The lessons we learn ….

Reply
  • also - if it works running interactively via ise, you're probably using your own credentials 

    Assuming you are using a different account to run the service, vs a  proxy service account for the target domain, then you'd need to load the stored proxy credential in ARS into a credential object and use -credential with your qad command to get the permissions it needs to do that work.

    The lessons we learn ….

Children
No Data