Powershell 以编程方式停止Avecto DefensePoint

Powershell 以编程方式停止Avecto DefensePoint,powershell,Powershell,在任何人谈论访问权之前。。。 我可以完全访问服务,并且可以手动停止Avecto Defendenpoint服务和Avecto Defendenpoint ePO接口。而且,所有将使用此应用程序的用户也将拥有管理员权限 我正试图找到一种通过PowerShell停止Avecto DefensePoint服务的方法。我试过 右键单击PowerShell(以管理员身份运行) 以此作为回应 Stop-Service : Service 'Avecto Defendpoint Service (Avecto

在任何人谈论访问权之前。。。 我可以完全访问服务,并且可以手动停止Avecto Defendenpoint服务和Avecto Defendenpoint ePO接口。而且,所有将使用此应用程序的用户也将拥有管理员权限

我正试图找到一种通过PowerShell停止Avecto DefensePoint服务的方法。我试过

右键单击PowerShell(以管理员身份运行)

以此作为回应

Stop-Service : Service 'Avecto Defendpoint Service (Avecto Defendpoint
Service)' cannot be stopped due to the following error: Cannot open Avecto
Defendpoint Service service on computer '.'.
我还尝试使用-Force参数,得到了相同的结果。如果我在运行PowerShell之前手动禁用Avecto,我可以再次手动启动服务备份,然后我可以按照预期从PowerShell终止它;但这违背了将功能嵌入程序的目的


有什么想法或建议吗?

您可以使用以下命令停止DefendePoint的工作:

Stop-Service -InputObject "Avecto Defendpoint Service" -Force
完成并需要重新启用后,请使用以下方法:

Start-Service -InputObject "Avecto Defendpoint Service"

这与Java有什么关系?绝对没有!我取下了标签。这个将被嵌入的程序是用Java编写的,但是对于这个问题,这个事实是无关紧要的。这个日志会记录给IT管理员吗?他们是否会收到PowerShell提示符已停止服务的通知?我假设Avecto Defendenpoint在某处有一个控制器来管理策略,或者它是一个完全独立的应用程序?如果Avecto已正确配置,您仍然没有使用-Force标志停止Avecto的权限。我以管理员身份运行Powershell执行了上述命令,但仍然收到相同的错误。在我的公司,这将是一种违规行为,可能会导致纪律处分,包括终止雇佣关系(最有可能的情况是在警告后再次尝试)。我的建议是基于业务原因,联系您的IT安全部门,陈述您的案例,并要求解决方案。
Start-Service -InputObject "Avecto Defendpoint Service"