Open ambersferrara opened 8 years ago
Thank you @ambersferrara
It was on my ToDo list but unfortunately I just changed of job and don't have access to Cireson Asset Management anymore.
If you are able to get the relationship of an object who already have all the objects associated to it, I could help.
To help with that, I just added two new cmdlets into the module, which rely on the Smlets module as usual:
Get-CAMRelationshipObject
Get-CAMRelatedObject
Here is an example, in your case you are looking for the relationship of an Hardware Asset. If i can get the output of the following...I could try to create a command for your need
below you need to change 'TESTPC'
# Retrieve a Hardware Asset
$hw = Get-CamHardwareAsset -DisplayName "TestPC"
# Retrieve Relationship Object(s)
$RelationShipObj = Get-CAMRelationshipObject -BySource $hw
If you can get/send me the output $hw and $relationshipobj I could try to do something.
Another question, can you see the SN of your device in the output of $hw ?
Feel free to reach out to me: fxcat @ lazywinadmin.com
The module is very useful for retrieving information, but I'm trying to achieve something I seem to be at a dead-end.
I'd like to find an asset by serial number and associate it with a lease and support contract. My particular scenario is that we lease computers in bulk so there are usually 50+ assets on a schedule. I can import the schedules using Asset Excel, although PowerShell would be preferred for automation and scale. We can export a csv with support contract information from the vendor's site. We also use Asset Excel for that. When it comes to mapping the Asset to the Lease Schedule and Support Contract objects I haven't found a tool to help. Your module is the closest I've come, but I haven't determined how to quite make the associations.
Thank you for any assistance you can provide.