Solved

Powershell script to connect to a list of hosts

Posted on 2011-02-24
7
817 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now