Skip to main content

Posts

Showing posts from 2020

Unable to remove Floppy Drive

 Hello Everyone, If your getting the below error in your event log and want to remove it. The below error is caused because of Floppy Drive. so Disable it with the below settings. Error 12/5/2018 5:15:08 AM VSS 12289 None – Volume Shadow Copy Service error: Unexpected error  DeviceIoControl(\\?\fdc#generic_floppy_drive#6&2bc13940 &0&0#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b} – 0000000000000538,0×00560000,0000000000000000,0,000001F790975F90,4096, 0 ). hr = 0×80070001, Incorrect function. Error 12/5/2018 4:45:50 AM VSS 12289 None – Volume Shadow Copy Service error: Unexpected error  DeviceIoControl(\\?\fdc#generic_floppy_drive#6&2bc13940 &0&0#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b} – 000000000000055C,0×00560000,0000000000000000,0,0000028292B56260,4096, 0 ). hr = 0×80070001, Incorrect function. Error 12/5/2018 2:30:01 AM VSS 12289 None – Volume Shadow Copy Service error: Unexpected error  DeviceIoControl(\\?\fdc#generic_floppy_drive#6&2bc13940&0 &0#{53f563

How to disable Autoconfiguration IPv4 Address

  Sometime you setup windows server 2008 to vmware using LAN or wifi, you chose Bridge mode to share internet connections between host and virtual machine may be cause of issues with internet connection at virtual machine. They can not connect to the internet or appear a message likes " conflict IP address " Enter:  Run > cmd > ipconfig /all You may see the following issues: or: Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Intel(R) 82567LM-3 Gigabit Network Connection Physical Address. . . . . . . . . : 00-23-24-08-30-57 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::8508:6cb9:5112:f8c9 (Preferred) Autoconfiguration IPv4 Address. . : 169.254.248.201(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.0.0 IPv4 Address. . . . . . . . . . . : 192.168.1.136(Duplicate) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway

Script to kill the SMTP service when the folders in mailroot reaches to a certain number

Hi All, Today I am going to give you a script . When the folders of SMTP service like pickup, badmail, Drop and queue becomes full or reaches to some number the below script will kill the SMTP process and will again start the process.  and a output log file will be created when the process is killed. Modify the below script as per you environment. @echo off set /a c=1 for /f %%i in ('dir C:\inetpub\mailroot\Pickup  ^| findstr /i /c:"file(s)"') do set count=%%i if %count% gtr 10 (      for /f "tokens=2 delims= " %%P IN ('tasklist /FO Table /M "SMTPSVC*" /NH ') DO (TASKKILL /F /PID %%P)     net start smtpsvc echo %date%      %time%       %count% - Pickup Folder has reached the limit >>"C:\smtp.log"      ) endlocal for /f %%i in ('dir C:\Inetpub\mailroot\Queue ^| findstr /i /c:"file(s)"') do set count=%%i echo count=%count% if %count% gtr 10   (      for /f "tokens=2 delims= "

Script to restart SMTP Service after the Inetpub folder size increases to a certain number

Hi Guys, Today I am going to give you a script which can be set in the scheduled tasks and made to run every 1 Hrs or as per your wish. Once this script runs it will check the 4 folders in Mailroot and see if its reached the limit (10) which you have set in the script and restarts the SMTP service.     This will prevent the SMTP service hung and many problems which are associated with SMTP server. The script is given below Copy it in notepad and save it as .bat extension so that it becomes a batch script. @echo off setlocal set /a count=0 for /f %%i in ('dir E:\Inetpub\mailroot\Badmail  ^| findstr /i /c:"file(s)"') do set count=%%i echo count=%count% if %count% GTR 10 (         net stop smtpsvc & net start smtpsvc     ) endlocal for /f %%i in ('dir C:\Inetpub\mailroot\Drop  ^| findstr /i /c:"file(s)"') do set count=%%i echo count=%count% if %count% GTR 10 (         net stop smtpsvc & net start smtpsvc     ) endlocal