Solved

Powershell script to connect to a list of hosts

Posted on 2011-02-24
7
819 Views
Last Modified: 2012-05-11
Experts,

     Does Powershell have the capability to connect to hosts with different types of OS's, VM's, RH thin clients, and ESX(vmware)? We have a LAN set up with Windows AD in a domain, and a few stand alone (linux)machines that are not on the domain

We're looking for one script that will run on PDC, and remotely set all passwords on the PDC/Thin Clients/ VSMs, even though they are not part of the domain.

Is this possible with Powershell and connecting to host via open ports? If so, could you provide examples?
Thanks, Missymadi
0
Comment
Question by:missymadi
7 Comments
 
LVL 42

Assisted Solution

by:paulsolov
paulsolov earned 166 total points
ID: 34976471
Take a look at PowerGUI.org

PowerGui takes scripts and let's you run them via GUI.  They have pretty good modules for VMWare, Active Directory, etc..

I'm not sure if it will do what you are looking for but is worth a look.

0
 

Author Comment

by:missymadi
ID: 34980048
It looks like a great add on tool for Powershell. But your right, I don't see where it could help with connection to other servers on the network that are on and off the domain.
0
 
LVL 70

Accepted Solution

by:
Chris Dent earned 167 total points
ID: 35025733

Not easily, ports are all well and good, but you have to know how to talk to the port.

For most of those you mention SSH would be ideal. There's no native support for that in PS, but there are tools you can buy to add it:

http://www.nsoftware.com/powershell/

Or you could just wrap around something like PuTTY:

http://www.chiark.greenend.org.uk/~sgtatham/putty/

Chris
0
 

Author Comment

by:missymadi
ID: 35058490
Yes, I did some research and found that Putty would work best in this task. Could you provide an example of a connection between Wink3 serv and a RHEL box using Putty? In the syntax of Powershell?
0
 
LVL 26

Assisted Solution

by:pony10us
pony10us earned 167 total points
ID: 35070405
Another alternative is to use CYGWIN instead of Putty.  Here is a link showing how to do it:  http://hivearchive.com/2006/07/03/using-powershell-through-ssh/#
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
A brief introduction to what I consider to be the best editor for PowerShell.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question