When I attempt to run a powershell script through a shell script when hostmonitor is running as a service I receive the error:
File <temp .ps1 file> cannot be loaded because the execution of scripts is disabled on this system.
I've set the execution policy correctly for both 32 and 64 bit powershell and I can run powershell scripts directly on the server hosting hostmonitor.
If I run hostmonitor as an application and not as a service the powershell scripts run fine.
If I take a copy of the powershell exe and try running it from a different location on the server I receive an error 'device is not ready'.
The hostmonitor service is running under a local administrator account.
Here are my UAC settings (all other settings are disabled):
Admin Approval Behaviour: Elevate without prompting
Standard User Approval Behaviour: Prompt for credentials
Elevate UIAccess apps that are installed in secure locations: Enabled
Switch to the secure desktop when prompting for elevation: Enabled
Virtualise file and registry write failures to per user locations: Enabled
The error I'm seeing suggests it is UAC issue and if this is the case, which of the above UAC settings need to change?
I'm running Hostmonitor 9.90 on Windows 2008 R2.
Thanks for your help and happy new year
