Hi There,
Being a complete novice to VB Scripts I have an issue that i could do with some help.
In a site that I manage, we have been asked, due to corporate rethink, to remove Kaspersky Anti‐Virus for Windows Workstations 6.0.4 from all work stations and to Install Symantec Endpoint Protection (SEP) 12.1.3001. Also the decision was taken to use VB scripts to implement this change.
Now, here is the problem. I want to run a GPO logon VB script that will remove Kaspersky using msiexec, reboot the pc and then, at next logon, the same script should install SEP from a network share via an MSI file. To make things worse, there is a 32bit and 64 bit version of the SEP software, and the script needs to determine the architecture of the Windows so that the correct software is installed. The script must continue to run when Kaspersky has been removed to install SEP, but must not run when both conditions are met.
I know that a txt file can be created on the local work station once a certain condition is met in the VB script and the existance of this txt file can trigger the rest of the script to complete or Quit depending on the condition. However, as state above, I'm a complete novice at VB scripts and have only managed to create part of the script that removes Kaspersky:
Set WshShell = CreateObject("WScript.Shell")
' Kaspersky Anti‐Virus for Windows Workstations
WshShell.Run msiexec /x {8F023021-A7EB-45D3-9269-D65264C81729} KLUNINSTPASSWD=xxxxxx
ALLOWREBOOT=1 /qn
Any assistance to complete the script would be greatly appreciated
Being a complete novice to VB Scripts I have an issue that i could do with some help.
In a site that I manage, we have been asked, due to corporate rethink, to remove Kaspersky Anti‐Virus for Windows Workstations 6.0.4 from all work stations and to Install Symantec Endpoint Protection (SEP) 12.1.3001. Also the decision was taken to use VB scripts to implement this change.
Now, here is the problem. I want to run a GPO logon VB script that will remove Kaspersky using msiexec, reboot the pc and then, at next logon, the same script should install SEP from a network share via an MSI file. To make things worse, there is a 32bit and 64 bit version of the SEP software, and the script needs to determine the architecture of the Windows so that the correct software is installed. The script must continue to run when Kaspersky has been removed to install SEP, but must not run when both conditions are met.
I know that a txt file can be created on the local work station once a certain condition is met in the VB script and the existance of this txt file can trigger the rest of the script to complete or Quit depending on the condition. However, as state above, I'm a complete novice at VB scripts and have only managed to create part of the script that removes Kaspersky:
Set WshShell = CreateObject("WScript.Shell")
' Kaspersky Anti‐Virus for Windows Workstations
WshShell.Run msiexec /x {8F023021-A7EB-45D3-9269-D65264C81729} KLUNINSTPASSWD=xxxxxx
ALLOWREBOOT=1 /qn
Any assistance to complete the script would be greatly appreciated