Write code that when executed in PowerShell, will satisfy the following requirements: Create a new PowerShell session to
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write code that when executed in PowerShell, will satisfy the following requirements: Create a new PowerShell session to
Write code that when executed in PowerShell, will satisfy thefollowing requirements: Create a new PowerShell session to a remotecomputer and store it as a variable so you can enter the sessionlater. Use the variable name $connection. Use the computer nameparameter in combination with your computer's hostname to simulateconnecting to a remote computer. Use only one line to solve theproblem.