Monday, June 28, 2010

Turning OFF Autoplay on All Drives using Group Policy

To disable Auto play of External Drives or Internal Drives or removable Disks please follow steps below mentioned. It's actually useful to disable Auto Play so that you will not get affected by any kind of virus which gets transfered via PenDrives or external drives. Also will avoid attack of autorun.inf virus.

  • Click on Start and open run.
  • Now type gpedit.msc, and Enter.
  • Now go to "User Configuration" -> "Administrative templates" -> "System" -> "Turn Off Autoplay"
  • Now select Enable and Select "turnoff autoplay on 'All Drives' ".
  • Select OK and Now you are Done!! 
Check This Link for details on how to remove autorun.inf virus

    Monday, June 14, 2010

    Restoring mozilla's bookmarks

    Firefox 3 no longer uses bookmarks.html to store the bookmarks. It stores the bookmarks and the browser history in places.sqlite and no longer creates a HTML backup by default instead there are also JSON backups in the bookmarkbackups folder within the Firefox profile folder.
    Check for backups in following path : 
    C:\Documents and Settings\<User Name>\Application Data\Mozilla\Firefox\Profiles\<some  folder>\bookmarkbackups


    See Lost_Bookmarks (MozillaZine KB)
    You can export the bookmarks in Firefox to a HTML file: Bookmarks > Organize Bookmarks > Import & Backup > Export HTML
    You can also create a JSON backup: Bookmarks > Organize Bookmarks > Import & Backup > Backup

    If migrating to new account , then just copy the latest JSON file to new account's bookmarkbackup folder and restore it in mozilla.
    You should restore a JSON backup: Bookmarks > Organize Bookmarks > Import & Backup > Restore-> Choose file
     Restoring a JSON backup will replace all existing bookmarks. You can merge bookmarks if you import a HTML backup.

    A HTML backup doesn't support tags and annotations, so if you want to preserve those then you need to use a JSON backup.

    Wednesday, June 9, 2010

    How to remove autorun virus from Hard disk or How to open HDD by double click

    Some time you are not able to open your hard disk drives(HDD) by double clicking, so to enable that please follow following procedures:
    > open command prompt
    > type and enter "cd\", this will take you to the root of C: Drive
    > type "attrib -h -r -s autorun.inf" and enter
    > now type and enter "del autorun.inf" to delete autrun.inf file
    > Similarly follow same steps for all the drives and then restart your computer
    > Same steps can also be followed for pendrives or removable media.

    > Now just enjoy the freedom of double clicking.

    Tuesday, June 8, 2010

    Getting Information about file

    File Checking
    Existence:


    if( -e $file) { print "File exists \n";}
    else { print "File doesn't exist\n"; }

    File exists with size 0(zero) : -z
    File exists with size non-zero : -s

    Readable/writable/Executable

    File Readable : -rFile Writable : -w
    File Executable : -x

    Text/Binary

    Text : -T
    Binary : -B