Recreate DFS Database

I use DFS alot for work, sometimes it just gets grumpy and needs to be kicked in the guts.

Deleting the database isnt easy, becuase widnows keeps a pretty tight grib on anything in SystemVolumeInformation.

Use this script to move the DFS folder and have the service create a fresh new database

Hint – Look for DFS Database events in the application log, not the DFS replication log

 

set DFSR_DB_DRIVE=C:
 
REM Removes the broken DFSR configuration database from the system
net stop dfsr
%DFSR_DB_DRIVE%
 
icacls "%DFSR_DB_DRIVE%\System Volume Information" /grant "Domain Admins":F
cd "%DFSR_DB_DRIVE%\System Volume Information"
move DFSR %DFSR_DB_DRIVE%\DFSR_backup
 
cd ..
icacls "%DFSR_DB_DRIVE%\System Volume Information" /remove:g "Domain Admins"
net start dfsr
dfsrdiag PollAD /Member:%userdomain%\%computername%

 

 

 

Original Article – http://sheeponline.net/recreate-dfsr-database.html

Fixed NIC names (eth*) on RHEL and CentOS 7

http://tristan.terpelle.be/2015/06/fixed-nic-names-eth-on-rhel-and-centos-7.html