We are migrating from Panda AV to McAfee. I am trying to Uninstall Panda once McAfee is fully installed. I have created a VB script to run CMD as an admin account, which then calls a batch file since the executable requires admin rights. For some reason it is not working.
I know that the VB script runs from GPO because I can see the command windows open at startup prompting for credentials and then the VB script populates the credentials. However, the CMD window closes right after that and does not uninstall Panda. I have verified that the batch file itself works on its own if I run it manually. I have verified the admin credentials of account "rollout" as well.
I'm assuming there is something awry in the vbscript code or the handoff to the batch file, but maybe someone can tell me what is wrong with this scenario.
Here is the VBscript....
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /noprofile /user:ofy\rollout ""\\server\netlogon\Panda\Uninstall\removepanda.bat"
oShell.Sendkeys " ~"
And here is the batch file....
IF EXIST "C:\Program Files\McAfee\VirusScan Enterprise" (
) ELSE (
START "" /WAIT "C:\Program Files\Panda Software\Panda Administrator 3\PavInst\AVTC\AVTC.exe" -a:uninstall
START "" /WAIT "C:\Program Files\Panda Software\Panda Administrator 3\PavInst\PLAgent\PAVAGENT.exe" -a:uninstall
Client machines are running XP Pro. Servers are running Server 2003