J'essaie de me connecter à distance à une machine Windows à partir de mon poste de travail Linux.Connexion Powershell d'un client Linux à une télécommande Windows
J'ai installé powershell sur mon poste de travail Arch Linux et j'essaie actuellement de me connecter à l'hôte.
Sur l'hôte:
Enable-PSRemoting
laisse ensuite tous les hôtes avec Set-Item wsman:\localhost\client\trustedhosts *
Contrôle tout avec:
PS C:\windows\system32> ls WSMan:\localhost\shell
WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Shell
Type Name SourceOfValue Value
---- ---- ------------- -----
System.String AllowRemoteShellAccess true
System.String IdleTimeout 7200000
System.String MaxConcurrentUsers 2147483647
System.String MaxShellRunTime 2147483647
System.String MaxProcessesPerShell 2147483647
System.String MaxMemoryPerShellMB 2147483647
System.String MaxShellsPerUser 2147483647
Maintenant, lorsque je tente de se connecter depuis la station de travail Linux:
PS /home/user/tmp> Enter-PSSession -ComputerName "myuser" -Credential DOMAIN\myuser
Windows PowerShell credential request
Enter your credentials.
Password for user DOMAIN\myuser: *****************
Enter-PSSession : MI_RESULT_ACCESS_DENIED
At line:1 char:1
+ Enter-PSSession -ComputerName "myuser" -Credential DOMAIN\ajpalhare ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (myuser:String) [Enter-PSSession
], PSInvalidOperationException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
Je n'ai rien dans les journaux d'événements Windows winrm.
Toute suggestion bienvenue,
Il est mentionné comme un problème connu que ce n'est pas pris en charge: https://github.com/PowerShell/PowerShell/blob/master/docs/KNOWNISSUES.md#remoting-support – TessellatingHeckler