Manually Update User Activity Core Service
Question
The Netwrix Auditor User Activity Core Service version in a target server does not correspond to the version of the Auditor server. Is it possible to manually update User Activity Core Service in either all or specific target servers?
Answer
NOTE: Refer to the following article for additional information on establishing the version of your Auditor server: How to Find Out My Netwrix Auditor Version
IMPORTANT: It is recommended to stop User Activity services in the Netwrix server before making changes to installed Core Services in targets. Run the following command in elevated PowerShell to stop User Activity Core Service and Audit Service:
Stop-Service -DisplayName "Netwrix Auditor User Activity *"
User Activity Core Service is designed to be deployed automatically when adding items to the corresponding monitoring plan. The Core Service version is supposed to match the Auditor server version − the service is updated on each Auditor server upgrade. In case of connectivity issues during the upgrade procedure, Core Service in a target server may be skipped leading to a version mismatch. Refer to the following steps to manually update Core Service in affected servers depending on the scope of the out-of-date Core Service targets.
Update Core Service in a single target server
-
Remove the server item from the User Activity monitoring plan and add it again. In the User Activity monitoring plan, select the target server and click Remove item in the right pane. To verify the status of Core Service in a target server, select Edit Data Source > the Monitored Computers tab.
-
Manually delete the User Activity Core Service app from the target server. In the target server, proceed to the Settings menu > Apps (& Features) > select Netwrix Auditor User Activity Core Service > click Uninstall. Allow the Auditor server some time to reinstall Core Service.
-
Update Core Service by manually installing the new version in the affected server − in your Auditor server, copy the
UACoreSVCSetup.exefile located by default in the following directory:C:\Program Files (x86)\Netwrix Auditor\User Activity Video RecordingCopy the
.exefile to the affected server and run it. Proceed with the installation steps to update your Core Service version.
IMPORTANT: If User Activity services were previously stopped in Auditor server, start them after deleting Core Service in target servers. This will allow Auditor server to install the new version automatically or detect the updated service. Run the following command in elevated PowerShell:
Start-Service -DisplayName "Netwrix Auditor User Activity *"
Manually update Core Service in multiple target servers − Option #1
-
Download the following PowerShell script: Uninstall Netwrix Product.
-
In elevated PowerShell in your Netwrix server, run the script to uninstall Core Service from all target servers in the User Activity monitoring plan:
. .\Uninstall-NetwrixProduct.ps1
Uninstall-UAVRAgents -VerboseNOTE: Make sure to either
cdorSet-Location -Pathto the directory containing the script. -
The output for the PowerShell script should include the
Status: Uninstalledlines.
IMPORTANT: If User Activity services were previously stopped in Auditor server, start them after deleting Core Service in target servers. This will allow Auditor server to install the new version automatically. Run the following command in elevated PowerShell:
Start-Service -DisplayName "Netwrix Auditor User Activity *"
Manually update Core Service in multiple target servers − Option #2
-
Create a temporary folder for the files used. This article implements the tmp folder located in
C:\TMP. -
Create a
.txtfile containing a list of affected servers. To automate the task, you can use the following PowerShell command:Get-ADComputer -Filter * -SearchBase "DistinguishedName_of_affected_servers_OU" | Select -Expand Name | Out-File -filepath C:\TMP\servers.txt -Encoding asciiReplace the
DistinguishedName_of_affected_servers_OUwith the actual distinguished name of the OU containing affected servers. Replace the filepath with the actual filepath for the folder used. -
Create a
delete_UAVR.batfile in the same folder. Edit it to add the following contents:@echo off
for /F "tokens=*" %%A in (servers.txt) do echo Processing %%A & wmic /node:"%%A" product where "description='Netwrix Auditor User Activity Core Service'" call uninstallSave the changes.
-
Run PowerShell as a user having permissions to uninstall applications in target servers.
-
Run the
.batfile:. .\delete_UAVR.batNOTE: Make sure to either
cdorSet-Location -Pathto the directory containing the.batfile. -
The output for each deleted Core Service in each server should include a
ReturnValue = 0line. -
Once the
.batfile finishes running, you can run it again to verify Core Service instances were deleted.
IMPORTANT: If User Activity services were previously stopped in Auditor server, start them after deleting Core Service in target servers. This will allow Auditor server to install the new version automatically. Run the following command in elevated PowerShell:
Start-Service -DisplayName "Netwrix Auditor User Activity *"