knowledge base


windows scripts



drive snapshot - backup.cmd

echo off cls net time /SET /Y DEL /Q /S "C:\$Recycle.Bin\*.*" DEL /Q "C:\Windows\SysWOW64\TmInstall.log" DEL /Q "C:\Windows\system32\TmInstall.log" DEL /Q "C:\ProgramData\Citrix\System Monitoring\Data\*.dmp" DEL /Q /S "C:\Users\2*.*" DEL /Q /S "C:\Users\4*.*" DEL /Q /S "C:\Users\6*.*" DEL /Q /S "C:\Users\7*.*" DEL /Q "C:\Windows\ServiceProfiles\LocalService\AppData\Local\*Font*.dat" DEL /S /Q "C:\Windows\Temp\*.* DEL /Q /F /S \\10.9.10.112\backup$\%COMPUTERNAME%\VORTAG1\*.* MOVE \\10.9.10.112\backup$\%COMPUTERNAME%\*.* \\10.9.10.112\backup$\%COMPUTERNAME%\VORTAG1 C:\SCRIPTE\snapshot64.exe "C:+D:" \\10.9.10.112\backup$\%COMPUTERNAME%\$disk.sna -L4096 -Gx -W -R --LogFile:\\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt ping -n 10 127.0.0.1 C:\SCRIPTE\snapshot.exe --show >> \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt echo >> \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt echo QUICKCHECK-c >> \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt echo >> \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt C:\SCRIPTE\snapshot.exe --QuickCheck:\\10.9.10.112\backup$\%COMPUTERNAME%\c.sna >> \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt echo >> \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt echo INFO-c >> \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt c:\scripte\snapshot.exe \\10.9.10.112\backup$\%COMPUTERNAME%\c.sna -I >> \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt echo >> \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txt C:\SCRIPTE\bmail.exe -s "SMTP" -p 25 -t "Receipient" -f %COMPUTERNAME%@domain.net -a BACKUP_%COMPUTERNAME% -m \\10.9.10.112\backup$\%COMPUTERNAME%\logfile.txtexit




netsh - optimize network

Netsh int tcp set global RSS=Enabled Netsh int tcp set global chimney=Disabled Netsh int tcp set global netdma=Disabled Netsh int tcp set global dca=Disabled Netsh int tcp set global autotuninglevel=Normal Netsh int tcp set global congestionprovider=none Netsh int tcp set global ecncapability=Enabled Netsh int ip set global taskoffload=disabled Netsh int tcp set global timestamps=Disabled Netsh interface tcp set global initialRto=3000 [Needs kb 2472264] Netsh interface tcp set supplemental custom minrto=20 Netsh interface tcp set supplemental custom icw=4 Netsh interface tcp set supplemental custom delayedacktimeout=10