The Account with which I am running the Powershell Script in Server A, is the admin in Both I dont want to send the Username and Password ()īut here issue is we need to pass the credential to Server B, to talk to Server C's WMI hive. Invoke-Command -Computername 'Server B' -Credential $Credential -Authentication Credssp -ScriptBlock Īnd as a Prereq, I enabled CredentialsDelegation at Server A as per this link. The Approch I took is, I used Powershell remoting at Server A Is there any straight forward way altogether? Ex: I need to run a Powershell Script from Server A, to check the WMI Connectivity between 2 remote machine Serverī and Server C.
I need to check WMI Connectivity between 2 Remote Server using Powershell.