How do you execute a exe file in PowerShell that is saved to a thumb drive?


need run .exe file saved on thumb drive in location e:\copypst\copypst.exe

have tried use few different methods cant seem work right.

if runs in command window e:\copypst\copypst.exe should run in powershell no problem, if doesnt try so

& e:\copypst\copypst.exe


if find post has answered question, please mark answer. if find post helpful in anyway, please click vote helpful.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...