Powershell: Files cannot be loaded because the running of scripts is disabled on this system

Error message when try running powershell scripts:
“files cannot be loaded because the running of scripts is disabled on this system. Please provide a valid certificate with which to sign the files”

Using this command to allow unsigned powershellscripts: “Set-ExecutionPolicy Unrestricted”

Open an elevated Powershell promt, use the command: “Set-ExecutionPolicy Unrestricted”

telnet smtp commands

Here is a mini how to use telnet to send email / or use it to test the smtp server

1. Type telnet [mailserver ip og hostname] [Port]

telnet mail.domain.com 25

2. Type helo [your hostname]

Helo mail.mymailserver.com

3. Type mail from: [a valid email address]

MAIL FROM: mail@domain.com

4. Type RCPT TO: [Receive emailaddress]

RCPT TO: testuser@domain.com

5. Type DATA

DATA

6. Type the message of the email

This is a test email

7. On a new line type .

.

 

 

 

Force Outlook Autodiscover to use SRV Record

How to force Outlook Autodiscover to only use SRV for autodiscovery

create this batch file and run it:
Outlook 2007:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\AutoDiscover]
"ExcludeHttpRedirect"=dword:00000001
"ExcludeHttpsAutoDiscoverDomain"=dword:00000001
"ExcludeHttpsRootDomain"=dword:00000001
"ExcludeScpLookup"=dword:00000001

Outlook 2010:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\AutoDiscover]
"ExcludeHttpRedirect"=dword:00000001
"ExcludeHttpsAutoDiscoverDomain"=dword:00000001
"ExcludeHttpsRootDomain"=dword:00000001
"ExcludeScpLookup"=dword:00000001