I did not want to say the notation with the variables outside the strings would make the WMIQuery work. It is just a better notation. Just in case someone would use your code and set NoVarsInStrings option to On. IMHO, variables just do not belong in a string.