Patching machines in multi-domain environments and workgroups