Installation

The portblocker_setup.msi installer will deploy three key parts to the target workstation.  The three parts consist of a Device Driver, Windows Service, and a Windows Application that the user can interact with. The installation will require local admin privileges to complete. Once PortBlocker is installed, all mass storage type devices will be blocked. Installation deployment can be done with a simple startup script, like the example below, or with third-party tools.


Registration

Registration is needed before devices can be whitelisted. When registration parameters are successfully passed to the installer, PortBlocker will automatically register after installation.  The switches used for registration is as follows: 


/URL=<SafeConsoleConnectionToken>: the SafeConsole connection token

/EULA=1: Accept the end user license agreement on behalf of the user

/USER= <UniqueToken>: OPTIONAL, register the PortBlocker Install to a specific user already in SafeConsole. 


It is recommended that the SafeConsole Server is configured with both unique token and admin approval disabled. This will allow a simple registration process for the end user.  



Requirements

Windows 10 and Windows 7

SafeConsole Connection Token, ex: https://server.safeconsolecloud.io/connect

Public server share to host installer, ex: \\nas\share\portblocker_setup.msi

All the machines you wish to install PortBlocker on must be joined to the domain


Set-Up

The MSI installer can be tested using the following command to install: 

msiexec /i \\Path\to\PortBlocker_x64.msi URL=https://example.safeconsolecloud.io/connect EULA=1 ALLUSERS=1 /norestart


Note: Replace the path to the msi and your safeconsole connection token


Once you have verified that you can register PortBlocker using the above command you can push out the MSI to a group of computers using the below settings:

  1.  Download and install Microsoft Orca:

    1. Microsoft guide for installing/using Orca utility: https://docs.microsoft.com/en-us/windows/desktop/msi/orca-exe

    2. Once you have familiarized yourself with Orca you can begin adding your properties to the PortBlocker msi file. Open Orca and select ‘File -> Open’ and choose your msi file.

    3. Click ‘Transform -> New Transform’ in the menu bar

    4. Navigate the ‘Property’ section in the left-hand column, this is where we will add our custom properties. Right-click in the section to the right and select ‘Add Row’

    5. We will add two custom rows, one for the connection token and one for the EULA agreement.

    6. Create the rows as shown in the example below (If you want to add unique user token, simply create another row with the property USER and the token as the value):

    7. In the ‘File’ menu select ‘Save Transformed As’ and select the location you want to save the msi file to.

  1. Set Up a GPO for deployment:

    1. On your domain controller, run the ‘Group Policy Management’ tool

    2. Select your domain and right-click, select ‘Create a GPO in this domain, and link it here…’

      1. Make sure that this policy encompasses all of the users/computers that you want to deploy PortBlocker to. In this instance, we’re deploying to everyone in the domain so we create the GPO directly underneath the domain itself

    3. Once you finish creating the group policy object right-click on it and select ‘Edit’

    4. Navigate to ‘Computer Configuration -> Policies -> Software Settings -> Software Installation’

    5. Right-click in the empty white box to the right-hand side and select ‘New -> Package’ and choose the location of your msi in the dialog

    6. In the final dialog, select ‘Assigned’