I am trying to get a simple get-wmiobject win32_process from a machine in the domanin, but using a different credential
$credential = New-Object System.Management.Automation.PSCredential (“admsql”, (Get-Content C:\scripts\securestring.txt | convertto-securestring))
Get-WmiObject win32_process -ComputerName ‘10.2.0.56’ -Credential $credential
Also IO have tried with
Get-WmiObject win32_process -ComputerName ‘10.2.0.56’ -Credential $credential -Impersonation Impersonate -Authentication PacketIntegrity
The admsql account in the machine is local adm and all the privilegies are in the dcomcnfg.
I have no idea what is going on. Can you help me guys ?