Run the script in multiple computers using startup script of Active Directory

You can install an agent in your client computers using the startup script of the Active Directory. This is done by running a script in multiple computers adding the start up script of the Active Directory in your client computers.

To install agents in client computers using a GPO, follow the steps given below:

Note: Ensure that you complete the steps given below in a Domain Controller setting. You can map the script to a domain even if you have installed Browser Security Plus agents in a few client computers. The script will install the agent only in the computers in which the agent is not installed.

  1. Download the Zip file and extract it. Follow the below steps to download the agent from Browser Security Plus server:
    • Navigate to Agent tab
    • Click on Scope of Management
    • Click on Download Agent
  2. Save the .msi and .JSON file in the network share that you have created.
  3. Click on start>Run, enter gpmc.msc and click OK
    • Right click the domain to select, create and link a GPO here
    • Specify a name for the GPO
    • Select the GPO
  4. Note: If you want to install the agent in only a few client computers, follow the steps given below. To install the agent in all your client computers skip these steps.
    • Click on the Scope tab
    • Under Security Filtering section, click Add
    • In the Select User, Computer, or Group dialog box, click Object Types
    • Select specific computer object types
    • Click OK
    • Specify the computer names
    • Click on Check Names
    • Click OK
  5. Right click the GPO and click on Edit.
  6. For executing VBScript, follow these steps.
    • Expand Computer Configuration --> Policies --> Windows Settings --> Scripts
    • Right click Startup and click Properties
    • Click Show Files
    • Drag and drop the InstallAgent.vbs "BrowserSecurityPlusAgent.msi" to this location and Copy the location (\\Domain name\SysVol\Domain name\Policies\{ID}\Machine\Scripts\Startup) and close.
    • In the Startup Properties dialog box, click Add
    • Browse and navigate to the location (\\Domain name\SysVol\Domain name\Policies\{ID}\Machine\Scripts\Startup) and select the InstallAgent.vbs script or specify the path (copied location) and the script as mentioned below: (\\Domain name\SysVol\Domain name\Policies\{ID}\Machine\Scripts\Startup)\InstallAgent.vbs
    • specify the script parameters as mentioned below: "BrowserSecurityPlusAgent.msi"
  7. Note : As an alternative to the execution of VBscript, you can execute PowerShell script for agent installation using GPO.

  8. For executing PowerShell script, follow these steps
    • Ensure if PowerShell is enabled in all the client computers before execution of this script.
    • Expand Computer Configuration --> Policies --> Windows Settings --> PowerShell scripts
    • Right click Startup and click Properties
    • Click Show Files
    • Drag and drop the PSInstallAgent.ps1 BrowserSecurityPlusAgent.msi to this location and copy the location (\\Domain name\SysVol\Domain name\Policies\{ID}\Machine\Scripts\Startup) and close.
    • In the Startup Properties dialog box, click Add
    • Browse and navigate to the location (\\Domain name\SysVol\Domain name\Policies\{ID}\Machine\Scripts\Startup) and select the PSInstallAgent.ps1 script or specify the path (copied location) and the script as mentioned below: (\\Domain name\SysVol\Domain name\Policies\{ID}\Machine\Scripts\Startup)\PSInstallAgent.ps1
    • specify the script parameters as mentioned below: "BrowserSecurityPlusAgent.msi"
  9. Click OK to close the Add a Script dialog box
  10. Click OK to close the Startup Properties dialog box
  11. Close the Group Policy Object Editor
  12. Close the Group Policy Management dialog box
  13. Note : The script mentioned will be applicable only to computers group and this cannot be used to the entire domain.

    The script will be executed when the client computers reboot next. After the execution of the script, Browser Security Plus agents will be installed automatically in all the client computers.

    Notes:

    • Set the file association properties of .vbs files to Microsoft Windows (r) based script host in all the client computers. This ensures that the script is executed successfully. Do not modify the file association properties to open in a text editor as the execution of the script will fail.
    • You can leave the Browser Security Plus GPO object installed indefinitely to ensure that the agent is installed in future client computers.
    • This will not re-install the agent that is already installed as the script is programmed to ensure that it doesn't re-install agents that are already installed. This will not cause any problems during startup.
    • The agent is programmed to check for new versions from the server and upgrade itself automatically. When an agent is installed, it updates itself automatically when new versions are released.
    • You have now installed an agent in client computers using a GPO.