在远程计算机上使用Powershell时出错 [英] Error when using Powershell on remote machine

查看:131
本文介绍了在远程计算机上使用Powershell时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在远程客户端上使用Powershell时遇到一些问题:

I am having a few problems using Powershell on a remote client:

1) 当我跑步时"get-cache-region"或"get-cachestatistics default" powershell命令在运行appfabric缓存的实际主机上,似乎工作正常。  但是,从客户端计算机,如果我连接到缓存然后运行
same命令,我收到以下错误:

1)  When I run the "get-cache-region" or "get-cachestatistics default" powershell command on the actual host that is running the appfabric cache, it seems to work fine.  However, from a client machine, if I connect to the cache and then run the same command, I receive the following error:

脚本错误:ErrorCode< ERRPS005> ;:SubStatus< ES0001>:错误:群集已关闭。

Error in script : ErrorCode<ERRPS005>:SubStatus<ES0001>:Error: Cluster is down.

2)当我从客户端计算机运行get-cachehost时,收到以下结果:

2) When I run get-cachehost from a client machine, I receive the following result:

HostName:CachePort  &NBSP;  服务名称  &NBSP; &NBSP; &NBSP; &NBSP;  服务状态版本信息  

---------------- ----  &NBSP;  
------------  &NBSP; &NBSP; &NBSP; &NBSP;   -------------- ------------  

DEV:22233  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; AppFabricCachingService UNKNOWN  &NBSP; &NBSP;   0 [0,0] [0,0]  

HostName : CachePort      Service Name            Service Status Version Info   
--------------------       ------------            -------------- ------------   
DEV:22233                 AppFabricCachingService UNKNOWN        0 [0,0][0,0]   

但是,在创建输出之前,我收到以下错误:

However, before the output is created, I receive the following error:

Get-CacheHost:ErrorCode< ERRCAdmin032> ;:SubStatus< ES0001>:在DEV上遇到无效操作:AppFabricCachingService:无法在计算机'DEV'上打开服务控制管理器。此操作可能需要其他权限。 在行:1字符:14  +
get-cachehost<<<<<     + CategoryInfo  &NBSP; &NBSP; &NBSP;  :InvalidOperation:(:) [Get-CacheHost],DataCache  例外&NBSP;&NBSP;   + FullyQualifiedErrorId:ERRCAdmin032,Microsoft.ApplicationServer.Caching  
.Commands.GetCacheHostCommand

Get-CacheHost : ErrorCode<ERRCAdmin032>:SubStatus<ES0001>:Invalid operation encountered on DEV:AppFabricCachingService : Cannot open Service Control Manager on computer 'DEV'. This operation might require other privileges. At line:1 char:14 + get-cachehost <<<<    + CategoryInfo          : InvalidOperation: (:) [Get-CacheHost], DataCache   Exception    + FullyQualifiedErrorId : ERRCAdmin032,Microsoft.ApplicationServer.Caching   .Commands.GetCacheHostCommand

从服务器上的Powershell运行相同的命令不会返回此错误和版本信息返回看起来更正确(1 [1,1] [1,1])

running the same command from Powershell on the server does not return this error and the version information that is returns looks more correct (1[1,1][1,1])

任何帮助将不胜感激!

 

谢谢

 


推荐答案

Jasen,

Jasen,

您好。我将在您描述的场景中尽快尝试这些远程命令,看看我是否遇到了同样的问题。与此同时,有两件事情会浮现在脑海中:

Hello. I will try out these remote commands soon in the scenario you describe to see if I get the same problems. In the meantime, there are two things that come to mind:


  1. 您获得的错误似乎表明远程客户端无法查询状态远程缓存主机上的缓存服务。你能看一下缓存主机上的防火墙吗?如果您使用的是Windows防火墙,则需要确保
    启用了远程服务管理规则。这允许远程机器远程管理缓存服务。如果您使用的是第三方防火墙,则必须启用与此类似的功能。
  2. 在启动和停止服务时,以管理员身份启动PowerShell命令提示符非常重要。我不确定你使用的命令是否需要提升权限,但是值得尝试这个,因为它是一个简单的
    测试。

群集是否以其他方式工作?例如,您是否尝试让远程缓存客户端向群集添加数据?

Is the cluster working in other ways? For example, have you attempted to have remote cache clients add data to the cluster?

让我们从这里开始,我将对此进行一些测试并告诉您我的意思看到。谢谢。

Let's start here, and I'll do some of my own testing on this and let you know what I see. Thanks.

Jason Roth

Jason Roth


这篇关于在远程计算机上使用Powershell时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆