0 votes

I have set up a web portal page to run a custom command, the problem is that the custom command is not run on a single user, it is more like a scheduled task. So I need to figure out how to put on the web portal page the scheduled task so that the set of users that will be using this page can run the task on demand, not at a scheduled time. Thank you for all your help.

Tony

by (320 points)
0

Hello Tony,

We are not quite clear on what you are trying to achieve. You want a certain set of actions to be run on demand (like a Custom Command), but the set of users that this Custom Command will be executed on is to be predefined and not selectable. Is that correct?

0

Let see if I can get this right...
Here are the things I need to do for this project:
1. search all employees
2. identify if the account enabled or disabled
3. see if they have one of or four options in the company field.
4. see if the account has an email address
5. put the account Name, Company, Email into a .csv file
6. email the .csv to the person who has triggered the requset.
7. run this from a web portal.

Now items 1-6 I have working via a powershell script. I would like to be able to run that script from the web portal on demand, more like a scheduled task but with out a specific time(on demand)

1 Answer

0 votes
by (1.8k points)

You dont need anything fancy smancy, you simply put the script in a custom command, and publish this on the desired web-interface, so the users can execute the script whenever they want the report.

Also remember to give the users correct rights in security roles to execute custom command.

And in the email sending of the csv file you can use

$recipients = "%adm-InitiatorEmail%"

if you are not already using the initiator variable.

0

Hello,

As mentioned by odsven above, you can do with a Custom Command. You can create a Custom Command that executes your PowerShell script with the help of the Run a program or PowerShell script action. For information on how to create Custom Commands, see the following tutorial: http://www.adaxes.com/tutorials_ActiveD ... ommand.htm. In your script, you can use the %adm-InitiatorEmail% value reference that will be replaced with the e-mail address of the user who launched the Command.

Then, you can publish the Custom Command on the Web interface as a Home Page Action so that users can launch it directly from the Home Page. For information on how to do this, see section Custom Command.

Distribution of rights to execute Custom Commands.

Related questions

0 votes
1 answer

would like to know the method to provide a button to security Q&A reset for enrolled users to Adaxes Admins via Web UI

asked Mar 21, 2023 by Vish539 (460 points)
0 votes
1 answer

Hello, I'm evaluating the use of Adaxes at my organization, where on a weekly basis we have users changing positions, and require (among other things that Adaxes appears to be capable ... are destined to go to, and a date for this action to happen on? Thanks!

asked Dec 2, 2015 by jduketow (50 points)
0 votes
1 answer

Hi, would it be possible to script a workstation in AD and also directly from our local SCCM environment ?

asked Oct 28 by ddesmedt (40 points)
0 votes
1 answer

I have a scheduled task that runs a Powershell script against an AD group, "Group 1". I need to get all of the members of Group 1, and add them to Group 2. The ... identity in the error message start with 'user;'? What is the correct way to accomplish this?

asked Aug 27, 2019 by ngb (290 points)
0 votes
1 answer

We have a web portal on our ADAxes instance that we allow users to access, however this is not a self service portal and the users can only perform one task that ... not want to grant anymore permissions but I would like to remove this error. Thanks, Chris

asked Jan 16, 2018 by Bowman4864 (270 points)
3,549 questions
3,240 answers
8,232 comments
547,814 users