Share via


New-SCOMResourcePool

Creates a resource pool in Operations Manager.

Syntax

New-SCOMResourcePool
   [-DisplayName] <String>
   [-Member] <ComputerHealthService[]>
   [-Observer <ComputerHealthService[]>]
   [-Description <String>]
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-SCOMResourcePool cmdlet creates a resource pool in System Center - Operations Manager. A resource pool enables a collection of management servers to distribute the workload.

Examples

Example 1: Create a resource pool

PS C:\>New-SCOMResourcePool -DisplayName "Pool01" -Member (Get-SCOMManagementServer) -PassThru

This example creates a resource pool named Pool01 that contains all management servers.

The command in parentheses, which is executed first, uses the Get-SCOMmanagementServer cmdlet to get all management servers. The cmdlet then passes the results of the command in parentheses to the New-SCOMResourcePool cmdlet, which creates the resource pool and adds the management servers.

Note: Because the management servers are added to this resource pool manually, this resource pool will not have automatic membership enabled, and you must add all future members manually.

Parameters

-ComputerName

Specifies an array of names of computers. The cmdlet establishes temporary connections with management groups for these computers. You can use NetBIOS names, IP addresses, or fully qualified ___domain names (FQDNs). To specify the local computer, type the computer name, localhost, or a dot (.).

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Credential

Specifies a PSCredential object for the management group connection. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type "Get-Help Get-Credential".If you specify a computer in the ComputerName parameter, use an account that has access to that computer. The default is the current user.

Type:PSCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Description

Specifies a description for the resource pool. The parameter accepts a maximum character length of 4,000 characters.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

Specifies a display name of an object. Values of the DisplayName parameter may vary depending on which localized management packs a user imports into the management group and the locale of the user who is running Windows PowerShell

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Member

Specifies an array of objects to include in the resource pool.

Valid objects that can be members of a resource pool include management servers or gateway servers. For information about how to get a gateway server object, type "Get-Help Get-SCOMGatewayManagementServer".

Type:ComputerHealthService[]
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Observer

Specifies an array of management servers or gateway management servers not currently in a resource pool.

To make a resource pool highly available, you must add a minimum of three members to the pool, or two members and one observer.

Type:ComputerHealthService[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SCSession

Specifies an array of Connection objects. To obtain a Connection object, use the Get-SCManagementGroupConnection cmdlet.

Type:Connection[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False