AsBuiltReport.Core icon indicating copy to clipboard operation
AsBuiltReport.Core copied to clipboard

Run report creation with a Service Account

Open lzampieri88 opened this issue 4 years ago • 4 comments

I like to run the reporst generation using a service account (gMSA). Can this option be considered? Thanks

lzampieri88 avatar Feb 14 '22 07:02 lzampieri88

I don't understand what you issue is. A report can be created using a stored credential or a username & password. Why won't these options work for a service account?

tpcarman avatar Feb 14 '22 09:02 tpcarman

Thanks for the reply! gMSA accounts do not have a password I can store. The Task Scheduler can run the script as the service account, but then the command needs to run with the user context's credentials, without asking for the creds.

But if there is another option to do this I am not aware of, I'll be happy to use it.

lzampieri88 avatar Feb 14 '22 09:02 lzampieri88

Perhaps you can try this? https://www.ephingadmin.com/PasswordlessPowerShell/

tpcarman avatar Feb 14 '22 12:02 tpcarman

I tried it but got an error. I also not so fond of using a trick whith a user needing enterprise admin rights..

For me the solution would be having an option to work with the user's session credentials, withou having to use the Cred parameter. If this cannot be provided, I accept it of course. We'll need to work with a manual execution.

Thanks!

lzampieri88 avatar Feb 17 '22 08:02 lzampieri88