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).
Could you please check if the following command:
echo (Search-Adaccount -LockedOut | Measure).Count
works connrectly on 32bit and 64bit Powershell versions?
Default locations for 32bit and 64bit powershell are:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
If command works well on both powershells,
there may be some problems with Windows Pipe.
You may tell HostMonitor do not use Windows Pipe - add SScript_UseWindowsPipe=0 line into [Misc] section of hostmon.ini file and restart HostMonitor.
We have tested script on Windows Server 2008 R2 SP1 with HostMonitor 9.58 started as Application and Service started under BUILD-IN Administartor account. SScript_UseWindowsPipe=0 option is not present in hostmon.ini
What HostMonitor version do you use?
HostMonitor started as Application or Service?
Do you get this error using RCC "Lets try" tab or using HostMonitor GUI?
What Windows version and Service pack do you use? UAC enabled?
KS-Soft Europe wrote:Could you try to change SScript_UseWindowsPipe parameter value in hostmon.ini and restart HostMonitor to: SScript_UseWindowsPipe=1
Done that.
This revealed the real problem: Execution Policy settings!
In PS I ran "Set-ExecutionPolicy Unrestricted", and everything works now
Should I set the "SScript_UseWindowsPipe" back to 0 again?
By default, HostMonitor uses Windows Pipes (SScript_UseWindowsPipe=1 or option is absent).
If all Shell Script test items work well, it's better to leave SScript_UseWindowsPipe=1 option or remove it from hostmon.ini.