Kullanarak uzak bir pencereye bağlanmaya çalışıyorum Enter-PSSession
kullanma PowerShell
. Bir Linux kullanıcısı olarak, Windows'un iç çalışmasına pek aşina değilim.
Sadece komutu kullanırken aşağıdaki çıktıyı alıyorum (Almanca olarak ...):
PS C:\Users\dietz\Documents\WindowsPowerShell> Enter-PSSession -ComputerName 172.16.4.154
Enter-PSSession : Beim Verbinden mit dem Remoteserver ist folgender Fehler aufgetreten: Die Anforderung kann vom WinRM-
Client nicht verarbeitet werden. Unter folgenden Bedingungen kann eine Standardauthentifizierung mit einer IP-Adresse v
erwendet werden: Der Transport ist HTTPS, oder das Ziel ist in der TrustedHosts-Liste aufgeführt, und es werden explizi
te Anmeldeinformationen bereitgestellt. Verwenden Sie "winrm.cmd", um TrustedHosts zu konfigurieren. Beachten Sie, dass
Computer in der TrustedHosts-Liste möglicherweise nicht authentifiziert sind. Führen Sie folgenden Befehl aus, um weit
ere Informationen zum Konfigurieren von TrustedHosts anzuzeigen: winrm help config. Weitere Informationen finden Sie im
Hilfethema "about_Remote_Troubleshooting".
Bei Zeile:1 Zeichen:16
+ Enter-PSSession <<<< -ComputerName 172.16.4.154
+ CategoryInfo : InvalidArgument: (172.16.4.154:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
Uzak bilgisayarda aşağıdaki komutu kullanmaya çalıştım:
C:\Windows\system32>winrm quickconfig
WinRM is not set up to receive requests on this machine.
The following changes must be made:
Set the WinRM service type to delayed auto start.
Start the WinRM service.
Configure LocalAccountTokenFilterPolicy to grant administrative rights remotely
to local users.
Make these changes [y/n]? y
WinRM has been updated to receive requests.
WinRM service type changed successfully.
WinRM service started.
Configured LocalAccountTokenFilterPolicy to grant administrative rights remotely
to local users.
WSManFault
Message
ProviderFault
WSManFault
Message = WinRM firewall exception will not work since one of th
e network connection types on this machine is set to Public. Change the network
connection type to either Domain or Private and try again.
Error number: -2144108183 0x80338169
WinRM firewall exception will not work since one of the network connection types
on this machine is set to Public. Change the network connection type to either
Domain or Private and try again.
ve bu komut
C:\Windows\system32>winrm quickconfig -transport:https
WinRM already is set up to receive requests on this machine.
WSManFault
Message
ProviderFault
WSManFault
Message = Cannot create a WinRM listener on HTTPS because this m
achine does not have an appropriate certificate. To be used for SSL, a certifica
te must have a CN matching the hostname, be appropriate for Server Authenticatio
n, and not be expired, revoked, or self-signed.
Error number: -2144108267 0x80338115
Cannot create a WinRM listener on HTTPS because this machine does not have an ap
propriate certificate. To be used for SSL, a certificate must have a CN matching
the hostname, be appropriate for Server Authentication, and not be expired, rev
oked, or self-signed.
Herhangi bir bağlantı türünü değiştirmek istemiyorum (çünkü bunun nasıl yapılacağı hakkında hiçbir fikrim yok ve diğer bağlantıları karmaşıklaştırabilir) ve sertifikalarla hiçbir şeyden kaçınmak istiyorum. Sadece uzaktaki bir bilgisayarda hizmetleri durdurmak ve başlatmak için bir komut yürütebilmek istiyorum. Bunu başarmanın en kolay yolu nedir?
Not; Bağlantının güvenliği veya şifrelenmesi gerekli değildir.
WinRM firewall exception will not work since one of the network connection types on this machine is set to Public