Tuesday, September 11, 2012

How to determine the version of Exchange and Exchange Service Pack level

http://support.microsoft.com/kb/152439

Also try running the following commandlet from an Exchange Management Shell:
Get-ExchangeServer -Identity ExServer1 | Format-Table Name, AdminDisplayVersion
Full list of the Exchange Server Updates with build numbers and release dates:
https://technet.microsoft.com/en-us/library/hh135098(v=exchg.150).aspx 

Sunday, September 9, 2012

Create Self-Signed Certificates for Exchange 2010

http://careexchange.in/how-to-use-a-self-signed-certificate-in-exchange-2010/

Also make sure to download the CA root certificate from step 16 and install the CA Root Cert onto all client computers.

Hyper-V 2012 Notes

To enable PING on Hyper-V Server 2012:
netsh firewall set icmpsetting 8
To enable File & Printer Sharing through filewall:
netsh advfirewall firewall set rule group=”File and Printer Sharing” new enable=Yes
To install .NET Framework 3.5 on Hyper-V Server 2012:
dism.exe /online /enable-feature /featurename:NetFX3ServerFeatures
dism.exe /online /enable-feature /featurename:NetFX3
To get a list of features on Hyper-V Server 2012:
dism.exe /online /Get-Features
Utility to backup virtual machines running on Hyper-V Server:
http://hypervbackup.codeplex.com
Create a Scheduled task to run daily at 10pm:
schtasks.exe /Create /SC DAILY /ST 22:00 /TN BACKUP /TR c:\pathto.cmd

Tuesday, August 7, 2012

How to setup a custom port for Smarthost in SBS2008

Here is how you can set up a custom SMTP port when using a Smarthost in Small Business Server 2008.

  1. Log into the server with administrative rights.
  2. Click on Start -> All Programs -> Microsoft Exchange Server 2007 -> Exchange Server Console.
  3. Click on Organization -> Hub Transport -> Send Connectors tab.
  4. Make a note of the name of your send connector (ex. Windows SBS Internet Send SERVERNAME)
  5. Click on Start -> All Programs -> Microsoft Exchange Server 2007, then right click on Exchange Server Shell and select open as administrator. Accept the UAC prompt
  6. Type in the following command: set-sendconnector –identity ‘Windows SBS Internet Send SERVERNAME’ –port 465
  7. Port 465 must match the Smarthost settings.

Thursday, June 7, 2012

How to receive an e-mail alert when your linux server or linux VPS restarts

Here is a quick tip on how to receive an e-mail alert if your linux server or linux VPS restarts:

1. Log into your linux server or VPS using ssh.
2. Type in crontab -e into the commandline.
            Depending on the default text editor, it could be nano or vi. Here are the directions for vi:
3. Press insert button on your keyboard.
4. Then type in @reboot echo "Rebooted, now online" | mail -s "`hostname` REBOOTED" you@yourdomain.com
5. Then type in :wq to save and quit the vi text editor.

If your default text editor is nano, then the commands to type in are:

3. Find a new line or create one by pressing the Enter key.
4. Now type in on one line:
@reboot echo "Rebooted, now online" | mail -s "`hostname` REBOOTED" you@yourdomain.com
5. Then press CTRL and X on the keyboard to save.
6. Press Y to save the changes. Press Enter to exit.

If you want to send the e-mail to multiple people, edit the line to show this instead:
@reboot echo "Rebooted, now online" | mail -s "`hostname` REBOOTED" -c "user2@yourdomain.com" you@yourdomain.com

Now you will receive an e-mail alert when your server or VPS reboots. Very handy in troubleshooting issues with your VPS provider or your own server.

Sunday, April 8, 2012

How to Delete Stuck Print Jobs

Here's a BAT/CMD file that you can use on Windows 2000/NT/XP/Vista/7 that allows you to quickly delete stuck print jobs, delete the entire print queue.

1. Create a new BAT/CMD file on your desktop using Notepad.
2. Add the following content:
net stop spooler
del %systemroot%\system32\spool\printers\*.shd
del %systemroot%\system32\spool\printers\*.spl
net start spooler

3. Save the file and leave it on your desktop.

Optional:
If running Windows Server 2003, Windows SBS 2003, Windows Server 2008, Windows SBS 2008, or Windows SBS 2011 AND use Fax Services, then you need to add a couple of lines to the file:

net stop fax
net stop spooler
del %systemroot%\system32\spool\printers\*.shd
del %systemroot%\system32\spool\printers\*.spl
net start spooler

net start fax

Fix problems with Cut/Copy/Paste not working when using Remote Desktop

Occasionally when using mixed OS environments and running Remote Desktop Client between the computers, you might have an issue where Cut/Copy/Paste stops working, or only listens to local clipboard content. This seems to happen mostly when connecting to remote Windows XP computers. Here's a quick way to fix the problem (not a permanent fix unfortunately).

1. Create a BAT/CMD file.
2. Open file in Notepad or whatever editor you want to use, and add the following content:
taskkill /im rdpclip.exe
start rdpclip.exe
3. Save the file and leave it on your Windows XP desktop.

Next time the issue happens, run that file to fix the issue. It will only fix it during that Remote Desktop session.