In this second example, a PowerShell Remote Session is established with Enter-PSSession.
Beide Computer befinden sich in der gleichen Domäne. Enter-PSSession -Computername öffnet eine PowerShell Remote-Sitzung.
This allows you to create scripts that run on one or many remote computers and to take control of a remote PowerShell session to execute commands directly on that computer.
So können Sie Skripts erstellen, die auf einem oder mehreren Remotecomputern ausgeführt werden, und die Kontrolle über eine PowerShell-Remotesitzung erhalten, um Befehle direkt auf diesem Computer auszuführen.
Each time you run the script in Step 1, a new remote PowerShell session is created.
Jedes Mal, wenn Sie das Skript in Schritt 1 ausführen, wird eine neue Remote-PowerShell-Sitzung erstellt.
Important: Be sure to disconnect the remote PowerShell session when you're done.
Stellen Sie sicher, dass die Remote-PowerShell-Sitzung getrennt wird, wenn Sie alle Aufgaben ausgeführt haben.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.