You administer 100 windows 8 laptops, all of which have PowerShell Remoting enabled.
You run the following command on a computer named Computer1:
Invoke-Command -filepath \\Computer2\Share\MyScript.ps1 – computername computer2
MyScript1.ps1 fails to execute. You verify that youare able to access it from the network
You need to be able to execute MyScript1.ps1 on computer1.
What should you do?
A.
Copy MyScript1.ps1 to a local drive on computer1 and run the Invoke-command cmdlet on computer1
B.
Run the Enter-PSSession cmdlet on Computer1.
C.
Run the Set-ExecutionPolicy cmdlet on Computer2
D.
Run the Set-ExecutionPolicy cmdlet on Computer1
The correct answer is D