gpedit.msc /gpcomputer: Computername
The account you’re logged into needs to have admin rights over that machine. If it don’t, then use your domainadmin account. So you’ll want to run a cmd as your domain admin. To make it easier create a batch file with
runas /user:domainname\admin C:\WINDOWS\system32\cmd.exe
Then in that cmd window type
gpedit.msc /gpcomputer: Computername
For example
gpedit.msc /gpcomputer: a4474
While I’m on DOMAIN1 still, to do it to a machine on DOMAIN2, try using the DOMAIN2\domain2admin account as my domain admin from DOMAIN1 doesn’t work.