How To Import a Trusted Root Certification Authority In Windows

1. Start Microsoft Management Console (MMC) Tool
Click Start -> Run -> Enter 'MMC' and click 'OK'















2. Click File -> Add/Remove Snap-In...



























3. Add Certificate
Select 'Certificates' in left panel and click 'Add' to move to right panel , Then Click 'OK'
















4. Select 'Computer Account' option and click 'Next'

 5. Click 'Finish'






















6. Click 'OK'




7. Start to import Trusted Root Certificate
A. Expand Certificates Node;
B. Right click Trusted Root Certificates -> All Tasks -> Import.
















8. Click Next















 








9. select downloaded Certificate file
Click 'Browse' to select correct Certificate file and click Next



















10. Click Next


11. Click Finish


















12. Done




How to Improve performance of your windows computer a bit more, without upgrading your hardware.

         1. First of all computers become slow when there are hell lot of un-necessary files on computer. first try to keep your computer's main drive (where OS is installed) neat and clean.
           For this you need to make sure the following things:                                                   a. Remove all the Folders, Files that you have stored in the Desktop to any empty drive except the Main Drive (C: Drive mostly, where OS is installed) except the shortcuts.
                 b. Then Keep the Recycle bin Clear, by "Right Click on Recycle Bin > Empty Recycle Bin".
                 c. Open the path "C:\Users\USER_NAME\" and check for the existing system folders like "Downloads, My Pictures, My Documents, My Music, My Videos". Move all the files in these folders to a specific drive other than the C: Drive.

         2.  Then remove unnecessary applications. For performing this Goto 

              Start menu > Control panel > Programs > Uninstall a Program.
    Check here for the programs installed and remove the programs which are not used or required by you.

    After performing uninstall restart the system.

         3. Then remove the temporary files by running the following:
    " Windows Button + r" > Type "temp" (This will redirect you to the folder "C:\Windows\Temp")

    In the above folder remove the files except the ones marked as todays date.

         4. Then download C Cleaner from "https://www.piriform.com/ccleaner/download"  and install it. After installing run the cleaner using "RUn Cleaner" option. Then Goto "Registry" section and "Scan For issues" and after analysis is complete click on "Fix selected issues".

         5. Then perform the following:

    Click on "Windows" button or click on "Start" menu > Type "CMD" > Right click on it and "Run as administrator" > then type "sfc /scannow" and hit "enter".

    Wait for the command to complete successfully. 

    NOTE: This command will fix verify and correct the missing default windows system files.

         6. Then open "My Computer" right click on the system drive and open "properties" window. Then click on "Tools" tab. 
    Here you can see two utilities, one is "Error-checking" and the other is "Defragmentation".

    First click on "Error-checking" tick both the options it displays and then click on "start". This will check your disk for disk errors and fix them as required. This might require a system reboot and proceed at the system boot.

    NOTE: The above step also fixes if explorer.exe is consuming most of your memory.

    After the completion of the above step we will go with the other option i.e "Defragmentation". Click on " Defragment Now" button and it will open a new window for all defragment options. Here select the C drive and all other drives one by one and click on "Defragment Now" button. It will take some time to complete.

         7. Also you can optimise for better performance by performing the below option too which is a better option but will disable styles on your windows. For performing this you can goto:

    Click "Start" button > Right click on "My Computer" and open properties windows > "Advanced System Settings" > Click on "settings" button under 'performance' section > Then select the "Adjust for better performance" option and "Apply".

         8. Also from windows 7 onwards there is another option for boosting performance with current hardware. If you have USB Drive (pendrive, flashdrive) then plugin into any of the USB ports of your computer. Then select the drive in "My Computer" and Right click on it and open "Properties" window. There click in "Ready Boost" and select the options like "Dedicate This device to ReadyBoost" or select a specific size using the "Use this Device" option and then click on "Apply" button. This will also help you in boosting the performance.

         9. Also, if 'Hibernation' is enabled on your computer it will too slow down the performance. So, you need to use the following microsoft KB to disable Hibernation (You can verify if its enabled by just clicking on "start" button and the arrow key near the "shutdown" button, there you will see "Hibernate" option. If its not availaible then its disabled.):

    http://support.microsoft.com/en-us/kb/920730

            To disable Hibernation:
               http://go.microsoft.com/?linkid=9739871

            To Enable Hibernation:
               http://go.microsoft.com/?linkid=9739870

    After the above steps your computer will be mostly clean and will improve performance also.

    Other than the above you need to consider Hardware upgrade too which is not mentioned in the above steps because it will cost you to. System upgrade mostly like:

         1. RAM upgrade.
         2. SSD drive installation other than HDD.
         3. A good processor. 





    Find All Domain Controllers in an AD Domain:

    a) LDAP filter:

    Get-ADComputer -LDAPFilter "(&(objectCategory=computer)userAccountControl:1.2.840.113556.1.4.803:=8192))"

    ex:-
    PS C:\Users> Get-ADComputer -LDAPFilter "(&(objectCategory=computer)(userAccountControl:1.2.840.113556.1.4.803:=8192))"

    DistinguishedName : CN=IHM-CAM-DC-1,OU=Domain Controllers,DC=example,DC=local
    DNSHostName       : IHM-CAM-DC-1.example.local
    Enabled           : True
    Name              : IHM-CAM-DC-1
    ObjectClass       : computer
    ObjectGUID        : c1eff660-25f9-41de-9e41-acad98908abc
    SamAccountName    : IHM-CAM-DC-1$
    SID               : S-1-5-21-1370450699-4128765030-226702860-1000
    UserPrincipalName :

    DistinguishedName : CN=IHM-CAM-DC-2,OU=Domain Controllers,DC=example,DC=local
    DNSHostName       : IHM-CAM-DC-2.example.local
    Enabled           : True
    Name              : IHM-CAM-DC-2
    ObjectClass       : computer
    ObjectGUID        : 6bcee6cb-2f6f-4ea1-b7ab-842faca4bcd8
    SamAccountName    : IHM-CAM-DC-2$
    SID               : S-1-5-21-1370450699-4128765030-226702860-1103
    UserPrincipalName :

    b) "Domain controllers" group and retrieve his members:


    Get-ADGroupMember 'Domain Controllers'

    ex:-
    PS C:\Users> Get-ADGroupMember 'Domain Controllers'
    distinguishedName : CN=IHM-PORT-DC-1,OU=Domain Controllers,DC=example,DC=local
    name              : IHM-PORT-DC-1
    objectClass       : computer
    objectGUID        : 0a591ca8-b52a-452b-b68a-629c7b16443b
    SamAccountName    : IHM-PORT-DC-1$
    SID               : S-1-5-21-1370450699-4128765030-226702860-1104

    distinguishedName : CN=IHM-CAM-DC-2,OU=Domain Controllers,DC=example,DC=local
    name              : IHM-CAM-DC-2
    objectClass       : computer
    objectGUID        : 6bcee6cb-2f6f-4ea1-b7ab-842faca4bcd8
    SamAccountName    : IHM-CAM-DC-2$
    SID               : S-1-5-21-1370450699-4128765030-226702860-1103

    c) Get-ADDomainController cmdlet:


    Get-ADDomainController -Filter * | Select-Object name

    ex:-
    PS C:\Users> Get-ADDomainController -Filter * | Select-Object name
    name
    ----
    IHM-CAM-DC-1
    IHM-CAM-DC-2

    Location of Script Configuration Files for some CMS softwares.

    These paths are relative to the root of the script, not the account nor domain. So if it's a vBulletin forum, under /home/username/www/forum/, the configuration file would be in /home/username/www/forum/includes/config.php


    4Images Gallery/config.php
    B2 Evolution/conf/_basic_config.php
    Boonex Dolphin/inc/header.inc.php
    Concrete5/site/config.php
    Coppermine Photo Gallery/include/config.inc.php
    Crafty Syntax Live Help/config.php
    Cube Cart/includes/global.inc.php
    dotProject/includes/config.php
    Drupal/sites/default/settings.php
    e107/e107_config.php
    FAQMasterFlex/faq_config.php
    Gallery/config.php
    Geeklog/db-config.php
    /siteconfig.php
    /lib-common.php
    glfusion/private/db-config.php
    Hotaru/hotaru_settings.php
    Joomla/configuration.php
    LiveSite\local\config\lib\content_center\ livesite_customer_src\etc\conf\livesite_customer\database.properties
    LifeType/config/config.properties.php
    Magento/app/etc/local.xml
    Mambo/configuration.php
    MODx/core/config/config.inc.php
    Moodle/config.php
    MyBB/inc/config.php
    Noahs Classifieds/app/config.php
    Nucleus/config.php
    ocPortal/info.php
    osCommerce/includes/configure.php
    /admin/includes/configure.php
    PHP-Nuke/config.php
    phpBB/config.php
    phpFormGenerator/index.php
    /mysql.class.php
    phpFreeChat(only if you have saved form input to a database)
    /forms/admin/config.inc.php
    PHPlist/config/config.php
    phpMyDirectory/defaults.php
    phpWCMS/include/inc_conf/conf.inc.php
    phpWebSite/conf/config.php
    PhpWiki/admin.php
    /lib/config.php
    Pligg/libs/dbconnect.php
    Post-Nuke/config.php
    Saurus CMS/config.php
    Siteframe/config.php
    SMF/Settings.php
    Soholaunch/sohoadmin/config/isp.conf.php
    Textpattern/textpattern/config.php
    Tiki/db/local.php
    Trendy Site Builder(not applicable)
    TYPO3/typo3conf/localconf.php
    vBulletin/includes/config.php
    WebCalendar/includes/settings.php
    WHMCS/configuration.php
    WordPress/wp-config.php
    X7 Chat/config.php
    Xoops/mainfile.php
    Zen Cart/includes/configure.php
    /admin/includes/configure.php
    Zikula/config.php

    How to Create Custom Error Documents on Plesk 10 Linux

    Please add this code to your .htaccess file in the httpdocs directory.

    ErrorDocument 403 /403.shtml
    ErrorDocument 404 /404.shtml
    ErrorDocument 500 /500.shtml

    Next create a file named 403.shtml in your httpdocs folder. Now the 403 errors will yield the 403.shtml page. Repeat for 404.shtml and 500.shtml.

    You can even use existing pages as the resulting page. Say you don't want any visitors seeing 404 errors on your site. You can make your home page the result, like so:

    ErrorDocument 404 /index.html

    If Internet Explorer is not displaying the custom error page, it is likely because the error page must be larger than 1 kilobyte.

    There are many error pages which may be defined.

    Client Request Errors
    400 - Bad Request
    401 - Authorization Required
    403 - Forbidden
    404 - Not Found
    405 - Method Not Allowed
    406 - Not Acceptable (encoding)
    407 - Proxy Authentication Required 
    408 - Request Timed Out
    409 - Conflicting Request
    410 - Gone
    411 - Content Length Required
    412 - Precondition Failed
    413 - Request Entity Too Long
    414 - Request URI Too Long
    415 - Unsupported Media Type

    Server Errors
    500 - Internal Server Error
    501 - Not Implemented
    502 - Bad Gateway 
    503 - Service Unavailable
    504 - Gateway Timeout
    505 - HTTP Version Not Supported

    How to Create Custom Error Pages on Plesk 10 Windows

    In order to setup custom error pages in Plesk on a Windows server, please do the following:

    Turning on Custom Error Pages
    Before you can use custom error pages, you must first turn them on.


    1. Login to Plesk
    2. Click on the Websites & Domains tab.
    3. On the list of domain name at the bottom, click on the domain name you are configuring.
    4. Check the box for Customer error documents.
    5. Click OK.
    6. You will be taken back to the Websites & Domains tab and it should say "Information: The settings were successfully updated" near the top of the page.
    7. Once you have Custom Error Pages turned on, you have two options for setting them up:  edit the existing error documents, or create new ones.


    Option 1: Editing an Existing Custom Error Page

    The easiest way to create your own error page is to edit the ones already there.


    1. Click on the Website & Domains tab (if not already on that page).
    2. Click on File Manager.
    3. Click on the error_docs folder (the text link or the folder in front of the link).
    4. Click on the error page you want to edit.  For example, Not_Found.html.
    5. Use Plesk's built-in HTML editor to edit the error page.
    6. Click OK to save your changes.
    7. Once saved, your changes will take effect.  No additional steps necessary.


    Option 2: Setting up Custom Error Pages

    Instead of editing the existing error pages, you can create your own with different filenames, or even specify that it redirects to a specific URL instead.

    Step 1: Creating the New Error Page

    Create a new page and upload it to your domain.  It can be named anything, and can be in any supported language such as HTML, PHP, ASP and ASP.NET.

    You can use the File Manager in Plesk to create a new file, and then edit it, or create it on your own computer and then FTP it to the server.

    Step 2: Telling the Server to Use the New Error Page


    • Click on the Website & Domains tab (if not already on that page).
    • Click on Show Advanced Options (grey link near the middle of the page) if the advanced options are not already shown.
    • Click on Virtual Directories.
    • Click on the Error Documents tab.
    • Click on the Error Document you wish to change.
    • Set the options for that error:

        Type:
         Default - Use the Windows IIS Default Error Page.
         File - Use a specific file.  The file must be located in the error_docs directory.
         URL - Use a specific a custom error document located in a directory other than error_docs.
         Location:  Input the file name or URL, depending which type you selected.  If the custom error document is located in a directory other than error_docs, the path should be relative to the virtual host root (i.e.<vhosts>\<domain>\httpdocs).
    For example, /my_errors/forbidden_403_1.html.
    • Click OK.

    How to Set Custom error pages In Cpanel.

    To create a custom error page for your account, please login to cPanel and click Error Pages, under Advanced. Select the domain or subdomain you want and click the page you want to edit. Insert your own custom page code (in HTML or SHTML). The changes will be applied after you click Save.

    Common problems:

    If you are still seeing the old error pages, try refreshing your browser (ctrl + F5). If you still see the old pages, please add this code to your .htaccess file in the public_html directory.

    ErrorDocument 403 /403.shtml
    ErrorDocument 404 /404.shtml
    ErrorDocument 500 /500.shtml                                            

    You can even use existing pages as the resulting page. Say you don't want any visitors seeing 404 errors on your site. You can make your home page the result, like so:

    ErrorDocument 404 /index.html
    If Internet Explorer is not displaying the custom error page, it is likely because the error page must be larger than 1 kilobyte.

    There are many error pages which may be defined.

    Client Request Errors
    400 - Bad Request
    401 - Authorization Required
    403 - Forbidden
    404 - Not Found
    405 - Method Not Allowed
    406 - Not Acceptable (encoding)
    407 - Proxy Authentication Required 
    408 - Request Timed Out
    409 - Conflicting Request
    410 - Gone
    411 - Content Length Required
    412 - Precondition Failed
    413 - Request Entity Too Long
    414 - Request URI Too Long
    415 - Unsupported Media Type

    Server Errors
    500 - Internal Server Error
    501 - Not Implemented
    502 - Bad Gateway 
    503 - Service Unavailable
    504 - Gateway Timeout
    505 - HTTP Version Not Supported

    Q. How can I revert back to the default error pages?

    Simply delete the error page from the public_html folder:
    404.shtml
    403.shtml
    500.shtml

    How to Set Name servers on your Linux server to resolve to internet.

    Set name servers in the following config file:
    [root@localhost ~]# cat /etc/resolv.conf
    nameserver 192.168.1.1
    nameserver 8.8.8.8
    [root@localhost ~]#


    To verify if the name servers are working or not: # ping 192.168.1.254
    # ping google.com

    Set static IP to a Linux System:




    Check for the config file and set it according to the following configuration:



    [root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
    DEVICE="eth1"          ------------> Ethernet Port address seen on "Ifconfig".
    BOOTPROTO="static"     ------------> "Static" IP or "dhcp".
    IPV6INIT="yes"
    NM_CONTROLLED="yes"
    ONBOOT="yes"           ---------> Set on boooting.
    TYPE="Ethernet"        -----------> Port type.
    IPADDR=192.168.1.147   -----------> IP address.
    NETMASK=255.255.255.0  -----------> Network Mask.
    [root@localhost ~]#


    Restart "network" service to see if the configuration is working.

    You can verify it using the following command after the network restart:
    # ifconfig eth1
    route -n