Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sullivane
Champion Sweeper III
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?
1 REPLY 1
sullivane
Champion Sweeper III
Managed to piece together a powershell script which does this:

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.

General Discussions

Find answers to technical questions about Lansweeper.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now