TechShizz | All posts tagged 'Fault Finding'

Divert a copy of NDR to a specific user/contact




Running this command sets a Divert (copy) to a specified user so that we can look at the NDR email reports. If your administering an exchange externally, just create a contact for your own email address and use that.

To send a copy of internal NDRs run:


Set-OrganizationConfig -MicrosoftExchangeRecipientReplyRecipient JonJones

To send a copy of external NDRs run:

Set-TransportConfig -ExternalPostmasterAddress [email protected]

Flush DNS on Multiple machines

Get a list of computers: dsquery computers, format it to a single column of computer names and save it to a file computers.csv on c:\


Put psexec on the source machine.




Psexec @c:\computers.csv ipconfig /flushdns

Windows Update Fix

If windows update fails to install try this:
Step by step instructions to get the issue fixed.


a) Press Windows key + X and select Command Prompt (Admin).


b) On the open Command Prompt window copy and paste the commands (all at once)


net stop wuauserv


net stop cryptSvc


net stop bits


net stop msiserver


ren C:\Windows\SoftwareDistribution SoftwareDistribution.old


ren C:\Windows\System32\catroot2 catroot2.old


net start wuauserv


net start cryptSvc


net start bits


net start msiserver


c) Wait for the process to complete.


d) Close the Command Prompt.



Now, try to install Windows Updates again and check if it helps.




I was getting this error too, but solved removing a value from registry:

  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability
    • ThresholdOptedIn

How is my registry now (downloading updates):

Test SMTP Email with Telnet

In this example I'll email from [email protected] to [email protected]


First ID the SMTP server via it's MX record:


Nslookup -q=mx


From a Telnet client run:


Telnet 25


At this point you should get a 220 response which means everything is OK up to this point.


Helo    <  just type the domain after helo - (not important)


Mail from: [email protected]


250 OK


Rcpt to: [email protected]



This is a test - Ignore


    < Hit Enter then  <Period Key> then enter to submit.


250 OK