I intend to use WMIC to reset the trust of a machine that is remote, and off the network. All of the following variations result in an "access denied":
The following works fine:
net use \\patterson-e10 /user:patterson-e10\wks.admin xxx
All the following fails:
wmic /node:"patterson-e10" /user:"patterson-e10\wks.admin" /password:xxx process call create "cmd /c dir"
wmic /node:"patterson-e10" /user:".\wks.admin" /password:xxx process call create "cmd /c dir"
wmic /node:"patterson-e10" /user:"wks.admin" /password:xxx process call create "cmd /c dir"
wmic /node:"patterson-e10" /user:wks.admin /password:xxx process call create "cmd /c dir"
I'm about to attempt Powershell (PS) remoting, but I"m not sure how it works with trusts.
Update
I have also tried PSExec and SC (where I would "start a service") and had similar authentication failures.
The only avenue that seems to partially work is where I launch an RDP session, and map a drive to my source computer, where I then run the command. I looked into scripting RDP and it doesn't appear I can do much outside of creating just the connection file.
Update 2
The machine doesn't have a console, so the following solution of adding the non-domain member to TrustedHosts can't work, I jut hope there is another solution/workaround.