Running Get-ClusterFaultDomain

Product: PowerShell Universal
Version: 5.6.9

Hey all,

I’m trying run the command below from PSU. If I login to server itself as the service account PSU service is running and run the command below, I get the result instantly. If I run the command from PSU webpage I don’t get any result and script doesn’t fail either. It is just running.

Get-ClusterFaultDomain -CimSession hypervhostname -Name hypervhostname -ErrorAction Stop

I checked to make sure I’m running the command in same version powershell v5. It is not running on the PSv7.

Any pointers would be appreciated.

Dear Halukk,

Thank you very much for contacting Ironman Software!

My name is Ruben Tapia, a support engineer in charge of request #F13137. While we review the details provided, please remember that you can add additional information by replying to this email.

I understand Get-ClusterFaultDomain -CimSession ... returns immediately when run interactively on the server (as the PSU service account), but from the PSU web UI the job stays “Running” with no output.

To help isolate the difference in execution context, could you please confirm:
• Is PSU deployed as a single server or a multi-node cluster? If clustered, which node is actually executing the job?
• In the Run dialog for the script, what is selected in the Computer dropdown (Any available computer vs a specific node vs All Computers)?
• Which Environment is selected for the script (Windows PowerShell 5.1 vs another environment)?
• Please share a screenshot of the Run dialog and the Job details page (Output, Verbose, and Error tabs), plus PSU logs from the time of the run.

As a quick test, please set a finite Script Timeout (e.g., 2–5 minutes) and run again while forcing the Computer selection to the same node where it works interactively. Additionally, add Write-Verbose lines immediately before and after the Get-ClusterFaultDomain call so we can see exactly where it stalls.

https://docs.powershelluniversal.com/automation/scripts
https://docs.powershelluniversal.com/automation/jobs
https://docs.powershelluniversal.com/config/environments
https://docs.powershelluniversal.com/platform/modules
https://docs.powershelluniversal.com/changelogs/changelog

Best regards,

Ruben