for %%i in (%systemroot%/system32/*.dll) do regsvr32.exe /s %%i
cd /d %temp%
del *.* /s /q
net share ipc$ /delete
net share admin$ /delete
net share c$ /delete
net share d$ /delete
net share e$ /delete
net stop mssqlserver
net start mssqlserver
for %%i in (%systemroot%/system32/*.dll) do regsvr32.exe /s %%i
cd /d %temp%
del *.* /s /q
net share ipc$ /delete
net share admin$ /delete
net share c$ /delete
net share d$ /delete
net share e$ /delete
net stop mssqlserver
net start mssqlserver