title: PowerShell: How to run a powershell script on a remote machine using WMI
body: <p>To be specific: I want to run a powershell script on a remote windows server, but I can connect to this server using WMI only.</p>
  
  <p>I used, for example, <code>Get-Wmiobject</code> to get some data like the running processes, but I failed after a lot of searching, to find a way to run a powershell script block on this remote one. One of the commands that I found is <code>Invoke-Command</code> but this one uses the winRM which is not opened to that remote server. </p>
  
  <p>So, it is NOT allowed to run a powershell script on a remote server using WMI? I didn't find a clear and a direct answer for that.</p>