On Computer1, you need to run the Invoke-Command cmdlet to execute several PowerShell commands on Computer2. What should you do first?

November 20, 2021 by Admin

Your network contains an Active Directory domain named contoso.com. The domain contains two computers named Computer1 and Computer2 that run Windows 10.

On Computer1, you need to run the Invoke-Command cmdlet to execute several PowerShell commands on Computer2.

What should you do first?

  • On Computer2, run the Enable-PSRemoting cmdlet
  • From Active Directory, configure the Trusted for Delegation setting for the computer account of Computer2
  • On Computer1, run the New-PSSession cmdlet
  • On Computer2, add Computer1 to the Remote Management Users group

Leave a Reply