powershell:如果不指定 FQDN,我将无法打开远程会话 [英] powershell : i cant open remote session without specify the FQDN anymore

查看:79
本文介绍了powershell:如果不指定 FQDN,我将无法打开远程会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,我能够使用远程服务器/工作站的短名称创建远程会话.

Some days ago, i was able do create a remote session using short name of the remote server/workstation.

这不再起作用错误是:

+ CategoryInfo : InvalidArgument : (computername1:String) [Enter-PSSession], PSRemotingTransportExcepti+ FullQualifiedErrorId : CreateRemoteRunspaceFailed

但是当我使用完整的域名时,它正在工作:nsn computername1.domain.com

but when i use the complete domain name it is working : nsn computername1.domain.com

DNS 解析正确,我还能检查什么来解决这个问题?

Dns resolution is correct, what else can i check to troubleshoot this problem ?

推荐答案

我终于找到了!:)

我不得不修改默认的 pssession 选项并将代理设置为NoProxyServer"而不是默认值none"

I had to modify the default pssession option and set the proxy to 'NoProxyServer' instead of the default value 'none'

所以我在我的个人资料中添加了这一行:

so I added this line in my profile :

$PSSessionOption = New-PSSessionOption -ProxyAccessType NoProxyServer  

来自技术网:

未指定代理访问类型.这意味着代理信息,例如访问类型、身份验证机制和凭据,不会传递到 Web 管理服务 (WSMan)协议服务.此字段是在 Windows PowerShell 2.0 中引入的.

None The proxy access type is not specified. This means that proxy information, such as the access type, authentication mechanism, and credential, is not passed to the Web Services for Management (WSMan) protocol service. This field is introduced in Windows PowerShell 2.0.

NoProxyServer 配置代理设置时不使用代理服务器.此机制在本地解析所有主机名.这个字段是在 Windows PowerShell 2.0 中引入.

NoProxyServer No proxy server is used when configuring proxy settings. This mechanism resolves all the host names locally. This field is introduced in Windows PowerShell 2.0.

这篇关于powershell:如果不指定 FQDN,我将无法打开远程会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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