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.

Question:
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 (216k points)
selected by
Best answer

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

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

So I need an approval process before adaxes executes a custom command to create a user. Basicaly an HR group and a Privacy group have to approve. what i have is set up like this ... the first one has been approved. I want them to go out at the same time.

asked Apr 14, 2023 by mightycabal (1.0k 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 (960 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)
3,548 questions
3,238 answers
8,232 comments
547,813 users