r/PowerShell • • Dec 31 '19

Helpdesk/Remote Support Powershell Script - Expedite frequent & repetitive helpdesk tasks

https://github.com/Justin-Lund/PS-Remote-Support
122 Upvotes

31 comments sorted by

View all comments

Show parent comments

1

u/uptimefordays Jan 02 '20

Even if you wrote your own and shared it internationally? I know if you pull from github, IM, email, or internet it won’t run unsigned, but if you write your own module or code it will run. I run scripts from either my machine or an automation server which are both set to Remote Signed. I recall PowerShell in a Month of Lunches really downplaying Execution Policy as security and Security not caring too much about it either so long as nobody runs unapproved code from the internet in production.

1

u/mOjO_mOjO Jan 02 '20

Well if everyone is setting their execution policy to remote signed or unrestricted then they are allowing unsigned code locally so once they download it and unblock it then they are allowed to run or import it. If the execution policy mode is restricted then even locally downloaded code must be signed. It's not a concern because most people are setting their execution policy to remote signed or unrestricted. Beyond the block/unblock flag there's no difference between a module or script you downloaded and one you wrote yourself.