troubleshooting Question

Set OS-Bit type in with batch

Avatar of etlt01
etlt01 asked on
Windows Batch
2 Comments1 Solution259 ViewsLast Modified:
Hi I'm trying to set OS-Bit type from a query to registry. but I cant figure out how to set the right value. I hope someone could help me.

With my script I get OS-BIT=         Identifier  REG_SZ  x86 Family 6 Model 15 Stepping 11
but  I want OS-BIT=x86

set OS-BIT=
@rem Check for settings in registry and set variables
for /F "tokens=1 delims="	 %%x in ('"REG Query HKLM\Hardware\Description\System\CentralProcessor\0 /v Identifier"') do set OS-BIT=%%x
echo %OS-BIT%
Farhan Kazi
Systems Engineer
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros