Saturday, September 14, 2013

Install Windows 7/Vista From USB Drive
Requirements:
*USB Flash Drive (Minimum 4GB)
*Windows 7 or Vista installation files.
Follow the below steps to create bootable Windows 7/Vista USB drive using which you can install Windows 7/Vista easily.
1. Plug-in your USB flash drive to USB port and move all the contents from USB drive to a safe location on your system.
2. Open Command Prompt with admin rights. Use any of the below methods to open Command Prompt with admin rights.
*Type cmd in Start menu search box and hit Ctrl+ Shift+ Enter.
Or
*Go to Start menu > All programs > Accessories, right click on Command Prompt and select Run as administrator.
3. You need to know about the USB drive a little bit. Type in the following commands in the command prompt:
First type DISKPART and hit enter to see the below message.
Next type LIST DISK command and note down the Disk number (ex: Disk 1) of your USB flash drive. In the below screenshot my Flash Drive Disk no is Disk 1.
4. Next type all the below commands one by one. Here I assume that your disk drive no is “Disk 1”.If you have Disk 2 as your USB flash drive then use Disk 2.Refer the above step to confirm it.
So below are the commands you need to type and execute one by one:
SELECT DISK 1
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=NTFS
(Format process may take few seconds)
ASSIGN
EXIT
Don’t close the command prompt as we need to execute one more command at the next step. Just minimize it.
5. Next insert your Windows7/Vista DVD into the optical drive and check the drive letter of the DVD drive. In this guide I will assume that your DVD drive letter is “D” and USB drive letter is “H” (open my computer to know about it).
6. Maximize the minimized Command Prompt in the 4th step.Type the following command now:
D: CD BOOT and hit enter.Where “D” is your DVD drive letter.
CD BOOT and hit enter to see the below message.
7. Type another command given below to update the USB drive with BOOTMGR compatible code.
BOOTSECT.EXE /NT60 H:
Enjoy!!!!!!

Wednesday, May 1, 2013

Install Exchange Server 2010 in Windows Server 2008 R2


Install Exchange Server 2010 in Windows Server 2008 R2

Exchange server is one of the popular messaging platform in enterprise. Today I will show you steps to install Exchange server 2010 in Windows Server 2008 R2. There are some prerequisites that must be fulfilled to install the Exchange server successfully. The prerequisites are different for different Windows Server versions and service packs. I will be showing in the test environment in Server 2008 R2. The diagram below shows our network scenario. We don’t have any existing Exchange instance. So we will install Exchange server in fresh environment.

Install Exchange Server 2010 in Windows Server 2008 R2

Install Exchange Server 2010 in Windows Server 2008 R2

Installation prerequisites

  1. The forest functional level of the DC must be at least Server 2003 or later.
  2. Active Directory Schema master must be running in Server 2003 or later.
  3. Exchange Server must be member of DC but not Edge Transport Server.
  4. The Domain Controller must be a Global Catalog server in this (local) domain.
  5. Install .Net Framework 3.5 from Server Manager Add New Features wizard in MBG-Mail Server.
  6. Download and install 2007 Office System Converter: Microsoft Filter Pack in MBG-Mail.
Now, insert Exchange server installation disc or ISO Image into the drive. Then open command prompt from start menu as Administrator. Move your root directory to drive where Exchange media resides. Mine is in drive D,
C:\Users\Administrators> D: [Enter]. (Moves the prompt to drive D:)
The first step is to extend the existing Active Directory Schema. This requires installation of RSAT-ADDS tool. Open PowerShell and hit the following command to install RSAT-ADDS.
Import-Module ServerManager
Add-WindowsFeature RSAT-ADDS
Now hit the following command in command prompt to prepare active directory for installing Exchange Server. 
D:\> setup /prepareschema [Enter]
The second step is to prepare Active Directory for Exchange installation. Type your organization name in Organization Name switch. Hit the following command in command prompt.
D:\> setup /prepareAD /OrganizationName:MustBeGeek [Enter]
Now to prepare this domain for Exchange server installation, hit the following commands in command prompt.
D:\> setup /PrepareDomain [Enter]
Now open Windows Powershell and import Server Manager Module,
C:\> Import-Module ServerManager
Run the following command. This command will start mode for the Net. Tcp port sharing service to automatic.
C:\> Set-Service NetTcpPortSharing -StartupType Automatic
Now, we will install typical Exchange server that includes, Hub Transport, Client Access and Mailbox. These roles are typical if you are installing only one Exchange server for small environment. Log on to MBG-Mail server with domain administrator account.
Now copy and paste the following command in PowerShell. Simply copy the command and right-click the mouse button to paste on PowerShell Window. The CTRL+C and CTRL+V doesn’t work inside PowerShell. These command will install all the prerequisites in this server. Different set of commands are available for different Windows Server versions and different Exchange requirement.
Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,Web-Asp-Net,Web-Client-Auth,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Http-Redirect,Web-Http-Tracing,Web-ISAPI-Filter,Web-Request-Monitor,Web-Static-Content,Web-WMI,RPC-Over-HTTP-Proxy -Restart
After completing the installation, the server restarts. After starting the server open the Exchange setup from installation media. You will then see following screen.
Install Exchange Server 2010 in Windows Server 2008 R2
As step 1 and step 2 is already completed. Now click the language to install. I will click to install only languages from the DVD. Then click step 4 to install Microsoft Exchange. You will soon see the following box,
Install Exchange Server 2010 in Windows Server 2008 R2
Read the introduction and click Next button. Then choose to accept the license agreement and click Next button. Choose No for error reporting to Microsoft and click Next button. Choose the installation type as Typical.
Install Exchange Server 2010 in Windows Server 2008 R2
Then click Next button. Type the organization name and click Next.
exchange organization
Select No for Exchange client settings,
exchange client setting
In configure client access server external domain option. Leave the defaults and click Next button. Choose I do not want to take part and click Next button. The installation will now go through readiness checks. If there are some errors then it will notify you. Go back and correct those errors if any. If every checks succeeds then you will see similar screen,
Install Exchange Server 2010 in Windows Server 2008 R2
Click Install button to begin installing Exchange server. After installation completes you may now want to configure Exchange server to send and receive mails.

Tuesday, April 2, 2013

How to work With Microsoft Management Console 

video

Thursday, March 14, 2013

How to install the additional Domain Controllers


How to install the additional Domain Controllers
Having a single Domain Controller can be quite risky because in case of any kind of hardware or some other technical failure, the entire network can be destroyed. Recently, we wrote a guide on How to create a Domain in Windows Server 2008, in this post we will tell you how to create a backup Domain or an Additional Domain Controller (ADC). Having an ADC means that in case your primary Domain fails, it takes over the functions of the Primary Domain and keeps the network functional. Client operating systems in this scenario do not get disconnected and a complete network failure is hence, avoided. Moreover, one or more ADCs can help in balancing load of the Domain, fault tolerance and to improve the availability and reliability of network services.
To get started, go to the command prompt or Run, type dcpromo and hit Enter. Whether you are making a Domain, Child Domain, ADC or removing any of them, the dcpromo command is used.
dcpromo_thumb_thumb[2]
This will take you to the first step of the wizard from where you can create an Additional Domain Controller. Make sure that the advance mode installation option is unchecked and click Next. In case you are wondering what the advance mode installation is used for, it is used for making a RODC (Read Only Domain Controller). An RODC is used by organizations to deploy a DC (Domain Controller) in scenarios where physical security issues occur, such as a subsidiary branch office. It can also be used where local storage of domain passwords is unsafe.
Welcome_thumb[2]
In the next step you will see the same page regarding operating system compatibility which appears when making a DC. Simply click Next to proceed.
Step 2_thumb[2]
When choosing a deployment configuration, select Existing Forest, then select Add a Domain Controller to an existing forest and hit Next.
Step 3_thumb[2]
After that, you will be asked for network credentials which in other words means that you need to enter the name of the Domain that you wish to connect this server to as an ADC. After adding the Domain name, click on the Set button.
Step 4_thumb[2]
This will prompt you to enter credentials to connect to the Domain. Note: the credentials must have administrative privileges. In this case I am using an account that is apart of the Domain Controllers group. After verifying the information, the wizard will allow you to proceed further. Click Next to continue.
Step 5_thumb[3]
In the next section you will be asked to select a Domain Controller. The Domain Controller you entered in the previous step will be selected by default, simply move forward to the next step.

Step 6_thumb[2]
When selecting a site name, leave the default site name as it is and proceed.
Step 7_thumb[3]
Make sure that the DNS Server and Global Catalog check boxes are checked and hit Next. Note: do not check RODC.
Step 8_thumb[1]
Just like when creating a Domain, you will get the choice to set a location for the database, SYSVOL and NTDS files. You may change the destination or let them remain in the default location and proceed to the next step.
Step 9_thumb[2]
Moving forward, you will be asked to save a restore mode password (which is separate from the Domain Administrator’s account). As mentioned in the previous post, this password is configured to be used when the Domain Controller is started in Directory Services Restore Mode. Choose a password and click Next.
Step 10_thumb[2]
Finally, you will be presented with a summary of the selected options which you can review before moving forward.
Step 12_thumb[2]
The Active Directory Domain Installation Wizard will configure services and take you to the next step, where you simply need to click Finish to complete the process.
Step 13_thumb[2]
You will be prompted to restart the system after which your configurations will take effect. Finally you can login with a Domain account and manage your Additional Domain Controller.
ADC_thumb[2]

Wednesday, March 13, 2013


How To Create Additional Domain Controller (ADC) In Windows Server 2008

Having a single Domain Controller can be quite risky because in case of any kind of hardware or some other technical failure, the entire network can be destroyed. Recently, we wrote a guide on How to create a Domain in Windows Server 2008, in this post we will tell you how to create a backup Domain or an Additional Domain Controller (ADC). Having an ADC means that in case your primary Domain fails, it takes over the functions of the Primary Domain and keeps the network functional. Client operating systems in this scenario do not get disconnected and a complete network failure is hence, avoided. Moreover, one or more ADCs can help in balancing load of the Domain, fault tolerance and to improve the availability and reliability of network services.

To get started, go to the command prompt or Run, type dcpromo and hit Enter. Whether you are making a Domain, Child Domain, ADC or removing any of them, the dcpromo command is used.
dcpromo_thumb_thumb[2]
This will take you to the first step of the wizard from where you can create an Additional Domain Controller. Make sure that the advance mode installation option is unchecked and click Next. In case you are wondering what the advance mode installation is used for, it is used for making a RODC (Read Only Domain Controller). An RODC is used by organizations to deploy a DC (Domain Controller) in scenarios where physical security issues occur, such as a subsidiary branch office. It can also be used where local storage of domain passwords is unsafe.
Welcome_thumb[2]
In the next step you will see the same page regarding operating system compatibility which appears when making a DC. Simply click Next to proceed.
Step 2_thumb[2]
When choosing a deployment configuration, select Existing Forest, then select Add a Domain Controller to an existing forest and hit Next.
Step 3_thumb[2]
After that, you will be asked for network credentials which in other words means that you need to enter the name of the Domain that you wish to connect this server to as an ADC. After adding the Domain name, click on the Set button.
Step 4_thumb[2]
This will prompt you to enter credentials to connect to the Domain. Note: the credentials must have administrative privileges. In this case I am using an account that is apart of the Domain Controllers group. After verifying the information, the wizard will allow you to proceed further. Click Next to continue.
Step 5_thumb[3]
In the next section you will be asked to select a Domain Controller. The Domain Controller you entered in the previous step will be selected by default, simply move forward to the next step.

Step 6_thumb[2]
When selecting a site name, leave the default site name as it is and proceed.
Step 7_thumb[3]
Make sure that the DNS Server and Global Catalog check boxes are checked and hit Next. Note: do not check RODC.
Step 8_thumb[1]
Just like when creating a Domain, you will get the choice to set a location for the database, SYSVOL and NTDS files. You may change the destination or let them remain in the default location and proceed to the next step.
Step 9_thumb[2]
Moving forward, you will be asked to save a restore mode password (which is separate from the Domain Administrator’s account). As mentioned in the previous post, this password is configured to be used when the Domain Controller is started in Directory Services Restore Mode. Choose a password and click Next.
Step 10_thumb[2]
Finally, you will be presented with a summary of the selected options which you can review before moving forward.
Step 12_thumb[2]
The Active Directory Domain Installation Wizard will configure services and take you to the next step, where you simply need to click Finish to complete the process.
Step 13_thumb[2]
You will be prompted to restart the system after which your configurations will take effect. Finally you can login with a Domain account and manage your Additional Domain Controller.
ADC_thumb[2]

Installing Active Directory Domain Services (AD-DS)

In Windows Server 2008, unlike previous server operating Systems, there is an additional step that needs to be taken before running DCPROMO to promote the server to Domain Controller and installing Active Directory on it. This step is the installation of Active Directory Domain Services (AD-DS) role on the server. In fact, the AD-DS role is what enables the server to act as a Domain Controller, but you will still need to run DCPROMO the regular way.
AD-DS can be installed in one of 3 methods:

Method 1 – Server Manager/Initial Configuration Tasks

Roles can and should be added from Server Manager (but they can also be initiated from the Initial Configuration Tasks wizard that auto-opens the first time you log on to the server).
    1. Open Server Manager by clicking the icon in the Quick Launch toolbar, or from the Administrative Tools folder.
    2. Wait till it finishes loading, then click on Roles > Add Roles link.
    1. In the Before you begin window, click Next.
    1. In the Select Server Roles window, click to select Active Directory Domain Services, and then click Next.
    1. In the Active Directory Domain Services window read the provided information if you want to, and then click Next.
    1. In the Confirm Installation Selections, read the provided information if you want to, and then click Next.
    1. Wait till the process completes.
    1. When it ends, click Close.
    1. Going back to Server Manager, click on the Active Directory Domain Services link, and note that there's no information linked to it, because the DCPROMO command has not been run yet.
    1. Now you can click on the DCPROMO link, or read on.
      1. To run DCPROMO, enter the command in the Run command, or click on the DCPROMO link from Server Manager > Roles > Active Directory Domain Services.
      1. Depending upon the question if AD-DS was previously installed or not, the Active Directory Domain Services Installation Wizard will appear immediately or after a short while. Click Next.
      Note: The Advanced features of DCPROMO will be discussed in a future article.

      1. In the Operating System Compatibility window, read the provided information and click Next.
      1. In the Choosing Deployment Configuration window, click on "Create a new domain in a new forest" and click Next.
      1. Enter an appropriate name for the new domain. Make sure you pick the right domain name, as renaming domains is a task you will not wish to perform on a daily basis. Click Next.
      Note: Do NOT use single label domain names such as "mydomain" or similar. You MUST pick a full domain name such as "mydomain.local" or "mydomain.com" and so on.
      The wizard will perform checks to see if the domain name is not already in use on the local network.
      1. Pick the right forest function level. Windows 2000 mode is the default, and it allows the addition of Windows 2000, Windows Server 2003 and Windows Server 2008 Domain Controllers to the forest you're creating. Read my "Understanding Windows Server 2008 Active Directory Domain and Forest Functional Levels" article for more information on that.
      1. Pick the right domain function level. Windows 2000 Native mode is the default, and it allows the addition of Windows 2000, Windows Server 2003 and Windows Server 2008 Domain Controllers to the domain you're creating.
      Note: If you select "Windows Server 2008" for the forest function level, you will Not be prompted to pick a domain function level. Read more about domain and forest function levels on my "Understanding Windows Server 2008 Active Directory Domain and Forest Functional Levels" article.
      1. The wizard will perform checks to see if DNS is properly configured on the local network. In this case, no DNS server has been configured, therefore, the wizard will offer to automatically install DNS on this server.
      Note: The first DCs must also be a Global Catalog. Also, the first DCs in a forest cannot be a Read Only Domain controller.
      1. It's most likely that you'll get a warning telling you that the server has one or more dynamic IP Addresses. Running IPCONFIG /all will show that this is not the case, because as you can clearly see, I have given the server a static IP Address. So, where did this come from? The answer is IPv6. I did not manually configure the IPv6 Address, hence the warning. In a network where IPv6 is not used, you can safely ignore this warning.
      1. You'll probably get a warning about DNS delegation. Since no DNS has been configured yet, you can ignore the message and click Yes.
      1. Next, change the paths for the AD database, log files and SYSVOL folder. For large deployments, carefully plan your DC configuration to get the maximum performance. When satisfied, click Next.
      1. Enter the password for the Active Directory Recovery Mode. This password must be kept confidential, and because it stays constant while regular domain user passwords expire (based upon the password policy configured for the domain, the default is 42 days), it does not. This password should be complex and at least 7 characters long. I strongly suggest that you do NOT use the regular administrator's password, and that you write it down and securely store it. Click Next.
      1. In the Summary window review your selections, and if required, save them to an unattend answer file. When satisfied, click Next.
      1. The wizard will begin creating the Active Directory domain, and when finished, you will need to press Finish and reboot your computer.
      Note: You can automate the rebooting process by checking the Reboot on Completion checkbox.
      To automate domain controller installations, you can use an answer file or you can specify unattended installation parameters at the command line. More on that in my "Creating an Unattend Installation File for DCPROMO in Windows Server 2008" article.
      Note: As written in my "Installing Active Directory on Windows 2008 Server Core" article, configuring a Windows Server 2008 Server Core machine REQUIRES you to perform an automated installation of Active Directory on that server, as there is NOT DCPROMO GUI on Server Core.
      Your server now acts as a Domain Controller. Make sure you properly back it up. You can test functionality by using AD management tools such as Active Directory Users and Computers, examine the Event Logs, services and folders and shares that have been created.

      Links

Method 2 – Servermanagercmd.exe

Servermanagercmd.exe is the command prompt equivalent of the Add Roles and Add Features wizards in Server Manager. Through the use of various command line options, you can quickly and easily add or remove features and roles to or from your server, including the AD-DS role.
To install AD-DS by using Servermanagercmd.exe, simply enter the following command in the Command Prompt window:
Servermanagercmd.exe –I ADDS-Domain-Controller
Let the command run and when it finishes, AD-DS will be installed on the server.

Method 3 – Letting DCPROMO do the job

Oh yes. If you forget to install AD-DS or simply want to skip clicking on some windows, you can run DCPROMO from the Run command and before it is executed, the server will check to see if the AD-DS binaries are installed. Since they are not, they will auto-install.
After you complete the Add Roles Wizard, either click the link to start the Active Directory Domain Services Installation Wizard, or close Server Manager and manually run DCPROMO from the Run command.

Running DCPROMO

After installing the AD-DS role, we need to run DCPROMO to perform the actual Active Directory database and function installation.
Note: This guide assumes this is the first Domain controller in the forest, thus creating a new domain in a new forest. For a guide on how to add additional Domain Controllers to existing domains, please read my upcoming "Installing Additional Windows Server 2008 Domain Controllers in your Existing Active Directory Domain" article.