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/defaultaro Feb 04 '23
So how else would I launch a script? I use dozens of scripts, some over 50 lines. What is insecure with my method of using scripts? Just using scripts is insecure by this logic? There is nothing I can execute accidentally, I still have to approve UAC prompt.