![]() ![]()
I'm not sure if the problems lies in single or doubles % or somewhere else.įurther research shows that wmic bios get serialnumber returns in fact three values each in new line C:\Windows\system32>wmic bios get serialnumber using singles % produce the error listed above. "Why are you using doubled % signs in name=%%comp_name%%?" by aschipfl - I reverted to my original question - used double % and now getting different error - 87 which tells me more about the problem. #How To Change Serial Number In Bios Lenovo how toSo how to use a comp_name as a parameter for wmic command? part of the last command don't recognise variable initialised above. still throwing errors: O:\>wmic computersystem where name="TOM-PC" rename NAME= part correct - works as expected - fetching serial number and displays the variable's value. So for 1.: FOR /F %%F IN ('wmic bios get serialnumber') DO (įollowed by 2.: WMIC computersystem where name="%computername%" rename name=%%comp_name%%Įdit: got a 1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |