
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2016 10:44 PM
If I have to send a machine in under warranty I have to give them the serial\model\sku. Wonder if the asset actions can do that with one click?
Labels:
- Labels:
-
General Discussion
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 05:03 PM
Managed to piece together a powershell script which does this:
I put it in the Action Path and added to Asset Actions:
I should mention this only works with the laptop turned on.
If anyone has a way to get this out of the lansweeper database, that would be awesome.
Param($pcname)
$SKU = "Product Number: " + (gwmi -Namespace root\wmi -Class MS_SystemInformation).SystemSKU
$Serial = "Serial Number: " + (Get-WmiObject -computer $pcname -cl win32_BIOS).SerialNumber
$Model = "Model: " + (Get-WmiObject -Class Win32_ComputerSystem -ComputerName $pcname).Model
$Info = $Serial,$Model,$SKU
$Info | clip
I put it in the Action Path and added to Asset Actions:
powershell.exe -windowstyle hidden {actionpath}\CopyInfo.PS1 -pcname {computer}
I should mention this only works with the laptop turned on.
If anyone has a way to get this out of the lansweeper database, that would be awesome.
