Powershell v2 远程处理和委派
我在两台机器上安装了 Powershell V2,并在两台机器上运行 Enable-PsRemoting。两台机器都是Win 2003 R2,并且都加入了同一个活动目录域,我可以成功地远程运行命令。所以PS远程处理是在本地服务器和远程服务器之间工作的。
但是,当我尝试访问第三台服务器(dir \someOtherServer\builds)(也是 Win 2003 R2 并加入到同一活动目录)上的共享时,我收到错误: Get-ChildItem:找不到路径“\someOtherServer\builds”,因为它不存在。
那么如何才能让这个“跳跃”发挥作用呢?是远程计算机的委派设置(在活动目录中)吗?创建 PSSession 时是否可以进行任何设置以使跃点正常工作?
I have installed Powershell V2 on 2 machines and run Enable-PsRemoting on both of them. Both machines are Win 2003 R2 and are joined to the same active directory domain and I can successfully run commands remotely. So PS remoting is working between the local server and remote server.
But when I try to access a share on a 3rd server (dir \someOtherServer\builds), which is also Win 2003 R2 and joined to the same active directory, I get the error:
Get-ChildItem : Cannot find path '\someOtherServer\builds' because it does not exist.
So what does it take to get this "hop" to work? Is it the delegation settings (in the active directory) to the remote machine? Are there any settings that can be done when creating a PSSession that will make the hop to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在
I addressed this issue for Workgroups in a blog post. I think the info should apply to domains but I haven't tested in a domain. Anyway, see if it helps. FYI, the solution involves Enable-WSManCredSSP and the Authentication parameter to Enter-PSSession.
造成这种情况的原因可能有很多。如果使用 kerberos 身份验证,请检查所有服务器上的时间。一定是同步的。可能是DNS解析问题。需要更详细的问题描述/
抱歉英语不好:)。如果有什么不对的地方请指正:)
It's can be many causes of that. If kerberos auth, check the time on all servers. It must be sync. It may be DNS resolution problem. Need more detailed problem description/
Sorry fo bad english :). If something wrong, please correct me :)