Non-interactive API login via Powershell

Hey guys.
I’m trying to write some powershell scripts to allow non-priviliged users to run some commands against the DC that require permissions that they don’t have (registering SPNs for example)

I’d like to use the bw login --apikey
But I can’t for the life of me figure out how to do it in a non-interavtice fashion, as whenever I use the --apikey it open an interactive request for the ID and the KEY.

Is it at all possible to automate this process?

1 Like