Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell showing "how do you want to open this file"

$
0
0

When I use PStools or one of my own .ps1 scripts in powershell I get the prompt "how do you want to open this file". I want the file to run in powershell like it always did before. This happened directly after the Windows 10 Anniversary update. 

I use these scripts a lot and this popup is making the scripts not run. It appears to happen when I input some data. So if I type "psexec \\dc0 systeminfo" I get the popup and also on a script that asks for a PC name as input and then goes and starts a backup on that PC but when I put the name in I get that prompt and cannot move forward. 

I have tried telling it to open with powershell again but that just opens up another instance of powershell and the popup shows up again. 

Thanks for any help


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images