Run database discovery as a restricted Windows service We've already connected individual databases. Now let's make that discovery run as a Windows background service. By the end, you'll have a separately enrolled database collector, a local policy it can read, and a real result in the workspace. We'll use a disposable Windows Server machine and a small SQLite file. The same service account boundary matters when you configure server databases. Your administrator login and the scanner aren't the same identity. Start with an individual database collector. Give it a name that tells your team where it runs. Choose database cryptography and save the enrollment credential in a protected file. Don't put it in a command line or a shared script. This identity belongs to this device. The workspace allows database tasks while the local policy decides which database that device may inspect. You need both approvals. Before starting the service, prepare the local database policy. Here it names just one SQLite file. The directory gives administrators control and the dedicated scanner identity read access. Ordinary users can't change the policy or replace its target. There's no database password in this example. For PostgreSQL, MySQL, or SQL Server, configure credentials for the service identity using the database instructions rather than copying an interactive user's credential store. We're using the signed service component from the verified unified Windows package. The setup command takes the protected configuration and enrollment file. The install command then verifies the signed manifest, archive, approved release key, version, and minimum sequence before registering the service. These are silent installation parameters, so you can deliver them through your management system. Keep the package in a protected cache. A writable download folder isn't an appropriate installation source. Now check the service status. Running is useful, but it doesn't prove that database discovery works. Confirm the dedicated service account and security checks, then return to the agent in the workspace. Look for recent contact, the expected compiled version, and database readiness. If readiness is missing, check the policy path and the service account's access before submitting a job. Granting administrator privileges would hide the problem instead of fixing the scope. Let's submit the database task to this specific collector. Select the connection authorized by its local policy and start the scan. Follow the job until it returns a result. This is a real metadata task against our local sample file. We deliberately put a private application row in that file so the verification can check that discovery leaves it unchanged and doesn't upload the row. Open the resulting database evidence. The engine and metadata tell us what was observed. Encryption fields may remain unknown or not assessed. That doesn't mean the file is safely encrypted, and it doesn't mean discovery failed. A SQLite metadata inspection has a specific visibility boundary. Use the related SQL Cipher and server database lessons when those engines are what you need to assess. That completes the Windows service path. A distinct enrolled identity, a restricted local policy, a verified native installation, and a real database result. For this temporary demonstration, we stop and remove the service, then revoke and archive its identity. Removal and cloud revocation solve different parts of retirement. For a permanent collector, keep the service installed and continue with rollout policy monitoring and the database-specific permission checks.