Hello,
Yes, it is possible. Cmdlets from Adaxes PowerShell module support running from a specific provider path. So, at the beginning of your script, you can define the appropriate Adaxes Active Directory provider path that includes the name of the necessary Adaxes service and the name of the Active Directory server you need. For this purpose, you need to call the Set-Location cmdlet, for example
Set-Location Adaxes:/adaxesserver.example.com/example.com
Where:
- adaxesserver.example.com - is the name of your Adaxes service,
- example.com - the name of the AD server (or name of the domain) that will be used for operations in AD.