I need to scan the domain for only laptops
Hello,
You can try to use the command below to detect laptop or server. Shows battery status , if true then the machine is a laptop.
Get-WmiObject -Class win32_battery -ComputerName $computer
Any update, please let me know.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.