Avatar of JohnPaddock
JohnPaddock

asked on 

Use a wmi query in item-level targeting

I'd like to use wmi querys to item-level target group policy preferences.  Nothing I do is working.  Not sure how to test.  Could someone give me an example?  below is when I'm trying to use to test currently.

Query:  Select DisplayName from Win32_Service Where Name ='Print Spooler'
Namespace:  Root\cimv2
Property:  Print Spooler
* WMICWindows 10Microsoft Server OS

Avatar of undefined
Last Comment
JohnPaddock
Avatar of Mahesh
Mahesh
Flag of India image

what is your requirement?
Avatar of JohnPaddock
JohnPaddock

ASKER

I'm just testing.  I guess my requirement in this test is just that it finds the print spooler service.
But really, the requirement would be that the service is running.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of JohnPaddock
JohnPaddock

ASKER

it works!
Thankyou.
Much appreciated.
For writing querys like this I'm finding the below to be very useful since I'm new to this.
WMI Code Creator
https://www.microsoft.com/en-us/download/details.aspx?id=8572
Microsoft Server OS
Microsoft Server OS

The Microsoft Server topic includes all of the legacy versions of the operating system, including the Windows NT 3.1, NT 3.5, NT 4.0 and Windows 2000 and Windows Home Server versions.

59K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo