0 votes

Hello @All,

I have a little question about the parameter -AdaxesService and -Service.
In a PowerShell Script I have to define the two parameters every time I run an CmdLet from Adaxes Modul.

Is that possible that I define the Values one time per Power Shell Script?

Thanks for some help ;)

by (360 points)

1 Answer

0 votes
by (215k points)
selected by
Best answer


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


  • 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.

Hi Adaxes Support,

that's great I'll test the script with that setting.

Arne :D

Related questions

0 votes
1 answer

We have RBAC groups inside an OU. We would like to restrict users from being added to multiple RBAC groups at a time. For example: RBAC Roles OU Sales RBAC Group ... groups outside of this OU structure though. What's the best way to achieve this? Thanks

asked Oct 13, 2021 by bavery (250 points)
0 votes
1 answer

We have a single AD domain that also matches our primary email domain (e.g. @primarydomain.com), but we also have multiple company specific email domains (e.g. @companydomain. ... like to also link the companydomain.com to the user's company value set in AD.

asked Apr 29, 2020 by JacquesKruger (20 points)
0 votes
1 answer

Hi, I am trying to write a PS script for a business rule, that would cancel operation when user tries to remove the "last" RBAC group. Say the group structure is like that: ... "Main RBAC" - but I can't figure out how to do it properly. Thanks for suggestiong

asked Oct 15, 2018 by KIT (570 points)
0 votes
1 answer

HI *, I would kindly ask if there is a way to pass value to running custom script trough web interface. I see some old discussions on the forum that this feature should be come ... I cannot find it. Could you please help me to find out how to proceed? Thanks.

asked Jan 26, 2015 by majin (50 points)
0 votes
1 answer

I want to send out an email one time 60 days after an account expires. I was trying to set this up using the scheduled task, but it requires me to pick a schedule before I ... select One time, it requires me to pick a date. Is there any other to do this?

asked Oct 25, 2013 by sdavidson (730 points)
2,880 questions
2,600 answers
114,619 users