I was able to get the physical drives added properly:
$drives = Get-WmiObject -ComputerName hvacn02 -Class win32_Volume -Filter DriveType=3
$drives = $drives | sort DriveLetter
foreach ($drive in $drives){
$VolumeDescription = "$($drive.Caption) Label:$($drive.Label) Serial Number $([Convert]::ToString($drive.SerialNumber, 16))";
$VolumeCaption = "$($drive.Caption) Label:$($drive.Label) $([Convert]::ToString($drive.SerialNumber, 16))";
but I'm still having trouble figuring out how to get "Asset Inventory" to work. I've run this, but it's not showing checked for the node. What am I missing?
$poller = @{
PollerType='N.AssetInventory.Snmp.Generic';
NetObject="N:"+[int]$NodeID;
NetObjectType="N";
NetObjectID=[int]$NodeID;
}
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
Fixed a typo above. There is a space after Serial Number not a colon in the the VolumeDescription.