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!!!

FTP Users with /bin/false shell not able to login to ftp site

 

It is common to have user shell under "/bin/false" to restrict ftp users from logging through SSH

It also prevents the user from logging in to ftp also. This can be solved by following below steps.

# vi /etc/pam.d/vsftpd


auth   required        pam_shells.so (
Comment this line by adding a "#" in the front)

That should do the trick!!!

Add Prefix or Suffix using Notepad++ 

 

Notepad++ is a great text document editor.

When a prefix or suffix need to be added to all lines in a text document, search and replace function of Notepad++ can be used.

Check out the image which shows how to do this.


In Find What enter "^(.+)$" without the quotes, in replace with column enter "<Prefix>\1" to add prefix or "\1<Suffix> to add suffix. Where <Prefix> and <Suffix> are the data you want to insert.

Also, make sure to keep the search mode in "Regular expression"

That should do the trick!!!

Tuesday 28 August 2012

How to password-protect a file with Adobe

 
See this video..
http://tv.adobe.com/watch/acrobat-tips-and-tricks/protecting-your-pdf-using-a-password/

 A lot depends on what version of Acrobat you are using.

 On Acrobat 8 Pro, you select File->Properties and under Security tab, select Security Method from dropdown list to be "Password Security." A new dialog opens that allows you to determine the options as to what will be secure regarding the document: does it require a password just to open it?
or can it be opened, but no changes/copying/printing allowed. You set all that up, enter the password and confirm that entry, and it's done when you save that document.


 With other (earlier) versions of Acrobat, the command for setting passord is still under the File menu (it might read Document Properties or Document Security) and the interface is basically the same with respect to setting options.

Wednesday 8 August 2012

Boot Windows 8 into Safe Mode

 

We all have gotten accustomed to pressing either F2 or F8 to get the advanced boot options since Windows 2000, probably even before that. In every version of Windows, you always could count on the slower boot process to actually press the key when the text message appeared.
press f8 for boot
Well, those days are gone! In Windows 8, the boot time has been dramatically decreased and the screenshot you see above appears for about 200 milliseconds and that’s it! So if you want to get into Safe Mode in Windows 8, you have to go a different route. Instead of the Advanced Boot Options of earlier versions of Windows, you now first have to go through the System Recovery Options of Windows 8. It’s pretty much the same thing, but just looks a lot nicer and you have to click a few more menu options to get there. Here’s how.

Startup Windows 8 in Safe Mode

To get started, you first need to boot Windows 8 into the System Recovery Options. You can read my previous post on how to do that; there are basically three methods. Once you are there, you need to click on the Troubleshoot option.
troubleshoot windows 8
On the next screen, you need to click on Advanced Options.
advanced options
Then you need to click on Startup Settings on the last dialog.
startup settings
Finally, you have to click on the Restart button, which will give you options to start up in low-resolution mode, debugging mode, enable boot logging, and start in safe mode! Kind of a long process, but that’s the new way.
safe mode
Now you will finally get to the Startup Settings screen, where you can press 1 thru 10 or F1 thru F10 to pick your different settings. Press 4 or F4 to enable Safe Mode.
enable safe mode
That’s it! Windows 8 will now load in Safe Mode! You’ll have to type in your password to log in once it starts back up. I noticed that while in Safe Mode in Windows 8, I could not bring up the Charms bar. Not sure why, but I could not figure out how to restart the system. What I ended up doing was going to the Start Screen, then clicking on my name at the top and there was an option to signed out. Once I signed, there was an option to Shutdown or Restart when I clicked on the Power button at the bottom right. So if you’re stuck in Safe Mode and can’t get out, that’s how do to it.
Also, it should be noted that you can use the MSCONFIG utility to startup in safe mode also. Go to the Start Screen, right-click, then choose All apps and then click on Run.
run command
Next, type in msconfig in the run dialog and then click on the Boot tab:
boot tab
Check the box that says Safe boot and then choose an option. You can pick from:
Minimal – Normal Safe Mode
Alternate shell - Safe Mode with command prompt
Network – Safe Mode with networking
Don’t worry about Active Directory repair, that’s some IT-related option. You can also check the boxes for No GUI boot, Boot log, Base video and OS boot information. Note that when you boot into safe mode using msconfig, it will continuously boot until you go back into msconfig and uncheck the Safe boot option. Enjoy!

Mac OS X 10.8 Mountain Lion Upgrade and Clean Install Guide

 

Upgrading to Mac OS X 10.8 Mountain Lion is for the most part a simple process. However, there are a few unobvious steps along the way that you may want to consider, whether upgrading or installing to the latest 10.8 version of Mac OS.
Mountain Lion
I recently upgraded my MacBook Pro to OS X 10.8 and have documented the process for any of our site visitors or subscribers who may be upgrading to Mountain Lion in the future.

Before you upgrade or install

  • You must be running either Mac OS X 10.6 Snow Leopard or 10.7 Lion to directly upgrade to Mountain Lion.
  • If you’re not currently running 10.6 or 10.7, you may clean install lion if your Mac computer will support it. For compatible Macs, see our article on Mountain Lion requirements.
  • Make sure your computer is connected to power, if using a MacBook, Pro or Air.
  • Perform a software update prior to installing Lion to assure that you have the latest software. Click the Apple logo in the upper left corner of the screen and select Software Update… from the context menu.

1. Purchase and download Mac OS X 10.8 Mountain Lion.

Launch the Mac AppStore on your computer by clicking the Apple logo and selecting App Store… from the context menu.
With the Mac AppStore open and active on screen, find the Mac OS X Mountain Lion app in the AppStore by performing a search, although it may be featured on the home screen.
ml_1
Click the price below the Mountain Lion App listing and it will change to Buy App. Click the Buy App button to purchase Mountain Lion.
Next, Apple will prompt you to sign-in to your account, in which you may be required to verify your billing info. Proceed to sign in, verify your billing info, etc…
ml_2
ml_3
After that is complete and the purchase has been made, the operating system download will begin immediately. You can view the progress of the download at anytime by using the Launchpad app on your Mac.
ml_4
The download will very likely not be quick, as the Mountain Lion installer is a 4.37GB file. I downloaded Mountain Lion the same day it was released, so Apple download servers were extremely busy and the download took a very long time. I started the download at 4:28 and it finished at 6:48, so it took 2 hours and 20 minutes to download, using a high-speed cable internet connection.
After the download completes, the Mac OS X Installer will automatically launch and prompt you to begin installing Mountain Lion.
ml_5
However, don’t install the software yet. Let’s get the $20.00 USD software purchase that you just made backed up before we proceed with the installation (the installer deletes itself upon upgrade).

2. Backup, Create a bootable USB drive or Disc of Mountain Lion

With 10.8 successfully downloaded, navigate to the path Finder > Applications and locate the Mountain Lion installer. Right-click the installer app and select show package contents from the context menu.
From here, Finder will open the actual directory of the app. Navigate the path Contents > SharedSupport and locate the file InstallESD.dmg
Next, open up disk utility in a new window, using Launchpad or by navigating the path Finder > Applications > Utilities > Disk Utility. Drag the InstallESD.dmg file into the left-side drives list within Disk Utility. You can now begin backing up Lion using a DVD or USB drive.
2a. To Burn a Backup/Recovery Disc –
Select the DMG file within Disk Utility by single clicking it. Click the Burn button to begin creating your Mountain Lion install DVD (dual-layer DVD or Blu-ray disc required). Once the burn has finished, eject the disc from your Mac and store it in a safe place. This disc can be used to reinstall Mountain Lion, should you need to in the future.
OR
2b. To create a bootable USB Drive –
  • Insert the USB drive and select it in the sidebar in Disk Utility. Select the Partition tab, select 1 Partition from the dropdown menu and choose Mac OS Extended (Journaled) as the format type.
  • Click the Options button and choose GUID Partition Table, this will make the drive bootable and formatted correctly for the Mac. Click Apply to format, which will completely erase the drive.
  • Next, click the Restore tab and choose the DMG file as your source and the USB drive as the destination. Click the Apply button to backup the installer to bootable USB drive.
OR SAVE THE INSTALLER
2c. To save the installer file and make it bootable at another time (quickest) -
Connect an external hard drive or high capacity USB drive to your Mac. Navigate the path Finder > Applications and locate the Mountain Lion installer app. It will be an app represented by a picture of a Mountain Lion. Drag the entire app to your external hard drive or USB drive to copy it. Eject the drive.
At this point, you have successfully downloaded Mountain Lion and backed up the installer file.

3. Upgrade or Clean Install Mac OS X 10.8 Mountain Lion

Finally, it’s time to actually begin install of the new operating system!
3a. Upgrade Install from Snow Leopard or Lion -
Launch the Mountain Lion app that you downloaded from the AppStore by navigating the path Finder > Applications. Once the app launches, you will be prompted with the upgrade steps:
ml_5
ml_8
ml_7
ml_6
Follow the on-screen prompts to upgrade to Mountain Lion. Your computer will reboot and the upgrade process will begin.
The estimated upgrade install time for Mountain Lion is 34 minutes, although it may go quicker or slower depending on your hard drive speed. For example, I have a SSD installed on my MacBook, so it took closer to 15 minutes.
Once the installation is complete, your computer will restart one more time and boot back up. Once you sign in, you will be using 10.8 Mountain Lion; because this method is an upgrade, all of your existing apps and documents will be on your Mac computer.
OR
3b. Clean Install Mountain Lion -
If you’re not currently running Snow Leopard or Lion as an operating system, but have a Mac that is capable of running Mountain Lion, you will want to perform a clean install. The process is as follows:
  • Close out of any apps or other open documents and save your work.
  • Connect a bootable USB drive or DVD Disc containing the Mountain Lion installer to your Mac computer. We described how to create both above (2a, 2b).
  • Restart your computer. Once it begins to boot back up, hold down the option key on the keyboard to choose a boot device.
  • Select either the USB drive or Disc as the boot source.
  • Click the Continue button on the first initial Welcome… screen.
  • (optional) Hover your mouse over the top of the screen and navigate the path Utilities > Disk Utility.
  • (optional) Use Disk Utility to erase any existing Mac OS X installations if you so choose. This will completely wipe your hard drive of all data! Format to OS X Extended (journaled) and exit Disk Utility.
  • Complete the on-screen prompts to finish clean installing Mountain Lion.
Quick tip: If you performed a clean install, your Mac computer will finish installing Mountain Lion and will restart with Mountain Lion ready for use. However, you will be missing all of your iLife apps such as iPhoto and iMovie. Insert the Applications disc that came with your Mac computer to regain these programs.
How to Open a Excel or Word in Safe Mode:

In our company we generate .dat files with inhouse application, I had fixed strange problem. I can open those .dat file in excel by browsing file –> open , but not when I double click ( after associating to open always open in excel ). below is solution
open folder option —>file types — dat and click advanced button ( some times you may have restore button, click restore and you will get advanced )
in advanced – select open — edit and paste the path of "x:….excel.exe" /e and click ok/apply
eg : "C:Program FilesMicrosoft OfficeOffice12EXCEL.EXE" /e
boom.. it should work

Run a Program in Compatibility Mode in Windows 8

 

As with other versions of Windows prior to Windows 8, you can run a program in compatibility mode in order to run older programs that were written for older versions of Windows in Windows 8. In Windows 8, there is also a new tool called the Compatibility Troubleshooter, which walks you through getting an older program to run properly in Windows 8. In this article, I’ll walk you through the compatibility mode options in Windows 8.
To get started, you need to right-click on the EXE file and choose Properties. If you have installed a program, it will either be located in C:\Program Files, C:\Program Files (x86) or inside the AppData folder. You can get to the AppData folder by opening the Run dialog and typing in %appdata%.
appdata
For example, I installed Google Talk on Windows 8 and was surprised to find that it was not located under Program Files. Instead it was inside the AppData folder which is located at
C:\Users\UserName\AppData\Roaming
By default, you cannot see this folder as it’s marked as a system folder. You can go into Folder and Search Options from Explorer and unhide it, but I find it simpler to just type it into the run dialog and open it. Once you find it, right-click and choose Properties.
properties
Then go ahead and click on the Compatibility tab as shown below.
compatibility windows 8
To run the program for a different version of Windows, check the Run this program in compatibility mode for box and choose from the list. Your options are everything from Windows 95 and 98 to Windows 7.
compatiblity mode
Under Settings, you can choose to run the program in reduced color mode, run in a 640×480 low resolution or to disable scaling. Under Privilege, you can also have the program run as administrator in case it’s having permissions issues. You can always use this technique to always run a program in administrator mode.
Lastly, you can click on the Change settings for all users button to have the compatibility mode settings applied to all users on the system instead of just the current user. If you don’t have any idea what to change or don’t feel like doing it manually, you can always click on the Run compatibility troubleshooter button.
It will detect any problems and then give you the option to Try recommended settings or Troubleshoot program.
troubleshoot program
If you click on Troubleshoot program, it will then ask you what problems you have noticed with the program while running it in Windows 8:
problems windows 8
Basically, the first option will let you choose a different version of Windows, the second option will change the display settings, and the third option will run the program as Administrator. If you select I don’t see my problem listed, it will as you which version of Windows it worked on before. If you click I don’t know here, then you’ll get a list of exact error messages.
display problems
Once you click on any of the problems, it’ll automatically choose a set of settings for the operating system, display and permissions to run the program and test it. Overall, running older programs on Windows 8 is very similar to Windows 7 and even easier to use. Enjoy!