0 votes

After upgrading to version 2025.1 we need to rewrite al lot of powershell scripts.

We have a problem with using the ConfluencePS powershell module that is used to write info to Confluence.

When we run the scripts on our pc under Powershell V7, all is working fine but when running them in Adaxes they all give an error.

With a test script that only does: Import-Module -Name 'C:\program files\powershell\7\Modules\ConfluencePS\2.5.1\ConfluencePS.psd1'

We get the following error:

PowerShell script 'test Wim' produced the following output: Could not find a part of the path 'C:\Program Files\Softerra\Adaxes 3\Service\ref\System.Runtime.dll'. Stack trace: at <ScriptBlock>, C:\program files\powershell\7\Modules\ConfluencePS\2.5.1\ConfluencePS.psm1: line 4 at <ScriptBlock>, <No file>: line 1

Can you explain what is going wrong here as the PS Module does work on other PS V7 environments?

ago by (40 points)
0

I made a script like this and run it in PS7 to check my modules

# PowerShell 7 script: check module compatibility with timing and timeout

$seen = @{}
$modules = Get-Module -ListAvailable |
    Where-Object { $_.Name -ne $null -and -not $seen.ContainsKey($_.Name) } |
    ForEach-Object { $seen[$_.Name] = $true; $_ } |
    Select-Object Name, Version, Path

foreach ($mod in $modules) {
    try {
        $start = Get-Date

        $job = Start-Job -ScriptBlock {
            param($modName)
            Import-Module -Name $modName -ErrorAction Stop
        } -ArgumentList $mod.Name

        if (Wait-Job -Job $job -Timeout 10) {
            Receive-Job $job | Out-Null
            $end = Get-Date
            $duration = ($end - $start).TotalSeconds
            Write-Host "āœ… Module $($mod.Name) imported successfully in $($duration.ToString('0.00')) sec." -ForegroundColor Green
        } else {
            Write-Host "ā³ Timeout importing module: $($mod.Name)" -ForegroundColor Yellow
            Stop-Job $job | Out-Null
        }
    } catch {
        Write-Host "āŒ Module $($mod.Name) failed to import: $($_.Exception.Message)" -ForegroundColor Red
    } finally {
        Remove-Job -Job $job -Force | Out-Null
    }
}

Write-Host "`nāœ… Module compatibility check completed." -ForegroundColor Cyan

1 Answer

0 votes
ago by (302k points)

Hello,

As we can see from the module description, it is not documented to be tested in PowerShell 7: https://github.com/AtlassianPS/ConfluencePS/tree/master?tab=readme-ov-file. At the same time, we confirm that importing the module in Windows PowerShell 7 does not error our unlike in Adaxes. We will investigate the matter and se whether there is anything we can do about the behavior.

Related questions

0 votes
0 answers

Just recently built a new server, installed 2025.1, and restored configuration from a backup of our other server running 2023.2. I updated the web interface address in ... d6d4f3bd7654 and I'm able to approve/deny from that interface without issue. Any ideas?

asked May 13 by msinger (230 points)
0 votes
1 answer

Since adaxes does not support powershell 5.1 and we make use of snapins for Exchange Management Tools we are considering rolling back to 2023.2. In the changelog there is no ... any issue to roll back until we figure out a way to manage the hybrid environment?

asked May 23 by jdoucet (20 points)
0 votes
1 answer

Attempting to upgrade my Adaxes servers to the latest version. 1 - App server - Adaxes console is installed with Adaxes Backend service and Softerra Adaxes service. 1 - Web Server - ... do I backup the web config? Do I need to do anything with the SQL server?

asked May 15 by ADuser (80 points)
0 votes
1 answer

We followed the upgrade instructions here: Adaxes Installation Guide We upgraded from 2023.2 to 2025.1 in a Single Server Configuration. -Backed up our configuration using the backup ... 2 on it that we saved before having to revert back that I can provide.

asked Apr 22 by cmosley (20 points)
0 votes
1 answer

Hi, after upgrading to 2025.1 technicians in our helpdesk role is missing the 'Add' button on the 'Member Of' section of the User screen. They have full write ... group membership from the Group screen. Administrator users are still able to see the button.

asked May 1 by Allister (50 points)
3,703 questions
3,386 answers
8,555 comments
549,766 users