D
D
Dima_E2021-05-07 19:59:09
PowerShell
Dima_E, 2021-05-07 19:59:09

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

1 answer(s)
A
azarij, 2021-05-07
@azarij

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 question

Ask a Question

731 491 924 answers to any question