0 votes

I need a detailed, step-by-step, of the custom commands

by (40 points)

1 Answer

0 votes
by (303k points)

Hello,

Have a look at the following script from our repository: https://www.adaxes.com/script-repository/all-business-rules-custom-commands-scheduled-reports-and-scheduled-tasks-s394.htm. For the report to include information only about Custom Commands, the $configurationObjectInfos variable should look like the following:

$configurationObjectInfos = @{
    "Custom Commands" = "CustomCommands", "adm-CustomCommand";
    #"Business Rules" = "BusinessRules", "adm-BusinessRule";
    #"Scheduled Tasks" = "ScheduledTasks", "adm-ScheduledTask";
    #"Reports \ Schedule" = "ReportSchedule", "adm-ReportScheduledTask";
} # TODO: comment out unnecessary

If that is not what you need, please, describe the desired behavior in all the possible details with live examples.

Related questions

0 votes
1 answer

Hi there, i've a custom command with multiple powershell scripts (for clearance reasons). If for example the frist script produces an error i Write an Error but the next ... tried with an simple exit 1; I only Write-Errors on issues. Kind regards, Constantin

asked Jul 23, 2021 by Constey (190 points)
0 votes
1 answer

Are PowerShell commands supposed to show up in the programming interface after adding the module to the Adaxes server? I've installed modules and they don't show.

asked Aug 18, 2020 by ComputerHabit (810 points)
0 votes
1 answer

We are wanting to display all values entered into a multi value text attribute in an email sent by Adaxes. What we've found is that only the first entry into the array ... Entry" Is there a way to reference the variable so that it displays all entries? Thanks

asked Dec 12, 2024 by msheppard (790 points)
0 votes
1 answer

For a custom command, I need to perform some actions, then reboot a computer, then perform some more. How can we handle the reboot so the actions continue once the computer is back up and ready? Thanks

asked May 17, 2022 by jcrook (120 points)
0 votes
1 answer

Is there a way to bind custom commands to an OU? Command1 to OU1 and all objects under this location Command2 to OU2 and so on

asked Dec 10, 2018 by plesen (100 points)
3,704 questions
3,387 answers
8,557 comments
549,778 users