New-SCSMDCMWorkflow
New-SCSMDCMWorkflow
Creates a DCM workflow in Service Manager.
構文
Parameter Set: Default
New-SCSMDCMWorkflow [-DisplayName] <String> [-ComputerName <String[]> ] [-ConfigurationBaseLine <Hashtable[]> ] [-Credential <PSCredential> ] [-Description <String> ] [-Enable <Boolean> ] [-EnableNotification <Boolean> ] [-ManagementPack <ManagementPack> ] [-Notification <Hashtable[]> ] [-PassThru] [-SCSession <Connection[]> ] [-Template <ManagementPackObjectTemplate> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The New-SCSMDCMWorkflow cmdlet creates a Desired Configuration Management (DCM) workflow in Service Manager.
パラメーター
-ComputerName<String[]>
Specifies the name of the computer on which the System Center Data Access service runs. The user account that is specified in the Credential parameter must have access rights to the specified computer.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-ConfigurationBaseLine<Hashtable[]>
Specifies the hash table that represents the baseline configuration for the DCM workflow. Valid values are:
-- Baseline
-- Configuration
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Credential<PSCredential>
Specifies the credentials that this cmdlet uses to connect to the server on which the System Center Data Access service runs. The specified user account must have access rights to that server.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Description<String>
Specifies the description of the DCM workflow.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DisplayName<String>
Specifies the display name of the workflow object to be created.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Enable<Boolean>
Indicates whether this cmdlet enables or disables the DCM workflow.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-EnableNotification<Boolean>
Indicates whether this cmdlet enables or disables notifications.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ManagementPack<ManagementPack>
Specifies the management pack in which the DCM workflow is stored.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Notification<Hashtable[]>
Specifies the notification details of the DCM workflow.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PassThru
Specifies the output object that represents the DCM workflow. This output object can be passed to other cmdlets.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SCSession<Connection[]>
Specifies an object that represents the session to a Service Manager management server.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Template<ManagementPackObjectTemplate>
Specifies the Object template to apply to the DCM workflow.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
None.
You cannot pipe input to this cmdlet.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
None.
This cmdlet does not generate any output.
例
Example 1: Create a DCM workflow
The first command gets a management pack that matches the string IncidentManagement.Configuration by using the Get-SCSMManagementPack cmdlet. The command stores that object in the $ManagementPack variable.
The next three commands get templates by using the Get-SCSMObjectTemplate cmdlet. The commands store these templates in the $Template01, $Template02, and $Template01 variables. The first two templates are used in the values of the Notification parameter. The other template is used as the value of the Template parameter.
The fourth command creates a DCM workflow that has the name DCMWorkflow03.
The final command verifies the creation by using the Get-SCSMDCMWorkflow cmdlet.
PS C:\>$ManagementPack = Get-SCSMManagementPack -Name "*IncidentManagement.Configuration"
PS C:\> $Template01 = Get-SCObjectTemplate -Name "AssignedToUserNotificationTemplate"
PS C:\> $Template02 = Get-SCObjectTemplate -Name "HighPriorityIncidentTemplate"
PS C:\> $Template03 = Get-SCObjectTemplate -Name "DefaultIncidentTemplate"
PS C:\> New-SCSMDCMWorkflow -DisplayName "DCMWorkflow03" -Description "A DCM workflow" -Enable $False -EnableNotification $True -ManagementPack $ManagementPack -Notification @{User = "Assigned To User";Template = $Template01},@{User="Created By User";Template= $Template02} -Template $Template03
PS C:\> Get-SCSMDCMWorkflow