1
0 Comments

I am attempting to print only the UUID in Windows, and I am executing the following command:

wmic csproduct get uuid | findstr /R “[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}”

The previous command returns an empty string. If I execute the following:

wmic csproduct get uuid

It’d print following:

UUID

uuid-example-9596-dj9v

I am attempting to print only the last line.

Askify Moderator Edited question April 24, 2023