I need a way to run some scripts in a child domain. I launch scripts using a batch file like below.
Powershell.exe -windowstyle hidden -executionpolicy bypass -File .\script.ps1
I can shift + right click the batch file and use creds from 2nd domain but get an error “Logon failure: the user has not been granted the requested logon type at this computer”
How can I run scripts in a secondary domain?