Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request to update leases and support contracts #1

Open
ambersferrara opened this issue Apr 30, 2016 · 1 comment
Open

Feature request to update leases and support contracts #1

ambersferrara opened this issue Apr 30, 2016 · 1 comment
Assignees

Comments

@ambersferrara
Copy link

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.

@lazywinadmin
Copy link
Owner

lazywinadmin commented May 1, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants