Skip to content

New-IvantiCI

SYNOPSIS

Creates a new configuration item (CI) in Ivanti ITSM.

SYNTAX

body (Default)

New-IvantiCI -body <Hashtable> [<CommonParameters>]

CIName

New-IvantiCI -CIName <String> -serialNumber <String> -status <String> [<CommonParameters>]

DESCRIPTION

Creates a new configuration item (CI) in Ivanti ITSM with the specified details such as CI name, serial number, status, or a custom body hashtable.

EXAMPLES

EXAMPLE 1

New-CI -CIName 'CI123' -serialNumber 'SN123' -status 'Active'

Creates a new configuration item with the specified CI name, serial number, and status.

EXAMPLE 2

New-CI -body @{ 'CIName' = 'CI123'; 'SerialNumber' = 'SN123'; 'Status' = 'Active' }

Creates a new configuration item with the specified details in the body hashtable.

PARAMETERS

-body

A hashtable of fields to be set in the new configuration item.

Type: Hashtable
Parameter Sets: body
Aliases:

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

-CIName

The name of the configuration item to be created.

Type: String
Parameter Sets: CIName
Aliases:

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

-serialNumber

The serial number of the configuration item to be created.

Type: String
Parameter Sets: CIName
Aliases:

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

-status

The status of the configuration item to be created.

Type: String
Parameter Sets: CIName
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

https://help.ivanti.com/ht/help/en_US/ISM/2022/admin/Content/Configure/API/Create-a-Business-Object.htm