How can I run Remote Commands on Windows Servers?

Both SSH and ITM Agent communications can be used for running RunBox Tools on distributed Windows Servers in the same fashion as described for UNIX and Linux servers. SSH is not shipped natively with Microsoft Windows but is available from a variety of sources. Cygwin OpenSSH is used in the example below.

 runbox-windowstools-figure01 small

 

To install the Cygwin OpenSSH Daemon on Windows download the setup executable from here. This executable enables the individual packages to be dynamically downloaded from the internet for installation. Select and install “OpenSSH” from the “net” section of the modules.

Post installation it is necessary to configure the SSH daemon. This is completed from a Cygwin terminal run as the Administrator user (right click on the "Cygwin terminal" icon and select “Run as administrator”). Run the following commands to configure and start the OpenSSH daemon:

ssh-host-config -y
cygrunsrv –start sshd

To enable SSH authentication for a specific Windows user, details of that user must be added to the “passwd” file. From the Cygwin terminal run the commands:

mkpasswd –l –u user_name >> /etc/passwd

At that point it should be possible to connect to the server using a suitable SSH client, for example putty.

runbox-windowstools-figure02

RunBox Credentials

To execute a RunBox tool via SSH requires credentials for authentication purposes. OpenSSH permits Public Key authentication in the same manner as UNIX and Linux versions of the utility. Add the public key generated by RunBox to the file “<UserHomePath>/.ssh/authorization_keys” on the target server(s).

runbox-windowstools-figure03

RunBox tools for Windows

In addition to native Windows commands it is possible to run scripts or command files from RunBox tools. In the example below the RunBox interpreter “VBScript” has been selected. This is a custom RunBox interpreter defined by the administrator and enables a VBScript to be called directly from a RunBox Tool.

runbox-windowstools-figure04 small 

All RunBox Tools can be executed against groups of multiple servers. RunBox will stagger the execution, based on configured limits, displaying the progress interactively. The image below demonstrates the execution of a VBScript on multiple Windows Servers.

Note the pie chart in the top right hand corner to indicate the overall progress and success of the batch execution, the summary information for the servers that have already returned results and the green triangles to indicate the Tool is currently being executed on certain servers.

runbox-windowstools-figure05 small

Twitter Feed

OrbData RT @ZDNet: How IBM plans to be the "undisputed leader" of the next cloud phase https://t.co/gQ4UwfArxu @stephcondoncbs https://t.co/c1GNAv1
OrbData 10 reasons why you should be using Predictive Insights from #IBM https://t.co/7OnIRagKDc

Address

Address:
100 Longwater Avenue, Green Park, Reading, RG2 6GP, U.K.
Tel:
+44 (0) 118 945 0130
E-Mail:
This email address is being protected from spambots. You need JavaScript enabled to view it.

markerFind on Google Maps

About Us

Orb Data brings together People, Process and Technology to deliver the cornerstone of business success: the management of IT infrastructure. At our heart are our people. We have unrivalled experience, helping us to achieve an enviable reputation for excellence in project delivery. Because we’re independent, we identify actual issues and help organisations resolve them –from spec to deployment, and beyond –providing the right solution in terms of best of breed technology and support. We offer a refreshingly simple approach to the way we conduct business. We take pride in our abilities to provide first class solutions to business problems, and to conduct working relationships with honesty and integrity.

Follow Us On:

JoomShaper