|
View previous topic :: View next topic |
Author |
Message |
ImNtReal
Joined: 28 Oct 2013 Posts: 5
|
Posted: Mon Oct 28, 2013 12:18 pm Post subject: Problem Executing PowerShell Scripts from Service |
|
|
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 |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Mon Oct 28, 2013 12:23 pm Post subject: |
|
|
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? |
|
Back to top |
|
|
ImNtReal
Joined: 28 Oct 2013 Posts: 5
|
Posted: Mon Oct 28, 2013 12:35 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Mon Oct 28, 2013 12:36 pm Post subject: |
|
|
You are welcome. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|