this is my first post here because I haven't been able to find a solution myself or on the forum.
I'm looking for a way to retrieve the serial numbers of my workstations via the WAPT agent.
I can't find this information in the software inventory.
I thought I'd do it with a script, but I realized that with NVMe drives, wmic doesn't return the correct information with the command `wmic diskdrive get serialnumber`.
In PowerShell, I tested the command `Get-WmiObject -Class Win32_DiskDrive | Select-Object DeviceID, SerialNumber`, and I get the same result (thankfully, you might say, since it's querying the same database).
However, after some digging, I found the command `Get-PhysicalDisk | Select AdapterSerialNumber`, which gives me the correct information (albeit with a few extra characters).
So my question is: how do I get the result of this PowerShell command to appear in the hardware inventory?
Is it even possible?
Thanks to anyone who knows the answer.
Have a good day!
