Question
Remoting entre domaine et workgroup
- Fabrice Delvin
- Auteur du sujet
- Hors Ligne
- Nouveau membre
-
- Messages : 1
- Remerciements reçus 0
Je suis débutant en Powershell. J'ai un problème de connexion remote.
Entre deux machines membre du domaine, pas de problème.
Situation:
- un server 2008R2 dans le domaine
- une station xp sp3 dans un workgroup, connectée via vpn.
Modification faite sur la station:
-Locale Policies->Security options->Network acces: Sharing and security model for local account-> Classic-localusers authenticate as themselves
- new-itemproperty -name LocalAccountTokenFilterPolicy -path
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PoliciesSystem -propertyType DWord -value 1
1er essai:
PS C:\Users\Administrator> Enter-PSSession -ComputerName XXXXX
Enter-PSSession : Connecting to remote server failed with the following error message : WinRM cannot process the reques
t. The following error occured while using Kerberos authentication: The network path was not found.
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 us
e 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:16
+ Enter-PSSession <<<< -ComputerName XXXXX
+ CategoryInfo : InvalidArgument: (XXXXX: String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
2ème essai:
Enter-PSSession -ComputerName XXXXX -Credential administrator
Enter-PSSession : Connecting to remote server failed with the following error message : Logon failure: unknown user nam
e or bad password. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:16
+ Enter-PSSession <<<< -ComputerName XXXXX -Credential administrator
+ CategoryInfo : InvalidArgument: (XXXXX: String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
Le problème vient de l'authentification. Quelqu'un aurait-il une solution?
Merci pour votre aide!<br><br>Message édité par: pouletch, à: 1/10/10 16:12
Connexion ou Créer un compte pour participer à la conversation.
- EROS
- Hors Ligne
- Nouveau membre
-
- Messages : 15
- Remerciements reçus 0
comme c'est indiqué:
==>WinRM cannot process the reques
The client and remote computers are in different domains and there is no trust between the two domains.
<=>
en gros, il faut que tu actives les commandes distantes sur ta station (via la commande \"winrm quickconfig\")
le pb est que ce ne sera pas possible sur un poste client qui n'est pas intégré à un domaine :/
je ne pense pas que tu puisses faire de remote commande entre une machine cliente en WorkGroup et un poste (quelque soit le type) intégré dans un domaine
voilà
Connexion ou Créer un compte pour participer à la conversation.
- Jacques Barathon
- Hors Ligne
- Administrateur
-
- Messages : 576
- Remerciements reçus 0
Dans mon cas j'ai un serveur en 2008 contrôleur de son domaine, et j'ai deux postes W7 et XP dans un workgroup. Les trois sont configurés pour le Remoting et ça marche dans tous les sens.
Je n'ai pas ma config sous la main, mais en gros dans WinRM il faut ajouter les noms d'ordinateurs à TrustedHosts. De mémoire, les manips à faire sont indiquées dans l'aide en ligne de PowerShell :
PS> help about_remote_troubleshooting
Janel
Connexion ou Créer un compte pour participer à la conversation.
- Vous êtes ici :
-
Accueil
-
forum
-
PowerShell
-
Entraide pour les débutants
- Remoting entre domaine et workgroup