Hello,
If I now run a PowerShell script, it will always run as "service-adaxes", no?
That is correct. By default, scripts are executed using the credentials of the Adaxes service account.
Do I need to specify "Run as" and use the Credentials inside the script? Or do I need to grant permissions to "service-adaxes" to manage AD?
It depends on the operations and code in a script. If you are going to always use Adaxes functionality (e.g. $Context variable and related methods/properties), the credentials of the service account will be used to execute the script operations in Adaxes, but in AD, the domain service account (service-adaxesdomain). If you are going to perform operations directly in AD or elsewhere using a script, then you will need to either specify a different account in the Run as section and use the credentials in the script or grant the Adaxes service account required permissions.