Hi team,

we are using a lot of custom PowerShell Scripts in our rules and actions. Is there a way to see and search through them? Are they saved somewhere in a readable format?

I need to change some paths and would like to avoid to open every rule and check every PS action.

Thanks

by (2.5k points)

2 Answers

by (16.4k points)
0 votes

Hello,

Unfortunately, there is no possibility to view all the scripts at once. Each script is stored in the corresponding action configuration. However, you can search and replace texts in Adaxes scripts. For details, have a look at the following repository article: https://www.adaxes.com/script-repository/search-and-replace-text-in-adaxes-scripts-s224.htm.

by (2.5k points)
0

That seems to be exactly what I am looking for - thanks! <3

by (360 points)
0 votes

This is one reason we dot source our larger scripts. It also has the advantage of code reuse and makes keeping them under source control easier.

Set-Location c:\scripts\adaxes
".\My-Script1.ps1", ".\My-Script2.ps1"| ForEach-Object {
    if (!(Test-Path -Path $_)) {
        try {
            throw [System.IO.FileNotFoundException]::new("Missing helper script $_.")
        }
        catch {
            $Context.LogException($_.Exception)
            throw
        }
    }
    else {
        # dot source the helper scripts
        . $_
    }
}

Related questions

Here are the actrions of the custom command. Here are the parameters. Need a script to copy the param user's file path for home drive example: Param user's home drive ... ) should be //server1/homedirs/%username%. Then give the user full control of the folder.

asked Feb 8, 2023 by mightycabal (1.2k points)
0 votes
1 answer

This is from within a custom task. Account has proper RBAC permissions and I can do this from a normal powershell window.

asked Mar 26 by ZoomGhost (320 points)
0 votes
1 answer

Let's say that I have a scheduled task that adds a high-level roles-based AD group to a user. As part of that same task, I'd like to run a powershell script to collect all ... the task to type in the "parent" group name, and pass it to the script that way?

asked Sep 22, 2025 by 3Jake (210 points)
0 votes
1 answer

I'm trying to run a powershell script that triggers before updating a user, but only run it if the action comes from the self-update web interface. Is that possible?

asked Sep 4, 2025 by jaymallery (60 points)
0 votes
1 answer

I have a number of custom Powershell scripts that add users to Teams, groups, etc. I re-use these scripts dozens of times for different conditions and only change one ... possible to convert this script to a custom command and pass parameters to it instead?

asked Dec 16, 2024 by cwyant-hfg (40 points)
0 votes
1 answer