Source_Writer Posted July 18, 2016 Share Posted July 18, 2016 Hello I have this script below. I didn't manage to hide the powershell box. If I add -w hidden the script doesn't work powershell -ExecutionPolicy UnRestricted (new-object System.Net.WebClient).DownloadFile('http://d.7-zip.org/a/7z1601.exe','%TEMP%\7z1601.exe');&'%TEMP%\7z1601.exe' Have you some ideas ? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Source_Writer Posted July 19, 2016 Author Share Posted July 19, 2016 I found some help and get this code. It works perfectly : powershell -w Hidden -ExecutionPolicy Bypass -Command "$wc=new-object System.Net.WebClient;$file=Join-Path $env:TEMP 7z1601.exe;$wc.DownloadFile('http://d.7-zip.org/a/7z1601.exe',$file);& $file" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.