I have a script that runs setup based on a specific username and password. I need to keep this function, but I desire to add a little intelligence to it.
Ideal Script Solution
I need the script to check a file on the local machine for version. If the file contains txt with the value of "184.108.40.2068", then end script. If it doesn't have those values in the txt of the file, continue to script to run setup. Ff the file is not present, then abort.
File name to check for version in Text:
C:\Program Files (x86)\Malwarebytes Anti-Malware\changes.txt
Discoverable Values that show Version number in Txt file:
Here is what I have so far in my script:
strUsername = "SetupAdmin "
strPassword = "Cookies99"
strPath = "\\server\sestup\Upgrade_Mbam.bat"
Set objShell = CreateObject("wscript.shell")
objShell.run "cmd /c title RUNASINSTALL & runas /user:"&strUsername&" "&chr(34)&strPath&chr(34)
For i=0 to 5 or Success
If Success then