New-SCSMDCMWorkflow

New-SCSMDCMWorkflow

Creates a new Desired Configuration Management (DCM) workflow in Service Manager.

Syntax

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>]

Detailed Description

The New-SCSMDCMWorkflow cmdlet creates a new DCM workflow in Service Manager.

Parameters

-ComputerName<String[]>

Specifies the name of the computer on which the Service Manager Data Access service is running.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-ConfigurationBaseLine<Hashtable[]>

Specifies the hash table that represents the baseline configuration for the DCM workflow. Allowed values are Baseline and Configuration.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Credential<PSCredential>

Specifies the credential to use when you connect to the System Center Data Access service. If this is not provided or null, the current user context is used.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Description<String>

Specifies the description of the DCM workflow.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DisplayName<String>

Specifies the DisplayName of the workflow object to be created.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Enable<Boolean>

Enables or disables the DCM workflow.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-EnableNotification<Boolean>

Enables or disables notifications.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ManagementPack<ManagementPack>

Specifies the management pack in which the new DCM workflow will be stored.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Notification<Hashtable[]>

Specifies the notification details of the DCM workflow.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PassThru

Specifies the output object that represents the new DCM workflow. This output object can be passed to other cmdlets.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SCSession<Connection[]>

Specifies an object that represents the session to a Service Manager management server.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Template<ManagementPackObjectTemplate>

Specifies the Object template to apply to the DCM workflow.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None.

    You cannot pipe input to this cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • None.

    This cmdlet does not generate any output.

Examples

-------------------------- EXAMPLE 1 --------------------------

This script creates a new DCM workflow. First, it defines $arguments, and then it creates the workflow. Finally, it verifies that the workflow was created successfully.

PS C:\>New-SCSMDCMWorkflow @arguments
PS C:\>$arguments = @{
>> Description = "This is a description"
>> DisplayName = "MyDCMWorkflow"
>> Enable = $false
>> EnableNotification = $true
>> Notification = @{
>> User = "Assigned To User"
>> Template = Get-SCObjectTemplate -Name AssignedToUserNotificationTemplate
>> },@{
>> User="Created By User"
>> Template= Get-SCObjectTemplate -Name HighPriorityIncidentTemplate
>> }
>> ManagementPack = Get-SCManagementPack -Name *IncidentManagement.Configuration
>> Template = Get-SCObjectTemplate -Name DefaultIncidentTemplate
>> }
PS C:\>Get-SCSMDCMWorkflow

Get-SCSMDCMWorkflow

Remove-SCSMDCMWorkflow

Update-SCSMDCMWorkflow