TechShizz | All posts tagged 'Fault Finding'

Divert a copy of NDR to a specific user/contact

NDR

 

Technet: https://technet.microsoft.com/en-us/library/bb400930(EXCHG.80).aspx


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 Postmaster@mydomain.com

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):


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.

 

Run:

 

Psexec @c:\computers.csv ipconfig /flushdns

Test SMTP Email with Telnet

In this example I'll email from test@outlook.com to rich@techshizz.com

 

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

 

Nslookup -q=mx techshizz.com

 

From a Telnet client run:

 

Telnet mail.techshizz.com 25

 

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

 

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

 

Mail from: test@outlook.com

 

250 OK

 

Rcpt to: rich@techshizz.com

 

Data

This is a test - Ignore

.

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

 

250 OK

 

Quit