Bill-Stewart / SyncthingWindowsSetup

Syncthing Windows Setup
Mozilla Public License 2.0
1.26k stars 54 forks source link

Error: Installation for all users is not permitted on a domain controller #41

Closed zzbe closed 2 months ago

zzbe commented 2 months ago

I would just like to know what is the reason for this and if there is a way to circumvent this? (So far installing an older release works.)

Bill-Stewart commented 2 months ago

Yes, this is by design because account creation would result in creation of a domain account, and there's not a way to synchronize the account password across multiple DCs in a domain. What is the reason you would want to install the Syncthing service on a DC?

zzbe commented 2 months ago

Well, we only have a single DC so I don't have many options and I'm not wasting another VM just to run syncthing. I don't see how in a multi DC environment SyncthingServiceAcct wouldn't sync just like any other account and honestly it doesn't even matter. I'm using Syncthing on a DC just as an intermediate to sync few important files between PCs.

Anyway, for now installing an older version works just fine – it updates and everything. Was just wondering for the future, when that might not be the case anymore.

Bill-Stewart commented 2 months ago

I don't see how in a multi DC environment SyncthingServiceAcct wouldn't sync just like any other account...

Because if you install the Syncthing service on a different DC, the password would no longer be in sync and the service would only start on the latest installed DC (as that's the install that last set the service account's password).

Rather than installing the service, I would recommend creating a Group Managed Service Account (gMSA) instead and run Syncthing using a scheduled task. This would be more secure and there wouldn't be any password complications.

zzbe commented 2 months ago

Ok, now I understand what you mean. Still, I'd appreciate it if you could add some '--ignore-dc-error' flag to let it go through. (I only ever need it to run on a single DC, even if I added more.)

I'll look into gMSA when I have more time.