Problem Executing PowerShell Scripts from Service

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).
Post Reply
ImNtReal
Posts: 5
Joined: Mon Oct 28, 2013 12:01 pm

Problem Executing PowerShell Scripts from Service

Post by ImNtReal »

HM: 9.22
OS: Windows Server 2008 R2

I'm running HostMonitor as a service using the System Account, and have specified an Administrator account under the Service tab of the Options dialog inside HostMonitor. If I launch RCC from a console RDP session on the server, open my PowerShell script under Script Manager, and run it under the Lets try tab, it seems to run correctly. If I do the same thing under RCC from a different machine, it gives me the PSSecurityException. When the service attempts to execute it, it always replies Script returns no results. If I run the x86 version of PowerShell as my HostMonitor user on the server, and execute Get-ExecutionPolicy -List, this is what it's currently set to:

Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Bypass
LocalMachine Bypass

Any advice?

Thanks,
=-Jameson
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Looks like UAC related problem.
Do you have UAC Enabled on the system?
Could you try to specify BUILT-IN Administrator account on Service tab of the Options dialog or disable UAC?
ImNtReal
Posts: 5
Joined: Mon Oct 28, 2013 12:01 pm

Post by ImNtReal »

KS-Soft Europe wrote:Looks like UAC related problem.
That was it exactly. I just disabled UAC since I need domain credentials to run some of my tests. Thanks for your quick response.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You are welcome.
Post Reply