Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>WMI can be a pain to configure, especially if you're on a secure network. Here's <a href="http://msdn.microsoft.com/en-us/library/aa389290%28v=vs.85%29.aspx" rel="nofollow">some guidance</a> if you want to go down that route.</p> <p>You didn't say what OS's you have at each end. If you're on 2008 R2 or later, you already have PowerShell 2.0. If you can install 3.0 or 4.0, you'll get a better experience (easier to <a href="http://technet.microsoft.com/en-us/library/hh849694.aspx" rel="nofollow">set up remoting</a>, auto-loading of modules, for example). As long as you're on PowerShell 2.0, you should take a look at PowerShell remoting. Fire up powershell and run:</p> <pre><code>help about_remoting </code></pre> <p>From there, you'll be lead to:</p> <ul> <li>about_PSSessions </li> <li>about_Remote_Disconnected_Sessions</li> <li>about_Remote_Requirements</li> <li>about_Remote_FAQ</li> <li>about_Remote_TroubleShooting</li> <li>about_Remote_Variables</li> </ul> <p>There's quite a bit of reading to do and I can't possibly do it justice here but to whet your appetite, once remoting is configured, you can issue this on the source machine:</p> <pre><code>Invoke-Command -ComputerName server1 -ScriptBlock { Get-ChildItem C:\ } </code></pre> <p>to get the contents of server1's C:. You're not limited to running PowerShell commands. For example,</p> <pre><code>Invoke-Command -ComputerName server1 -ScriptBlock { ipconfig /all } </code></pre> <p>will bring back the detailed ipconfig from server1. You can establish sessions and run multiple commands using variables (local and remote). You can, if you want, also use WMI but using the new CIM cmdlets which run over WinRM - the same technology used by PowerShell remoting - rather than evil DCOM. Try <code>Get-Command *cim*</code> to get a list and then use 'help' to get more info. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload