Sending e-mail with CDO
CDONTs
Microsoft has discontinued the use of CDONTs on Windows 2000, Windows XP and Windows 2003. If you have used CDONTs in your ASP applications, you should update the code and use the new CDO technology.
Sending e-mail with CDO
CDO (Collaboration Data Objects) is a Microsoft technology that is designed to simplify the creation of messaging applications.
CDO is a built-in component in ASP. The URL below will provide you with some good examples on how to use CDO:
port 25 telnet example
telnet yourdomain.com 25
helo yourdomain.com
mail from: test@yourdomain.com
rcpt to: test@yourdomain.com
DATA
TestMessage
.
This is an effective method for testing the connection to port 25 of a mail server to ensure it’s allowing connections.
How to run a trace route
In Windows
Start –> Run
Open: type in cmd
Click OK
At the prompt type in:
tracert yourdomain.com
Let the trace route complete and then copy it – Right Click –> Select All
Press Enter
and then include it in your reply to support
Change RDP port for security
Server:
How do I change the Terminal Server (or RDP) listening port?
By default, Terminal Server (For Windows 2000 and Windows Server 2003) and Remote Desktop Protocol (for Windows XP and Windows Server 2003) listens on TCP port 3389.
To change the default port for all new connections created on the Terminal Server:
1. Run Regedit and go to this key:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ControlTerminal ServerWinStationsRDP-Tcp
2. Find the “PortNumber” subkey and notice the value of 00000D3D, hex for (3389). Modify the port number in Hex and save the new value.
You can now connect to the new port by using the “old” Windows 2000 Terminal Server client. A better option is to use the XP RDP 5.1 client (Download RDP 5.1). Even better, use the newer Windows Server 2003 RDP 5.2 client (Download RDP 5.2).
You’ll need to configure your TS client to connect to the new port. Although changing the connection port on the RDP clients is quite easy, you CAN also change the connection port for the TS client. See Related Articles list for more info.
Client Side:
just add the new port in the connection string when connecting via RDP i.e.
win.yourservername.com:$NEWPORT
Default port is 3389
Using SCP in Windows via SSH
In order to use SSH with SCP on a Windows server you must first install an SSH service. A great tool to use for this is CYGWIN.
After you install this service you can then use a lot of useful SSH tools such as SCP.
How to copy files from your backup Linux Server to Windows using SCP:
You must login to the Windows server and start the cygwin SSH service
Login to the backup Linux server and run the following Command:
scp $filename $Administrator@windows.yourservername.com:/
The file is then copied over to your windows server into the following folder:
C:cygwin
We usually suggesting turning off the service on the windows server once the restore is complete. This is just a security precaution since the service is rarely used.
Turn off the SSH service on the Winodws Server – service named Cygwin SSH
Enable Failed Logins in the Event Viewer
Log on as an administrator via RDP
Click Start, click Run, type mmc /a (note the space between mmc and /a), and
then click OK.
On the File menu, click Add/Remove Snap-in, and then click Add.
Under Snap-in, click Group Policy, and then click Add.
In Select Group Policy Object, click Local Computer, click Finish, click
Close, and then click OK.
At this point, you might want to save this console for further use. Note you
can add multiple snap-in and manage multiple computers from this console.
On the left hand side, navigate to Local Computer Policy > Computer
Configuration > Windows Settings > Security Settings > Local Policies >
Audit Policy
On the right hand side, double-click “Audit Logon Events”
Check the boxes for Success and Failure, click OK
The failed login attempts will be found in the Event Viewer. It will
include the time it happened, the username they used, and the IP they tried
from.
Windows winsock network and catalog log files
Reset network catalog and log file:
netsh winsock reset catalog
netsh int ip reset log.txt
view the catalog:
netsh winsock show catalog