Is there a way to manuall set domainsid

Hi all

I have installed a new UCS 5.0 on a VM
Is there any way that I can reuse the old DOMAINSID from my crashed system in order to “clone” the old domain ?
I want to avoid rejoining all computers aso.
My idea was to
-stop all relevant services
-replace the SID in the DB file
- delete Samba also and recreate it from UCS
- start all services

Rgds Lucky