2013-04-17 19 views
7

私の人生を保存するためにどのマシンにもリモートできません!私は見つけることができるすべてを試しました。誰かが私のトラブルシューティングやガイドをすることができれば、これは私のドメインに追加するための素晴らしいツールになるので、私はそれを感謝します。Enable-PSRemoting後にリモートpowershellセッションを作成できません

SETUP:

  1. クライアント・マシンのドメインの内部または外部ドメイン内の
  2. サーバーマシン - 仮想化およびWSUSコンピューター名に利用:wsustest
  3. クライアントサーバマシンphysical-コンピュータ名:epizzi-PC

手順:

 
enable-pssremoting done! on all machines 
trustedhosts configured with * or client machine added 
Firewalls with public profile off just in case 

 
Enter-PSSession -ComputerName wsustest -Credential wsustest\administrator 
Enter-PSSession -ComputerName epizzi-pc -Credential epizzi-pc\administrador 
Enter-PSSession : Connecting to remote server epizzi-pc failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x80090311 
occurred while using Kerberos authentication: There are currently no logon servers available to service the logon request. 
Possible causes are: 
    -The user name or password specified are invalid. 
    -Kerberos is used when no authentication method and no user name are specified. 
    -Kerberos accepts domain user names, but not local user names. 
    -The Service Principal Name (SPN) for the remote computer name and port does not exist. 
    -The client and remote computers are in different domains and there is no trust between the two domains. 
After checking for the above issues, try the following: 
    -Check the Event Viewer for events related to authentication. 
    -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport. 
Note that computers in the TrustedHosts list might not be authenticated. 
    -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic. 
At line:1 char:1 
+ Enter-PSSession -ComputerName epizzi-pc -Credential epizzi-pc\administrador 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : InvalidArgument: (epizzi-pc:String) [Enter-PSSession], PSRemotingTransportException 
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed 

 
Enter-PSSession -ComputerName wsustest -UseSSL -Credential wsustest\administrator 

*Enter-PSSession : Connecting to remote server wsustest failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is 
valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM 
firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic. 
At line:1 char:1 
+ Enter-PSSession -ComputerName wsustest -UseSSL -Credential wsustest\administrato ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : InvalidArgument: (wsustest:String) [Enter-PSSession], PSRemotingTransportException 
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed* 
ERRORs: 
+0

クライアントでポート「5985」にtelnet接続できますか? – MDMoore313

答えて

0

-UseSSLを取り除きます。私はPSRemotingを有効にし、その使用に問題がありました。私はそれを後で見ることができたと思うが、今のところそれは問題ではない。

+0

私はwihtout useSSLを試してみましたが、まだエラーがあります – user1056661

1

クライアントコンピュータとサーバーコンピュータの間に信頼関係がない場合は、サーバー側で基本認証を有効にする必要があります。これを行うには、サーバー上のWSMAN:ドライブの正しいプロパティを切り替えます。あなたは明らかによる鶏と卵の問題を、対話的コンソールまたはリモートデスクトップ経由でこれを行う必要があるでしょう:)また、これはあまりにも遊びに来るかもしれない:私はリモートセッションを達成している

http://www.nivot.org/blog/post/2009/10/30/PowerShell20EnablingRemotingWithVirtualXPModeOnWindows7

+0

私はドメインにそれを追加しましたが、私は管理者アカウントを持っていません。だから私はローカル管理者のアカウントの信用を持っていたので、私はあなたの提案を試してみる – user1056661

0

入力-PSSessionはコマンドを使用して、これらの正確なパラメータ

$creds = get-credential (the -credential parameter in enter-pssession does not work properly, thus u must   previously enter the object at another variable) 
Enter-pssession -computername wsustest -authentication Default -credentials $creds 

に従わなければならなかった私はまた、信頼できるホストのWSMANで、クライアントとリモートサーバーの両方を設定する必要がありました:スペース

確実に働いたwouldve別の解決策が、私ヘクタール通気孔を開けてみると、httpsを設定していた:これはやるのが難しい。

すべてに、あなたのコメントは確かに解決策につながった!

2

これは私がそれを行う方法です。私はこれを私のスクリプトに使っています。私は、サーバーへのリモート処理時に同じ問題を受けて、このブログの記事は非常に役立つ発見された

# This is only done once 
Read-Host -AsSecureString | ConvertFrom-SecureString | Out-File 
c:\Windows\temp\securepass.txt 

# Setup credentials 
$SecureString = Get-Content c:\Windows\temp\securepass.txt | ConvertTo-SecureString 
$mycredentials = New-Object -TypeName System.Management.Automation.PSCredential 
    -ArgumentList "yourDomain\userID",$SecureString 

# Open remote session: 
$MyRSession = New-PSSession -ComputerName Computer1 -Credential $mycredentials 
    -Authentication default 

# Use remote session: 
Enter-PSSession $MyRSession 
2

- http://jeffgraves.me/2013/10/14/powershell-remoting/

私は次のようでした私の具体的なケースの場合:ローカルマシン上

  1. winrm quickconfig(既に構成されていますが)
  2. winrms winrm/config/cli ent '@ {TrustedHosts = "myservername。リモートマシン上のドメイン "}」

  1. 有効-psremoting -force
  2. のSet-PSSessionConfigurationコマンド-ShowSecurityDescriptorUI -NameのMicrosoft.PowerShell -Force
+0

'' myservername.domain "'はこの場合リモートマシンを参照していますか? –

+0

これは、Jeff Gravesの「投稿」に記載されているとおりです...クライアントシステムのTrustedHostsリストにリモートシステムを追加する必要があります。 – IsolatedStorage

0

私はこの問題を回避ました"netbiosdomain \ accountname"の代わりに、私はfqdn \ accountnameをMicrosoft.com \ myaccountのようにget-credentialプロンプトで使用しました。

関連する問題