Monday, 23 December 2013

Outlook Attachment &Subject Reminder Macro

Outlook Attachment  Reminder Macro

 How to set it up:

1. Open Outlook.
2. Press Alt+F11 : This will open the Visual Basic editor.
3. Expand the project until you find “ThisOutlookSession” and select it.
4. Copy the code below into the Visual Basic code window.

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim lngres As Long
If InStr(1, Item.Body, "attach") Or InStr(1, Item.Subject, "attach") <> 0 Then
If Item.Attachments.Count = 0 Then
lngres = MsgBox("word 'Attach' found, but no attachment - send anyway?", _
vbYesNo + vbDefaultButton2 + vbQuestion + vbSystemModal, "You asked me to warn you...")
If lngres = vbNo Then Cancel = True
End If
End If

If InStr(1, Item.Body, "include") Or InStr(1, Item.Subject, "include") <> 0 Then
If Item.Attachments.Count = 0 Then
lngres = MsgBox("word 'include' found, but no attachment - send anyway?", _
vbYesNo + vbDefaultButton2 + vbQuestion + vbSystemModal, "You asked me to warn you...")
If lngres = vbNo Then Cancel = True
End If
End If

If InStr(1, Item.Body, "enclose") Or InStr(1, Item.Subject, "enclose") <> 0 Then
If Item.Attachments.Count = 0 Then
lngres = MsgBox("word 'Enclose' found, but no file enclosed - send anyway?", _
vbYesNo + vbDefaultButton2 + vbQuestion + vbSystemModal, "You asked me to warn you...")
If lngres = vbNo Then Cancel = True
End If
End If
End Sub

 
5. Save.

Now to test:

6. Close & Reopen Outlook for good measure.
7. Write an email containing the word attach.
8. Click send. *This is when you should get the pop-up.

How to set it up:

1. Open Outlook.
2. Press Alt+F11 : This will open the Visual Basic editor.
3. Expand the project until you find “ThisOutlookSession” and select it.
4. Copy the code below into the Visual Basic code window.
5. Save.
Now to test:
6. Close & Reopen Outlook for good measure.
7. Write an email containing the word attach.
8. Click send. *This is when you should get the pop-up.
- See more at: http://www.businesshut.com/outlook-macros/outlook-attachment-reminder-macro/#sthash.F0RRLyFo.dpuf

How to set it up:

1. Open Outlook.
2. Press Alt+F11 : This will open the Visual Basic editor.
3. Expand the project until you find “ThisOutlookSession” and select it.
4. Copy the code below into the Visual Basic code window.
5. Save.
Now to test:
6. Close & Reopen Outlook for good measure.
7. Write an email containing the word attach.
8. Click send. *This is when you should get the pop-up.
- See more at: http://www.businesshut.com/outlook-macros/outlook-attachment-reminder-macro/#sthash.F0RRLyFo.dpuf

Outlook Attachment Reminder Macro

Outlook Attachment Reminder Macro

Outlook Attachment Reminder Macro

Outlook Attachment Reminder Macro

Wednesday, 31 July 2013

Upgrade SVN in Ubuntu 12.04

Follow below steps to Upgrade svn from 1.6 to 1.7

# echo "deb http://opensource.wandisco.com/ubuntu lucid svn17" | sudo tee /etc/apt/sources.list.d/svn.list
# sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
# sudo apt-get update
# sudo apt-get install subversion

That should do the trick!!!

Thanks to : http://kovshenin.com/2013/subversion-1-7-on-ubuntu-12-04/

Wednesday, 27 February 2013

Append shell commands to history immediately

 When working with multiple terminals you can always face ssh timeout which will result in loss of command history of the particular session.

To prevent this, Add below line in "/etc/bash.bashrc" file

export PROMPT_COMMAND='history -a'

After logoff login, every time a shell command runs it will be immediately stored in history file.

That should do the trick!!!

Enable Timestamp in bash history for all users

Time Stamp in Linux history can save you from many tight corners.

To enable this, please add below line to "/etc/bash.bashrc" file

HISTTIMEFORMAT="%d-%h-%Y %T "

Logoff login will enable time stamp in history like below example

57  03-Jan-2013 07:15:22 history

That should do the trick!!!

How to Prevent Emails from Going to the Junk Email Folder



Marking Email and Senders as "Not Junk"


Open Microsoft Outlook
Go to the Inbox Screen
Select the "Junk E-mail" folder
A list of mail items will appear on the right preview pane.


Right click on each mail item that is not considered junk
Scroll to and select Junk E-mail
Scroll to and click on "Mark as Not Junk..."


Follow the prompts to confirm each sender you would like to continue to receive mail from.
All mail from that sender will now be directed to the inbox instead of Junk e-mail folder.


Adding a Sender to the Safe Sender List

Mail that is screened by Outlook is diverted to a Junk E-mail folder. Mail that is filtered and identified as SPAM by SPAM SOAP is identified by a message sent to your mailbox from SPAM SOAP.

If mail is going to the Junk E-mail folder open your Junk E-mail folder. If you have moved the mail to a new folder, open that folder.



Right click on the message and scroll to Add Sender to Safe Senders List.
If mail from a specific domain is going to the Junk E-mail folder select the option to Add Sender's Domain (@example.com) to Safe Senders List. It is recommended that you use this option sparingly and avoid adding sender domains that are known to be havens for SPAMMERS such as Hotmail, Yahoo, and Gmail.
Once added to the Safe Senders List your Outlook will need to be open and running for the rule to be active.  Known as a "client-side rule" these filters will not work though Outlook Web Access https://mail.business.uconn.edu unless the PC that is running the rule has Outlook Running.

Monday, 26 November 2012

Component MSCOMCTL.OCX or one of its dependencies not correctly registered

MSCOMCTL.OCX error screenshot:
Error MSCOMCTL.OCX Screenshot

How to Correct or fix this dependency error:
    1. First search your local drive for MSCOMCTL.OCX to see if it is missing. The path to the file is typically: C:\WINDOWS\system32 if you are running Windows XP
    2. If the file is missing you can download it HERE
    3. Once downloaded, click the MSCOMCTL.exe and extract the file to your C:\WINDOWS\system32 directory
Extracting the MSCOMCTL.OCX file

Note: Some users may need to perform this additional step to register the file:

  1. Click Start -> Run and type REGSVR32 MSCOMCTL.OCX

 

 

Wednesday, 14 November 2012

How to Manage Auto Archive in Outlook 2010

If you want to keep Outlook 2010 clean and run faster, one method is to set up the AutoArchive feature. Today we show you how to configure and manage the feature in Outlook 2010.
Using AutoArchive allows you to manage space in your mailbox or on the email server by moving older items to another location on your hard drive.
Enable and Configure Auto Archive
In Outlook 2010 Auto Archive is not enabled by default. To turn it on, click on the File tab to access Backstage View, then click on Options.
1autoarchive
The Outlook Options window opens then click on Advanced then the AutoArchive Settings button.
2autoarchive
The AutoArchive window opens and you’ll notice everything is grayed out. Check the box next to Run AutoArchive every…
Note: If you select the Permanently delete old items option, mails will not be archived.
3autoarchive
Now you can choose the settings for how you want to manage the AutoArchive feature. Select how often you want it to run, prompt before the feature runs, where to move items, and other actions you want to happen during the process. After you’ve made your selections click OK.
4autoarchive
Manually Configure Individual Folders
For more control over individual folders that are archived, right-click on the folder and click on Properties.
6autoarchive
Click on the AutoArchive tab and choose the settings you want to change for that folder. For instance you might not want to archive a certain folder or move archived data to a specific folder.
7autoarchive
If you want to manually archive and backup an item, click on the File tab, Cleanup Tools, then Archive.
8autoarchive
Click the radio button next to Archive this folder and all subfolders. Select the folder you want to archive. In this example we want to archive this folder to a specific location of its own.
9autoarchive
The .pst files are saved in your documents folder and if you need to access them at a later time you can.
10autoarchive
After you’ve setup AutoArchive you can find items in the archived files. In the Navigation Pane expand the Archives folder in the list. You can then view and access your messages.
11autoarchive
You can also access them by clicking the File tab \ Open then Open Outlook Data File.
12autoarchive
Then you can browse to the archived file you want to open.
10autoarchive
Archiving old emails is a good way to help keep a nice clean mailbox, help speed up your Outlook experience, and save space on the email server. The other nice thing is you can configure your email archives and specific folders to meet your email needs.

Thursday, 4 October 2012

Schedule Auto Send & Receive in Microsoft Outlook

If you use Outlook as your email client, you might want to schedule how often it checks for new messages. Today we show you how to schedule how often auto send/receive occurs.
If you’re busy during the day and need to keep up with your emails, you might want want Outlook to check for new messages every few minutes. Here we’ll show how to schedule it in Office 2010, 2007, and 2003 for a busy inbox where you want to keep on top of your important emails.

Outlook 2010
To schedule Auto Send/Receive in Outlook 2010, click on the File tab then Options.
1sendrec
The Outlook Options window opens…click on Advanced and scroll down to Send and receive and click on the Send/Receive button.

In the Send/Receive Groups window under Setting for group “All Accounts” check the box Schedule an automatic send/receive every…minutes. It is set to 30 minutes by default and you can change the minutes to whatever you want it to be. If you’re busy and want to keep up with your messages you can go as low as every one minute.

You can also get to the Send/Receive groups by selecting Send/Receive tab on the Ribbon and then Define Send/Receive Groups.


Outlook 2007
To select the send/receive time intervals in Outlook 2007, open Outlook and click on Tools \ Options.

Click on the Mail Setup tab, check the box next to Send immediately when connected then the Send/Receive button.

Now change the schedule to automatically send/receive.

You can also access the Send/Receive Groups section by going to Send/Receive > Send/Receive Settings and Define Send/Receive Groups.


Outlook 2003
In Outlook 2003 click on Tool \ Options…

Click on the Mail Setup tab then check Send immediately when connected, then the Send/receive button.

Then set the amount of time between send/receive attempts.

If you live out of Microsoft Outlook and want to keep up with messages, setting the automatic send/receive minutes will keep you up to date.

Wednesday, 12 September 2012

How to Disable and Enable USB Device in Linux

Follow the steps

1) Add this line “blacklist usb_storage” to the end of /etc/modprobe.d/blacklist.conf
To add : Open a Terminal by using Ctrl+Alt+T or Applications->Accessories->Terminal. You need to have root access to do this tweak. Copy and paste the following command in the Terminal. Type the password for the user, when prompted.

$ sudo gedit /etc/modprobe.d/blacklist.conf

The above command will open the blacklist.conf file in gedit. You can use any editor to edit this file like vim, gvim, emacs etc., Now copy and paste this line “blacklist usb_storage” at the end of the file. After adding this save it and close the gedit. Check the below screen shot.

2) Add this line “modprobe -r usb_storage” before exit 0 in /etc/rc.local
To add : Copy and paste the following command in the Terminal. Type the password for the user, if prompted.

 $ sudo gedit /etc/rc.local

The above command will open the rc.local file in gedit. Now copy and paste this line “modprobe -r usb_storage” before the last line of the file. After adding this save it and close the gedit. Check the below screen shot for Fedora and Ubuntu.

For Ubunntu:

For Fedora:

Now restart your system.

To Mount USB device
Open a Terminal and use the following command. Type the password for the user, when prompted.

$ sudo modprobe usb_storage

To Unmount the USB device

Use “safely remove drive” by right click on the device, then run the below command in the Terminal. Type the password for the user, when prompted.

$ sudo rmmod usb_storage

Hope this will be helpful for you!!

 

Friday, 7 September 2012

Make Backspace Key Work Correctly in Firefox on Linux

 

Type about:config into the address bar :

then 

filter by the following key:

 browser.backspace_action

image

Double-click on the item in the list and change the value to 0.



The change should be immediate – you can hit the backspace key to go right back to whatever you were doing (probably reading this)
This tip should work on any platform… I’m not sure if all versions of Linux have the same annoyance, but at least Ubuntu does.

Wednesday, 29 August 2012

Synchronize/Update Time on Active Directory DC 

 

Thanks for those great guys mentioned this in the SBTG blog...
 
To update time with network time provider run the below commands...
 
On the main DC:
NET TIME /SETSNTP:time.windows.com
NET STOP W32TIME
NET START W32TIME
W32TM /config /reliable:YES
W32TM /resync /rediscover

On all other DCs:
W32TM /resync /rediscover

that should do the trick!!!

Enable / Disable Change Of Date And Time On Windows XP

 

Go to Start > Control Panel > Administrative Templates

Open
Local Security Policy

Go to
Local Policy > User Rights Assignments > Change the System time, double click to open it.

Add and remove user groups. Remove the limited users from this list and those limited users will not be able to edit date and time of this compute. Add users who need access to change date / time


that should do the trick!!!

SEP 12 network threat protection not showing in GUI

 

After installing full package of SEP 12 you may not see Network Threat protection in SEP GUI.

This can be solved by following below steps.


1. Open cmd using run as administrator option,


2. Change to directory containing smc.exe and smcgui.exe (usually the bin directory inside installed directory, in my case C:\Program Files\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Bin)


3. run command "
smc -stop", wait till symantec management console stops.

4. run command "
smcgui.exe /UNREGSERVER"
  5. run command "smcgui.exe /REGSERVER"
 
6. run command "
smc -start", Check by opening SEP GUI, Network Threat protection will be available now.

 
that should do the trick!!!

disable mails from CRON

 

This will help you disable email which are sent from cron whenever it runs.

Edit/Open your cron jobs

 
$ crontab -e


At the top of the file, enter:
 
MAILTO=""


Save with :wq and restart cron


$ /etc/init.d/crond restart



 
that should do the trick!!!

Install Webmin in CentOS 6, RHEL 6

 

Follow below steps to install webmin (Web based Administration Console) in Redhat based Linux systems

Install the Webmin Repository


# vi /etc/yum.repos.d/webmin.repo
input following lines,

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

quit by saving ":wq"

# rpm --import http://www.webmin.com/jcameron-key.asc

# yum install webmin

That should do the trick!!!

Disable Account Changes in Outlook Express

Open registry and create below key

System Key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Outlook Express]
Value Name:
No Modify Accts
Data Type:
REG_DWORD (DWORD Value)
Value Data:
(0 = default, 1 = enable restriction)
 

If you are an admin managing network computers, before trying to make any changes to account setting use regedit option "connect to network registry" in admin privileged login and change values to enable before going to edit in user login


that should do the trick !!!

How to disable Ctrl+Alt+Del restarting in CentOS

 

In CentOS, the action taken when Ctrl+Alt+Del pressed is based on the configuration file located in 
 
 
"/etc/init/control-alt-delete.conf" 

Just disable the line which specifies the restart action.

 
vi /etc/init/control-alt-delete.conf


comment the line

#exec /sbin/shutdown -r now “Control-Alt-Delete pressed”

:wq (save and exit)
 

that should do the trick!!!

How to disable Ctrl+Alt+Del restarting in Ubuntu 

 

In Ubuntu, the action taken when Ctrl+Alt+Del pressed is based on the configuration file located in 
 
"/etc/event.d/control-alt-delete

Just disable the line which specifies the restart action.
 

sudo vi /etc/event.d/control-alt-delete


comment the line

#exec /sbin/shutdown -r now “Control-Alt-Delete pressed”

:wq (save and exit)


that should do the trick!!!

Network stucks at acquiring ip address in Windows XP

 

In Windows XP, Network does not acquire IP automatically and stucks forever at acquiring network address,

The possibilities are,


1.
DHCP Service not running - Go to Start -> Run -> services.msc and start DHCP Client service and make it automatic.

2. Bad Network Cable - Replace Cable


3. Bad NIC Card - Service or Replace Network Card

that should do the trick !!!

Unable to Add Printer in Windows XP

 

When trying to add a printer you receive a error "Unable to add printer. Operation could not be completed" Error and you receive error 126 in event log for these instance.


Solution:


In "Printers and Faxes" remove all printers and go to File menu, select Server Properties.


In Server Properties, open drivers tab and delete printer drivers


Stop Print Spooler Service.


Then go to %windir%\system32\spool\drivers\w32x86\3 directory


Backup the directory and remove all files and folders inside it


Start Print Spooler Service


Now you will be able to add printers.


If you  have problems with adobe PDF printer after following above steps, copy files related to adobe pdf from backup in the %windir%\system32\spool\drivers\w32x86\3 directory.


That should do the trick!!!