Windows 7 Thread, Win7 & Win8 32bit and 64bit WMI Filter in Technical; Hi Guys/Gals
i need to make a WMI filter so only windows 7 and windows 8 32bit and 64bit are ...
-
9th November 2012, 01:49 PM #1
- Rep Power
- 4
Win7 & Win8 32bit and 64bit WMI Filter
Hi Guys/Gals
i need to make a WMI filter so only windows 7 and windows 8 32bit and 64bit are effected Not any windows xp or server based OSs. also i need to make sure the 64bit Architecture relates to the OS not the CPU.
here is the filter i've made..... can anybody shine any light on this please?
select * from Win32_OperatingSystem WHERE (Version like "6.1%" or Version like "6.2%") AND ProductType="1" AND (OSArchitecture = "64-bit" or OSArchitecture = "32-bit")
-
-
IDG Tech News
-
9th November 2012, 02:01 PM #2 wouldnt
select * from Win32_OperatingSystem WHERE (Version like "6.1%" AND ProductType="1" ) or (Version like "6.2%" AND ProductType="1" ) work if u=you dont care if x64/x86 why even ask?
not saying this will work but looks simpler logic if nothing else or even come to think of it
select * from Win32_OperatingSystem WHERE (Version => "6.1%" AND ProductType="1" )
-
Thanks to sted from:
jahilton2002 (9th November 2012)
-
9th November 2012, 02:18 PM #3
- Rep Power
- 4
select * from Win32_OperatingSystem WHERE (Version => "6.1%" AND ProductType="1" ) this works does it? i like your logic
-
-
9th November 2012, 02:45 PM #4 SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE '6.1.%') AND (ProductType = 1)
-
-
9th November 2012, 03:10 PM #5
- Rep Power
- 4

Originally Posted by
ChrisMiles
SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE '6.1.%') AND (ProductType = 1)
thats just windows 7 tho?
-
-
27th November 2012, 11:07 AM #6
- Rep Power
- 4
Hi guys whats the best way for me to include all 32bits OSs including and above vista (i need to exclude XP)
i get an error when i use the following;
SELECT OSArchitecture FROM Win32_OperatingSystem WHERE (version =>"6.0%" AND ProductType="1") AND (OSArchitecture='32-bit')
Last edited by jahilton2002; 27th November 2012 at 11:08 AM.
-
-
27th November 2012, 11:19 AM #7 
Originally Posted by
jahilton2002
SELECT OSArchitecture FROM Win32_OperatingSystem WHERE (version =>"6.0%" AND ProductType="1") AND (OSArchitecture='32-bit')
Try:
SELECT OSArchitecture FROM Win32_OperatingSystem WHERE (version =>"6.%" AND ProductType="1") AND (OSArchitecture='32-bit')
This should work for Vista and 7 (and possibly 8): Step 7: Creating WMI and Group Filters
-
-
27th November 2012, 11:29 AM #8
- Rep Power
- 4
thx for the speedy reply i get the same error below;
"A Syntax error occurred trying to evaluate a query string"
-
-
27th November 2012, 11:32 AM #9 I think I've spotted it..
Replace the first OSAechitecture with "*"
-
-
27th November 2012, 11:37 AM #10
- Rep Power
- 4
I get the same error im afraid.... after i get this wmi filter sorted im having a break... i feel like i making silly mistakes now!
here's screenie
Capture.PNG
-
-
27th November 2012, 11:49 AM #11 select * from Win32_OperatingSystem Where (Version>='6.%' AND Producttype="1" AND OSArchitecture='32-bit')
-
2 Thanks to VeryPC_Tom_M:
jahilton2002 (27th November 2012)
-
27th November 2012, 11:52 AM #12
-
SHARE: 
Similar Threads
-
By IT_Man_Dan in forum Windows 7
Replies: 4
Last Post: 2nd November 2012, 12:38 PM
-
By mrbios in forum MIS Systems
Replies: 15
Last Post: 26th March 2012, 01:54 PM
-
By fil_b in forum Hardware
Replies: 6
Last Post: 22nd June 2010, 04:18 PM
-
By ajbritton in forum Windows
Replies: 8
Last Post: 15th August 2006, 08:30 PM
-
By Norphy in forum Windows
Replies: 2
Last Post: 9th March 2006, 09:28 AM
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules