Group Policy Deployment
Last updated
Last updated
This guide will help you deploy the Twosense Agent to your Windows computers using Group Policy.
Group policy has settings for targeting computers and settings to target users. This guide will focus on targeting computers.
Open the Group Policy Management Console (GPMC) on your domain controller.
Navigate to the OU where you want to apply the GPO, right-click and select "Create a GPO in this domain, and Link it here...".
Name the GPO Twosense Installation
and click OK.
Right-click the new GPO and select Edit....
Navigate to Computer Configuration > Policies > Software Settings > Software Installation.
Right-click Software Installation and select New > Package.
Browse to the Twosense MSI file and click Open.
⚠️ The MSI file must be on a network share that all computers in the OU can access.
On the Deploy Software dialog, select Advanced and click OK.
Add the version number to the Name field, e.g. Twosense Authenticator 1.0.0
.
In the Deployment tab, select Assigned.
⚠️ If the Install this application at logon option is greyed out, click Assigned again. It should be enabled now.
Check the box for Install this application at logon.
Check the box for Uninstall this application when it falls out of the scope of management.
This will uninstall the software if the computer is moved out of the OU where the GPO is linked.
On the Modifications tab, click Add and browse to the *.mst
file that was provided to you.
⚠️ The MST file must be on a network share that all computers in the OU can access.
Click OK to close the Properties dialog.
In some environments, the installation may fail with error 1274. This is due to the computer not waiting for the network to be available before attempting to install the software. To fix this, you can enable the "Always wait for the network at computer startup and logon" policy.
In the GPO editor, navigate to Computer Configuration > Policies > Administrative Templates > System > Logon.
Double-click "Always wait for the network at computer startup and logon".
Select "Enabled" and click OK.
In Active Directory Users and Computers, move a test computer to the OU where the GPO is linked.
Log in to the test computer and run gpupdate /force from the command prompt.
Restart the computer and log in again.
ℹ️ You can verify the installation by checking the Add/Remove Programs list in the Control Panel. However, the Twosense services may not be running yet. This is normal and the services will start after the next reboot.
To verify that the installation was successful. Restart the computer again and log in. The login event should show up in the Twosense portal under "Event Log".