This PowerShell module allows you to manage the Cireson Asset Management (CAM) solution. CAM is plug-in attached to the System Center Service Manager (SCSM) plateform.
This module is relying on the SMlets PowerShell module which allows you to manage SCSM.
Install-Module CiresonAssetManagementPS
# Load the module into your session
Import-Module CiresonAssetManagementPS
# Retrieve all Hardware Assets
Get-CAMHardwareAsset
# Retrieve related object to a specific Asset
$hw = Get-CamHardwareAsset -DisplayName "TestPC"
Get-CAMRelatedObject -WorkItem $hw
# Retrieve relationship objects to a specific Asset
$hw = Get-CamHardwareAsset -DisplayName "TestPC"
Get-CAMRelationshipObject -BySource $hw
# Retrieve Support Contract
Get-CAMSupportContract -DisplayName "HP Workstation 2016"
# Retrieve the custodian of a Support Contract
$HPContract = Get-CAMSupportContract -DisplayName "HP Workstation 2016"
Get-CAMRelatedCustodian -WorkItemObject $HPContract
# New Support Contract
$props = @{
Name = "HP Servers 2016"
}
New-CAMObject -HashTable $props -TypeName SupportContract
# Create a new Vendor
$props = @{
Name = "LazyWinAdmin"
Website = "www.LazyWinAdmin.com"
VendorAddress1 = "Montreal"
}
New-CAMVendor -hashtable $props
# Retrieving all the Cmdlets available
Get-Command -module CiresonAssetManagementPS