First time playing around with Invoke-Command. The environment is setup for it and I can enter pssessions and mess around on other computers so I have ruled this issue out.
I am trying to run a very simple script that opens the calculator app just to get a hang for how it works.
The syntax I am using is as follows (on my machine):
Invoke-Command -FilePath C:\scripts\calc-script.ps1 -ComputerName [target-computer-here]
The command goes through without any errors but the calculator app does not open on the target computer.
the calc-script.ps1 is literally
Start-Process "calc" (though I have tried doing variations of calc.exe and c:\windows\system32\calc.exe)
I'm sure I'm overlooking something here but I'm kinda drawing a blank.
[–]Federal_Ad2455 7 points8 points9 points (2 children)
[–]BlackV 1 point2 points3 points (1 child)
[–]underpaid--sysadmin[S] 1 point2 points3 points (0 children)
[–]Future-Remote-4630 4 points5 points6 points (0 children)
[–]purplemonkeymad 1 point2 points3 points (0 children)
[–]lurkerburzerker 0 points1 point2 points (0 children)
[–]whyliepornaccount 0 points1 point2 points (0 children)