WMI Filtering to select a group of computer

Ming Cheung 426 Reputation points
2023-08-10T15:31:48.12+00:00

I want to apply WMI filtering in GPO to a group of computers only

I test the query, it is unable to select the group of computers, always only show the DC itself

get-wmiobject -query 'select * from win32_computersystem'

and i just test to applying [ select * from win32_computersystem where name='PC01' ]

but it works.

how to verify or show what exactly select and apply?

thanks

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-08-11T06:37:50.66+00:00

    Hi,

    The powershell command only works on the local machine. Use the "-ComputerName" parameter to specify the remote computer you want to run the command.

    Get-WmiObject -Query 'select * from win32_computersystem' -ComputerName pc01,pc02
    

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.