All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
I have a question. If I run the script below from the script manager it says
[12:05:58 ] Script executed, correct result received:
----------
- Status: Ok
- Reply:
----------
But that is wrong, It should result in Status: Bad and Reply: 151000. When I run powershell myself it does work just as expected and the output is correct.
Status is Ok because $Backlog is empty.
Why $Backlog is empty? May be some permission related issue, script started under different accounts may provide different results.
You should modify your script, it should check for possible errors, set Unknown status in case of error and provide error message
When the shell script runs, does it use the powershell.exe from the operating system? Because it seems that whenever I run the Get-DfsrBacklog command, it does not seem to know the the command. But when I open powershell direcly (on the same server, and even as the same user that runs the HM service) powershell does know that command.
Some powershell commands work only in x64 version of powershell.
You should start powershell using path like
c:\Windows\Sysnative\windowspowershell\v1.0\powershell.exe
No. If you type system32, Windows will redirect system calls. Type sysnative
Sysnative - a special alias used to indicate that the file system should not redirect the access. https://docs.microsoft.com/en-us/window ... redirector