Tag: windows server

Awesome Tool and Diagnostic Util

I just found this very useful tool, especially if you are dealing with Azure VMs.

AzureTools

This is the tool used by the Azure Developer Support Team. You can install it while on a VM using Powershell by running the following in a Powershell command window:

md c:\tools; Import-Module bitstransfer; Start-BitsTransfer http://dsazure.blob.core.windows.net/azuretools/AzureTools.exe c:\tools\AzureTools.exe; c:\tools\AzureTools.exe

For more info see https://blogs.msdn.microsoft.com/kwill/2013/08/26/azuretools-the-diagnostic-utility-used-by-the-windows-azure-developer-support-team/

 

 

Testing an SMTP Service using telnet

Here’s a quick way to manually test your SMTP service.

The best plan is to run this test on the server first (ensure that localhost or 127.0.0.1 is allowed to access the service) and then from a remote client next.

Follow these steps

(the response examples are those returned against a Windows 2008 R2 Server SMTP Service):

  1. Type Telnet <server name or IP> 25 at a command prompt, and then press ENTER.

    The output should look something like:
    220
    CP5-15164 Microsoft ESMTP MAIL Service, Version: 7.5.7600.16601 ready at  Fr
    i, 16 Sep 2011 11:23:30 +0100

  2. Type ehlo, and then press ENTER.

    The output resembles the following: 
    250-CP5-15164 Hello [127.0.0.1]
    250-TURN
    250-SIZE 2097152
    250-ETRN
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-8bitmime
    250-BINARYMIME
    250-CHUNKING
    250-VRFY
    250 OK

  3. Type mail from:email@domain.com, and then press ENTER.

    The output resembles the following:
    250 2.1.0 email@domain.com….Sender OK

  4. Type rcpt to:youremail@domain.com, and then press ENTER.

    The output resembles the following:
    250 2.1.5 youremail@domain.com

  5. Type Data, and then press ENTER.

    The output resembles the following:
    354 Start mail input; end with <CRLF>.<CRLF>

  6. Type Subject:Test # subject, and then press ENTER two times.
  7. Type Test # body, and then press ENTER.
  8. Press ENTER, type a period (.), and then press ENTER.

    The output resembles the following:
    250 2.6.0 <CP5-151641XvpFVjCRG00000007@CP5-15164> Queued mail for delivery

  9. Type quit, and then press ENTER.

    The output resembles the following:
    221 2.0.0 CP5-15164 Service closing transmission channel

How to bulk unblock files in Windows 7 or Server 2008

In Windows 7 (actually any of the latest Windows releases) you will find that files copied to your local drives are not trusted until you right-click on them and in the properties click the ‘Unblock’ button. This is all very well for one or two files, but gets extremely tedious with more. It turns out to be related to NTFS’s ability to allow alternate data streams.

So here is a simple method of mass or bulk unblocking files.

  1. Download the Sysinternals Streams.exe from http://technet.microsoft.com/en-us/sysinternals/bb897440.aspx
  2. I find Sysinternals so useful I create a ‘SysInternals’ folder on my C: drive and then put this into my ‘path’ environment variable so that I can run them from anywhere. However, if this is too much then the easiest is to copy the streams.exe to the root folder you wish to have files unblocked.
  3. In a command windows (with Admin privileges), use ‘cd’ to navigate to your folder.
  4. Type the command ‘streams –s –d subfoldername’ and press enter.