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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.