KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Problem Executing PowerShell Scripts from Service

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
ImNtReal



Joined: 28 Oct 2013
Posts: 5

PostPosted: Mon Oct 28, 2013 12:18 pm    Post subject: Problem Executing PowerShell Scripts from Service Reply with quote

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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Mon Oct 28, 2013 12:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ImNtReal



Joined: 28 Oct 2013
Posts: 5

PostPosted: Mon Oct 28, 2013 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Mon Oct 28, 2013 12:36 pm    Post subject: Reply with quote

You are welcome.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index