[Connections] Hyper-V

Q100069: [Connections] Hyper-V

The Hyper-V Connection is a definition which tells a module, how to connect to and communicate with a specific Hyper-V server. Connections can either be entered directly into the parameter in the module, or can be managed through the global connections tool. If you will be using the same connection in different modules, it is much easier to manage the connection information by creating a single global connection. Whether you use a locally defined value in each Hyper-V module, or use the global definitions for your Hyper-V modules, the format of the connection value is the same for both.

If you use the global connection manager, you will see that as soon as you create a new entry, it will provide you a template for starting your Hyper-V Connection definition. It would look like the example below.

Server=<server>;Domain=<domain>;Username=<username>;Password=<password>;Timeout=<timeout>;

Here we see that there are multiple values specified in this single parameter. Each value is a single name-value pair. You should notice that each of the name-value entries consists of a name on one side, followed by an equals sign (=), followed by the value, and finally terminated by a semicolon. Thus if we breakdown the example above, the list of name-value pairs might appear a little more legible if we look at them this way.

Server=<server>;
Domain=<domain>;
Username=<username>;
Password=<password>;
Timeout=<timeout>;

Formatted this way, it is much easier to read. The name is on the left of the equals sign, while the value is on the right. Where each value is, you would edit it to use the value which is specific for your installation. In the template, the value on the right side would be replaced by the setting specific for the Hyper-V Connection you are configuring. In the example below, we have configured what a real connection might look like.

Server=MyCorpHyperHost2;Domain=MyCorpDomain;Username=DomainUsername;Password=UsernamePassword;Timeout=90;

You might want to specify the Hyper-V server IP address. To do that, you simply use the IP address directly instead of specifying a server network name, or fully qualified domain name. We can see an example of this below.

Server=10.25.50.12;Domain=MyCorpDomain;Username=DomainUsername;Password=UsernamePassword;Timeout=90;
 
Last Updated:
6/29/2023 11:27:47 PM
JobServer.NET Knowledgebase © 2025