My computer is Windows 7 and has Powershell running, I'd like to execute commands to pull back information (specifically netstat) from a bunch of other machines (Windows XP) that do not have Powershell. Is this possible with Powershell or do I need to find another solution?
migrated from security.stackexchange.com Sep 10 '11 at 17:24
|
In order to execute Powershell remotely you need to have Powershell installed on the remote machine. What you want is to use something like PsExec: http://technet.microsoft.com/en-us/sysinternals/bb897553. |
|||
|
|
PowerShell remoting is indeed out out the picture. But alot of information you could still gather via WMI. Another technique I've used in the past is to remotely schedule a task on other computer to run a script "locally" to get the information you want. This works great for things like netstat. |
|||
|
|
|
You can do this with Powershell with the target machines not running Powershell. Use |
|||
|
|
|
You can do this any number of ways, but the amount of information you can get will vary widely by the technique you use. I'd recommend taking a look @ Get-WmiObject -computerName. This will use WMI's native remoting to communicate to XP and Windows 2000 (or any newer OS). You will not be able to do everything you can do with full PowerShell, but you will be able to do everything you can with WMI on Windows XP, and you'll be able to remotely manage this from PowerShell on a single box. The EventLog is also open remotely in a similar mechanism. Use Get-EventLog -ComputerName to get remote event log entries from XP or 2000. Hope this Helps |
|||
|
|
|
You can use the Get-WMIObject cmdlet with the -ComputerName parameter, you will need admin rights on the remote machine:
Use the -Credential if you are using a different account on your local computer that doesn't have rights to the remote machine, you will need credentials of an account that has admin access on the remote machine. |
|||
|
|
