Answer the question
In order to leave comments, you need to log in
Remote powershell not executing Start-Process cmdlet why?
Command not executed:
Invoke-Command -ComputerName 192.168.**.** -ScriptBlock {start-process -filepath 'C:\Users\test\Desktop\rr.txt'} -Credential $cred
But executed directly on the remote machine:
start-process -filepath 'C:\Users\test\Desktop\rr.txt'
Returns no errors, just fails to open the specified application. Why ?
Answer the question
In order to leave comments, you need to log in
this, as far as I understand, can be achieved either through psexec or on a remote machine, put the launch of a notepad with a file into the task scheduler with the code from the turn, launch a freshly created task and delete it.
Otherwise, Windows will not give any interactivity, even if it starts Notepad.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question