When you try PowerShell Remoting, you may run into connection errors just because your machine name was not fully qualified. Kerberos authentication may or may not needs this, depending on your DNS configuration.
So maybe you get errors when you try and connect like this:- Enter-PSSession -ComputerName storage1
复制代码 When that happens, try and ask DNS for the fully qualified name:- [System.Net.DNS]::GetHostByName('storage1').HostName
复制代码 Then, try this name instead. If remoting is enabled and set up correctly, you should now be able to connect.
http://powershell.com/cs/blogs/tips/archive/2014/02/13/using-fully-qualified-names-in-remoting.aspx |