Page 1 of 1

Problem Write code that when executed in PowerShell, will satisfy the following requirements: Use the invoke command cmd

Posted: Thu Jul 14, 2022 2:17 pm
by answerhappygod
Problem Write code that when executed in PowerShell, willsatisfy the following requirements:
Use the invoke command cmdlet in combination with the scriptblock parameter.
List all of the processes on a remote computer.
Use the computer name parameter and 'PC1' as the computername
Use only one line to solve the problem.