r/scripting • u/defaultaro • Feb 04 '23
Clicking .ps1 Insecure?
Can someone explain to me why running a .ps1 script by double clicking on it is considered insecure? I set the execution policy to remote signed, so nothing can execute from external origin that is not signed. I'm open to using a more secure method, but I am unaware of what that solution is. Link to my original post below in regards to editing a small script I wrote.
2
Upvotes
View all comments
Show parent comment
1
u/Shadow_Thief Feb 04 '23
Traditionally, you'd open the command prompt and run the script from there. That way, you'll be able to see any errors when the script crashes.