2013-04-17 4 views
7

के बाद रिमोट पावरहेल सत्र नहीं बना सकता है मैं अपने जीवन को बचाने के लिए किसी भी मशीन में रिमोट नहीं कर सकता! मैंने जो भी पाया है, मैंने कोशिश की है। अगर कोई मुझे समस्या निवारण या मार्गदर्शन कर सकता है, तो मैं इसकी सराहना करता हूं क्योंकि यह मेरे डोमेन पर जोड़ने का एक अच्छा टूल होगा।सक्षम-PSRemoting

सेटअप:

  1. क्लाइंट मशीन डोमेन के अंदर
  2. सर्वर मशीन के अंदर या बाहर डोमेन - वर्चुअलाइज्ड और WSUS कंप्यूटरनाम के लिए उपयोग: wsustest
  3. क्लाइंट सर्वर मशीन शारीरिक computername: epizzi-पीसी

चरण:

 
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' पोर्ट करने में सक्षम हैं? – MDMoore313

उत्तर

0

-UseSSL से छुटकारा। मैंने PSRemoting को सक्षम किया और इसका उपयोग करने में समस्याएं थीं। मुझे लगता है कि मैं इसे बाद में देख सकता था लेकिन अभी के लिए इससे कोई फर्क नहीं पड़ता।

+0

मैंने उपयोग करने के लिए प्रयास किया था, अभी भी एक त्रुटि मिली है – user1056661

1

यदि क्लाइंट और सर्वर कंप्यूटर के बीच कोई भरोसा नहीं है, तो आपको सर्वर पक्ष पर मूल प्रमाणीकरण सक्षम करना होगा। WSMAN पर सही गुणों को टॉगल करके ऐसा करें: सर्वर पर ड्राइव करें। आप स्पष्ट रूप से चिकन और अंडे की समस्या की वजह से सहभागी कंसोल पर या दूरस्थ डेस्कटॉप के माध्यम से ऐसा करने के लिए, होगा :) इसके अलावा, इस खेल में भी आ सकता है:

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

+0

अच्छी तरह से मैंने इसे डोमेन में जोड़ा है, सिवाय इसके कि मेरे पास अभी तक एक व्यवस्थापक खाता नहीं है। इसलिए मैं स्थानीय व्यवस्थापक खातों के क्रेडिट के साथ ट्राइंग कर रहा था, मैं आपके सुझावों का प्रयास करूंगा – user1056661

0

मैं एक दूरस्थ सत्र हासिल किया

एक और समाधान जो निश्चित रूप से काम किया wouldve अंतरिक्ष लेकिन मैं हा: दर्ज करें-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 में दोनों क्लाइंट और दूरस्थ सर्वर स्थापित करने के लिए था वेंट ने कोशिश की, https सेट कर रहा था: जो करना मुश्किल है।

thx सभी के लिए, आपकी टिप्पणियों ने निश्चित रूप से समाधान का नेतृत्व किया!

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. winrm s winrm/config/cli ent '@ {TrustedHosts = "myservername।डोमेन "} '

रिमोट मशीन पर

  1. सक्षम-psremoting फोर्स
  2. सेट PSSessionConfiguration -ShowSecurityDescriptorUI -नाम Microsoft.PowerShell फोर्स
+0

क्या "myservername.domain" 'इस मामले में रिमोट मशीन का जिक्र है? –

+0

जेफ ग्रेव्स पोस्ट 'में उल्लिखित सही है ... आपको क्लाइंट सिस्टम पर विश्वसनीय सिस्टम सूची में रिमोट सिस्टम जोड़ने की आवश्यकता होगी। – IsolatedStorage

0

मैं इस के आसपास मिल गया पूरी तरह से योग्य लॉगऑन का उपयोग कर समस्या। "netbiosdomain \ accountname" के बजाय, मैंने fqdn \ accountname का उपयोग किया, जैसा कि Microsoft.com \ myaccount में get-credential प्रॉम्प्ट में है। सभी के लिए काम नहीं कर सकता है, लेकिन यह एक शॉट के लायक है।