lazywinadmin / CiresonAssetManagementPS

PowerShell module for Cireson Asset Management (CAM)
MIT License
5 stars 2 forks source link
assets-management cireson cireson-asset-management powershell script scripting scsm smlets

CiresonAssetManagementPS

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.

Requirements

Installation

Download from PowerShell Gallery

Install-Module CiresonAssetManagementPS

Download from GitHub repository

Getting Started

# 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

Cmdlets

# Retrieving all the Cmdlets available
Get-Command -module CiresonAssetManagementPS