Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. qtpounder

    Help with objWMIService.ExecQuery and if statement

    Thanks for the reply. I found the problem. I had to add < to = line. So it looks like this: If osversion <= "Microsoft Windows 7 Ultimate" Then WScript.Echo "It worked!" Else WScript.Echo "It did not work" WScript.Echo osversion End If...
  2. qtpounder

    Help with objWMIService.ExecQuery and if statement

    I am having a problem with my script. I am a noob when it comes to VBS so please excuse my ignorance. I echo the value of osversion varible and it has my os version in it. But then once it enters into the IF statement it is always false which is should be true because I am running Microsoft...

Part and Inventory Search

Back
Top