For some SysAdmins, they will use one or more tools to deploy software to a range of computers on their network. For me, it our monitoring tool that allows are to remote execute scripts to do some sort of task.
Writing in PowerShell is amazing and is Microsoft’s best yet command line tool. However by default for security purposes, script execuition is blocked for untrusted or unsigned scripts.
I won’t go into Signing scripts just now but using the following command will allow you to run PowerShell Scripts
This line still provides a level of protection while still allwoing you to execute custom scripts. Other switches include -bypass and -unrestricted.
So how can we get a large number of these set?
There are a number of ways:
- Group Policy
- Batch Script
This script also creates entries into the Windows Event Viewer to tell you if and when the command has been executed, or if it failed to run.