Can I mass uninstall or migrate Windows Roaming Clients?
AnsweredWe set Datto RMM to install DNS Filter automatically to a group of client sites in RMM that correspond to our various organizations inside of DNS filter and used site variables to have each site use their own NKEY but use the same generic script for installation, RMM is supposed to call on the site variable to fill in the needed information when installing.
Instead, it put all the DNS Filter agents into our first organization instead of into the respective orgs. Is there a way we can move roaming clients to a different org? Or are we going to have to fully uninstall the agent and re-install it one by one?
-
Official comment
At this time, there is no direct way in-app to migrate Roaming Clients or complete a mass uninstall. However, you can utilize the commands provided in our help center article for a mass uninstallation of Windows Roaming Clients.
Alternatively, you can reassign the organization associated with your Roaming Clients by changing your Site Key to the appropriate organization's Key in the $newSiteKey variable included below. Keep in mind that taking this route is not uninstalling the Roaming Client, so the organization that these were originally installed under will remain listed (with no traffic) until deleted manually:
# Define the registry key and values
$regKey = "HKLM:\SOFTWARE\DNSFilter\Agent" # Replace with "HKLM:\SOFTWARE\DNSAgent\Agent" for whitelabel
$newSiteKey = "your_network_Key_here"
# Define the service name
$serviceName = "DNSFilter Agent" # Replace with "DNS Agent" for whitelabel
# Delete the ClientID registry value
try {
Remove-ItemProperty -Path $regKey -Name ClientID -Force
Write-Output "Deleted registry value: $regKey\ClientID"
} catch {
Write-Error "Failed to delete registry value: $regKey\ClientID. Error: $_"
}
# Modify the NetworkKey registry value
try {
Set-ItemProperty -Path $regKey -Name NetworkKey -Value $newSiteKey
Write-Output "Modified registry value: $regKey\NetworkKeyto $newSiteKey"
} catch {
Write-Error "Failed to modify registry value: $regKey\NetworkKey. Error: $_"
}
# Restart the service
try {
Restart-Service -Name $serviceName -Force
Write-Output "Restarted service: $serviceName"
} catch {
Write-Error "Failed to restart service: $serviceName. Error: $_"
}
Please sign in to leave a comment.
Comments
1 comment