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/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.