Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Powershell script to connect to a list of hosts

Posted on 2011-02-24
7
Medium Priority
?
826 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
5 Comments
 
LVL 42

Assisted Solution

by:Paul Solovyovsky
Paul Solovyovsky earned 664 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 71

Accepted Solution

by:
Chris Dent earned 668 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 668 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

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

Question has a verified solution.

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

If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

824 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