Powershell v2 远程处理和委派

发布于 2024-08-10 09:55:43 字数 360 浏览 3 评论 0原文

我在两台机器上安装了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

看透却不说透 2024-08-17 09:55:43

我在

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.

糖粟与秋泊 2024-08-17 09:55:43

造成这种情况的原因可能有很多。如果使用 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 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文