Hello!
I'm trying to create a small login-script that will install a program, update it and force it to start a scanning, when I login with a specific username.
You might've heard of Malwarebytes Anti-Malware, which is the program I'm gonna use.
I have this, right now:
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshShell.Run "\\cns-dc\install\mbam-setup.exe /silent"
wscript.Sleep 15000
wshShell.Run """C:\programmer\Malwarebytes' Anti-Malware\mbam.exe"" /update"
wcript.Sleep 15000
wshShell.Sendkeys "{ENTER}"
wscript.Quit
It installs the program as it should, and the update-process starts as well. But the problem is, that VBS won't progress in the script, until the wshshell.run command is finished - and that command won't finish until i manually press "Enter".
I hope you know what I mean - it's a bit hard to explain. It's probably a newbie-question, but I've been unable to find any help on the net!
Kind regards
Thomas
I'm trying to create a small login-script that will install a program, update it and force it to start a scanning, when I login with a specific username.
You might've heard of Malwarebytes Anti-Malware, which is the program I'm gonna use.
I have this, right now:
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshShell.Run "\\cns-dc\install\mbam-setup.exe /silent"
wscript.Sleep 15000
wshShell.Run """C:\programmer\Malwarebytes' Anti-Malware\mbam.exe"" /update"
wcript.Sleep 15000
wshShell.Sendkeys "{ENTER}"
wscript.Quit
It installs the program as it should, and the update-process starts as well. But the problem is, that VBS won't progress in the script, until the wshshell.run command is finished - and that command won't finish until i manually press "Enter".
I hope you know what I mean - it's a bit hard to explain. It's probably a newbie-question, but I've been unable to find any help on the net!
Kind regards
Thomas