When developing scripts for GFI Max, the biggest problem I find is making sure that it will work properly when its executed under the local system account as that’s the default user account the service runs under.
I was using the remote background to remote into my own machine but this was painful and didn’t let me use powershell.
There had to be a better way!
So first off, go download the PSTools and extract it.
I create a batch file with the following contents.
psexec -i -s Powershell.exe
Save it, right click and run as administrator.
You should have a powershell running as the local system account.