Fixed some bugs with overwritten configuration and copying from netlogon