I have a windows 10 task that Im trying to set to run as a domain user that is also in the local admin group on the machine im running it. The action is running a powershell script. I know the script works fine as when I run the task under my account, it works fine. When running it as the domain account it seems to do nothing. Where can I check for error messages? One action I set before calling the script is also using powershell and sets the execution policy to unrestricted. Shouldnt being in the local admin group be sufficient permissions for this?
Here is the powershell script
Echo "test" Read-Host -Prompt "press any key to exit"