New-SCOpsMgrConnection
New-SCOpsMgrConnection
Creates a connection to an Operations Manager management group.
構文
Parameter Set: Default
New-SCOpsMgrConnection -OpsMgrServer <String> -VMMServerCredential <PSCredential> [-EnableMaintenanceModeIntegration <Boolean]> ] [-EnablePRO <Boolean> ] [-JobVariable <String> ] [-OpsMgrServerCredential <RunAsAccount> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-UseVMMServerServiceAccount] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
詳細説明
The New-SCOpsMgrConnection cmdlet creates a connection between the Virtual Machine Manager (VMM) management server that you are currently connected to and an Operations Manager management group.
Before creating a connection to an Operations Manager management server, you must install the Operations Manager management console on your VMM management server and install the following management packs in Operations Manager:
-- SQL Server Core Library version 6.0.5000.0 or later management pack
-- Windows Server Internet Information Services Library version 6.0.5000.0 or later management pack
-- Windows Server Internet Information Services 2003 version 6.0.5000.0 or later management pack
-- Windows Server Internet Information Services 7 version 6.0.6539.0 or later management pack
パラメーター
-EnableMaintenanceModeIntegration<Boolean]>
Indicates whether maintenance mode integration is enabled for this connection.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-EnablePRO<Boolean>
Indicates whether PRO is enabled for this connection.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-JobVariable<String>
Specifies that job progress is tracked and stored in the variable named by this parameter.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-OpsMgrServer<String>
Specifies the fully qualified domain name (FQDN) of the System Center Operations Manager management server to which VMM connects.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-OpsMgrServerCredential<RunAsAccount>
Specifies the credentials that VMM uses to connect to the Operations Manager management group.The specified account must be an administrator on the Operations Manager computer (a member of the Builtin\Administrators group).
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PROTipID<Guid]>
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RunAsynchronously
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UseVMMServerServiceAccount
Specifies the service account that VMM uses to connect to Operations Manager.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMMServer<ServerConnection>
Specifies a VMM server object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-VMMServerCredential<PSCredential>
Specifies the credentials that Operations Manager uses to connect with VMM.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- OpsMgrConnection
例
Example 1: Create a connection to an Operations Manager management server
The first command gets the Run As account object named OpsMgrServerAccount, and then stores the object in the $OMCreds variable. The credentials provided in the Run As account must be a member of the Administrators user role on the Operations Manager management server.
The second command prompts you for credentials, and then stores the credentials you provide in the $VMMCreds variable. The account you provide must be a member of the Administrator user role on the VMM management server.
The last command creates a connection between the VMM management server that you are currently connected to and OpsMgrServer01 using the credentials obtained in the first two commands.
PS C:\> $OMCreds = Get-SCRunAsAccount -Name "OpsMgrServerAccount"
PS C:\> $VMMCreds = Get-Credential
PS C:\> New-SCOpsMgrConnection -OpsMgrServer "OpsMgrServer01.Contoso.com" -OpsMgrServerCredential $OMCreds -VMMServerCredential $VMMCreds