To install Active Server Pages on Windows Server

Therefore, the users cannot change their passwords or log on to Outlook Web Access.
To address this issue, install Active Server Pages on the servers that host Outlook Web Access.
To install Active Server Pages in Windows Server 2008
1.    Click Start, click Run, type appwiz.cpl, and then click OK.
2.    Click Turn Windows features on or off, and then click Continue if you receive a User Account Control prompt.
3.    In the Server Manager tool that appears, expand Roles, and then click Web Server (IIS).
4.    In the details pane, click Add Role Services.
5.    Under Application Development, click to select the ASP check box, and then click Next.
6.    Click Install, and then click Close when the role service is installed successfully.
7.    Restart IIS. To do this, open a command prompt, and then run the issreset command.
To install Active Server Pages in Windows Server 2003
1.    Click Start, click Run, type appwiz.cpl, and then click OK.
2.    Click Add/Remove Windows Components.
3.    In the Components list, click Application Server, and then click Details.
4.    Click Internet Information Services (IIS), and then click Details.
5.    Click World Wide Web Service, and then click Details.
6.    Click to select the Active Server Pages check box, and then click OK three times.
7.    Click Next, and then click Finish when the component is installed successfully.
8.    Restart IIS. To do this, open a command prompt, and then run the iisreset command.

T: How to Install Active Directory On Windows Server 2008 R2

Active Directory is essential to any Microsoft network built on the client-server network model–it allows you to have a central sever called a Domain Controller (DC) that does authentication for your entire network. Instead of people logging on to the local machines they authenticate against your DC. Lets take a look at how to install Microsoft’s Active Directory.
Installation
Open Server Manager and click on roles, this will bring up the Roles Summary on the right hand side where you can click on the Add Roles link.

This will bring up the Add Roles Wizard where you can click on next to see a list of available Roles. Select Active Directory Domain Services from the list, you will be told that you need to add some features, click on the Add Required Features button and click next to move on.

A brief introduction to Active Directory will be displayed as well as a few links to additional resources, you can just click next to skip past here and click install to start installing the binaries for Active Directory.

When the installation is finished you will be shown a success message, just click close.

Configuration
Open up Server Manager, expand Roles and click on Active Directory Domain Services. On the right hand side click on the Run the Active Directory Domain Services Installation Wizard (dcpromo.exe) link.

This will kick off another wizard, this time to configure the settings for you domain, click next to continue.

The message that is shown now relates to older clients that do not support the new cryptographic algorithms supported by Server 2008 R2, these are used by default in Server 2008 R2, click next to move on.

Choose to create a new domain in a new forest.

Now you can name your domain, we will be using a .local domain the reason why will be explained in an upcoming article.

Since this is the first DC in our domain we can change our forest functional level to Server 2008 R2.

We want to include DNS in our installation as this will allow us to have an AD Integrated DNS Zone, when you click next you will be prompted with a message just click yes to continue.

You will need to choose a place to store log files, it is a best practice to store the database and SYSVOL folder on one drive and the log files on a separate drive, but since this is in a lab environment I will just leave them all on the same drive.

Choose a STRONG Active Directory Restore Mode Password and click next twice to kick off the configuration.

You will be able to see what components are being installed by looking in the following box.

When its done you will be notified and required to reboot your PC.

How to Enable Active Server Pages (ASP)
Commerce Server 2007
2 out of 2 rated this helpful – Rate this topic
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Follow these steps to enable Active Server Pages (ASP) on Windows Server 2003 or Windows Server 2008. To configure the Commerce Server Staging (CSS) Reporting Service virtual directory correctly, you must enable ASP on the staging server before you configure Commerce Server.
To enable Active Server Pages (ASP) on Windows Server 2003
1.    Click Start, point to Control Panel, and then click Add or Remove Programs or, for Windows Server 2008, in Control Panel, click Program, and then click Turn Windows features on or off.
2.    In the Add or Remove Programs window, click Add/Remove Windows Components or for Windows Server 2008, in Server Manager, click Add Roles.
3.    In the Windows Components window, click Application Server, and then click Details.
4.    In the Internet Information Services (IIS) window, click World Wide Web Service, and then click Details.
5.    In the World Wide Web Service window, click the check box next to Active Server Pages, and then click OK.
6.    Click OK to close the Internet Information Services (IIS) window.
7.    Click OK to close the Application Server window.
8.    In the Windows Components window, click Next.
9.    In the Completing the Windows Components Wizard window, click Finish.
To enable ASP on Windows Server 2008
1.    Click Start, point to Control Panel, click Programs, and then click Turn Windows features on or off.
2.    In Server Manager, click Add Roles.
3.    On the Add Roles Wizard page, select Application Server, click Next three times, and then click Install.
Windows Server installs the new role.

Topic Last Modified: 2005-05-19
This topic explains how to install Active Directory on a Windows Server 2003 for the purposes of setting up a PKI/Exchange test environment.
The computer account and domain names used in this procedure are based on the test environment described in Implementing an Exchange 2003-Based Message Security System in a Test Environment.
Before You Begin


Either at the console or through a terminal session, log on to CONT-CA01 as a member of the Administrators group.
Procedure


To install Active Directory on Windows Server 2003


1.    Click Start, click Run, type dcpromo, and then click OK.
2.    On the first page of the Active Directory Installation Wizard, click Next.
Note:
If this is the first time you have installed Active Directory, you can click Active Directory Help to learn more about Active Directory before clicking Next.
3.    On the next page of the Active Directory Installation Wizard, click Next.
4.    On the Domain Controller Type page, click Domain Controller for a new domain, and then click Next.
5.    On the Create New Domain page, click Domain in a new forest, and then click Next.
6.    On the New Domain Name page, in the Full DNS name for new domain box, type corp.contoso.com, and then click Next.
7.    On the Database and Log Folderspage, accept the defaults in the Database folder box and the Log folder box, and then click Next.
8.    On the Shared System Volume page, accept the default in theFolder location box, and then click Next.
9.    On the DNS Registration Diagnostics page, click Install and configure the DNS server on this computer and set this computer to use this DNS server as its preferred DNS Server, and then click Next.
10.    On the Permissions page, click Permissions compatible only with Windows 2000 or Windows Server 2003 operating systems, and then click Next.
11.    On the Directory Services Restore Mode Administrator Password page, enter a password in the Restore Mode Password box, retype the password to confirm it in the Confirm password box, and then click Next.
Note:
Consult your organization’s security policy to ensure that the password you select meets your organization’s security requirements.
12.    On the Summary page, confirm the information is correct, and then click Next.
13.    When prompted to restart the computer, click Restart now.
14.    After the computer restarts, log on to CONT-CA01 as a member of the Administrators group.
Creating the Active Directory
After you have installed Windows Server 2003 on a stand-alone server, run the Active Directory Wizard to create the new Active Directory forest or domain, and then convert the Windows Server 2003 computer into the first domain controller in the forest. To convert a Windows Server 2003 computer into the first domain controller in the forest, follow these steps:
1.    Insert the Windows Server 2003 CD-ROM into your computer’s CD-ROM or DVD-ROM drive.
2.    Click Start, click Run, and then type dcpromo.
3.    Click OK to start the Active Directory Installation Wizard, and then click Next.
4.    Click Domain controller for a new domain, and then click Next.
5.    Click Domain in a new forest, and then click Next.
6.    Specify the full DNS name for the new domain. Note that because this procedure is for a laboratory environment and you are not integrating this environment into your existing DNS infrastructure, you can use something generic, such as mycompany.local, for this setting. Click Next.
7.    Accept the default domain NetBIOS name (this is “mycompany” if you used the suggestion in step 6). Click Next.
8.    Set the database and log file location to the default setting of the c:\winnt\ntds folder, and then click Next.
9.    Set the Sysvol folder location to the default setting of the c:\winnt\sysvol folder, and then click Next.
10.    Click Install and configure the DNS server on this computer, and then click Next.
11.    Click Permissions compatible only with Windows 2000 or Windows Server 2003 servers or operating systems, and then click Next.
12.    Because this is a laboratory environment, leave the password for the Directory Services Restore Mode Administrator blank. Note that in a full production environment, this password is set by using a secure password format. Click Next.
13.    Review and confirm the options that you selected, and then click Next.
14.    The installation of Active Directory proceeds. Note that this operation may take several minutes.
15.    When you are prompted, restart the computer. After the computer restarts, confirm that the Domain Name System (DNS) service location records for the new domain controller have been created. To confirm that the DNS service location records have been created, follow these steps:
a.    Click Start, point to Administrative Tools, and then click DNS to start the DNS Administrator Console.
b.    Expand the server name, expand Forward Lookup Zones, and then expand the domain.
c.    Verify that the _msdcs, _sites, _tcp, and _udp folders are present. These folders and the service location records they contain are critical to Active Directory and Windows Server 2003 operations.
Adding Users and Computers to the Active Directory Domain
After the new Active Directory domain is established, create a user account in that domain to use as an administrative account. When that user is added to the appropriate security groups, use that account to add computers to the domain.
1.    To create a new user, follow these steps:
a.    Click Start, point to Administrative Tools, and then click Active Directory Users and Computers to start the Active Directory Users and Computers console.
b.    Click the domain name that you created, and then expand the contents.
c.    Right-click Users, point to New, and then click User.
d.    Type the first name, last name, and user logon name of the new user, and then click Next.
e.    Type a new password, confirm the password, and then click to select one of the following check boxes:
    Users must change password at next logon (recommended for most users)
    User cannot change password
    Password never expires
    Account is disabled
Click Next.
f.    Review the information that you provided, and if everything is correct, click Finish.
After you create the new user, give this user account membership in a group that permits that user to perform administrative tasks. Because this is a laboratory environment that you are in control of, you can give this user account full administrative access by making it a member of the Schema, Enterprise, and Domain administrators groups. To add the account to the Schema, Enterprise, and Domain administrators groups, follow these steps:
.    On the Active Directory Users and Computers console, right-click the new account that you created, and then click Properties.
a.    Click the Member Of tab, and then click Add.
b.    In the Select Groups dialog box, specify a group, and then click OK to add the groups that you want to the list.
c.    Repeat the selection process for each group in which the user needs account membership.
d.    Click OK to finish.
The final step in this process is to add a member server to the domain. This process also applies to workstations. To add a computer to the domain, follow these steps:
.    Log on to the computer that you want to add to the domain.
a.    Right-click My Computer, and then click Properties.
b.    Click the Computer Name tab, and then click Change.
c.    In the Computer Name Changes dialog box, click Domain under Member Of, and then type the domain name. Click OK.
d.    When you are prompted, type the user name and password of the account that you previously created, and then click OK.

A message that welcomes you to the domain is generated.
e.    Click OK to return to the Computer Name tab, and then click OK to finish.
f.    Restart the computer if you are prompted to do so.
Troubleshooting
You Cannot Open the Active Directory Snap-ins
After you have completed the installation of Active Directory, you may not be able to start the Active Directory Users and Computers snap-in, and you may receive an error message that indicates that no authority can be contacted for authentication. This can occur if DNS is not correctly configured. To resolve this issue, verify that the zones on your DNS server are configured correctly and that your DNS server has authority for the zone that contains the Active Directory domain name. If the zones appear to be correct and the server has authority for the domain, try to start the Active Directory Users and Computers snap-in again. If you receive the same error message, use the DCPROMO utility to remove Active Directory, restart the computer, and then reinstall Active Directory.

For additional information about configuring DNS on Windows Server 2003, click the following article numbers to view the articles in the Microsoft Knowledge Base:
323380 How To Configure DNS for Internet Access in Windows Server 2003
324259 How To Configure DNS in a New Workgroup Environment in Windows Server 2003
323418 How To Integrate DNS with an Existing DNS Infrastructure If Active Directory Is Enabled in Windows Server 2003
323417 How To Integrate Windows Server 2003 DNS with an Existing DNS Infrastructure in Windows Server 2003
324260 How To Configure DNS Records for Your Web Site in Windows Server 2003
323445 How To Create a New Zone on a DNS Server in Windows Server 2003

Post Installing SMTP Service in Windows Server 2008

Installing SMTP Service in Windows Server 2008

Installing the SMTP (Simple Mail Transfer Protocol) service is only required if the Windows SharePoint Services 3.0 sites need to be enabled to receive incoming email. This is generally considered to be a more advanced feature, as a certain amount of configuration is required, and both site end users will need to understand that new email addresses are required and then understand what the results are.

CAUTION: Some organizations have policies in place which prohibit the installation of SMTP services on production servers that are not dedicated mail servers.

To install the SMTP service, follow these steps:

  1. Click the Start button.

  2. Click on Server Manager.

  3. Click on the Features node in the Server Manager pane. Click on Add Features in the Features Summary pane.

  4. Click on the box next to SMTP Server, and the Add Features Wizard window opens clarifying which role services and features need to be installed. Click the Add Required Role Services button. Click Next.

  5. Click Next on the page which discusses the Web Server (IIS) role, which is already installed.

  6. Note on the next page that the only new role service which will be installed is the IIS 6 Management Console, and click Next.

  7. Review the installation selection on the next page, and note that SMTP Server will be installed, and click Install.

  8. Ensure that the installation is fully successfully, and then click Close.

Completing the Configuration for Incoming E-Mail Settings

Now that SMTP Server features have been installed, the Incoming E-Mail Settings can be configured. To finish the configuration, follow the below steps:

  1. Return to the Central Administration console and click Administrator Task Incoming E-Mail Settings, and then click the Configure Incoming E-Mail Settings link.

  2. Click Yes under Enable Sites on This Server to Receive E-Mail.

  3. Under Settings Mode, leave Automatic selected.

  4. In the Directory Management Service section, leave No selected. If Yes is selected, users can create distribution groups and contacts, but an AD container needs to be identified where new distribution groups and contacts will be created and additional settings configured. This is a more complex configuration to administer and not recommended for most test implementations.

  5. In the Incoming E-Mail Server Display Address section, adjust the default display address if needed.

  6. In the Safe E-Mail Servers section, either select Accept Mail from All E-Mail Servers or Accept Mail from These Safe E-Mail Servers. If the second option is selected, the FQDN (Fully Qualified Domain Name) of the “safe” e-mail server needs to be entered.

  7. Click OK when you are finished.

9.    You will be back to the Central Administration console Home page and the Administrator Tasks list should no longer include the task item for Incoming E-Mail Settings.
10.    Installing SMTP Server Feature on Windows 2008 is an easy process requiring only few steps to complete. On this article we will describe a step by step configuration and installation of the SMTP Server feature and how to enable the smtp to relay from local server.
11.    Step 1:
12.    Opening Server Manager Console and under Features select Add Features
13.
14.    Step 2:
15.    Selecting SMTP Server option
16.
17.    Step 3:
18.    Click on Install wait until finish and click close
19.
20.    Step 4:
21.    Waiting for installation to finish and clicking on Close
22.
23.    Step 5:
24.    Opening IIS 6.0 Manager under Administrative Tools -> Internet Information Services 6.0
25.
26.    Step 6:
27.    Under [SMTP Virtual Server] second mouse click and properties
28.
29.    Step 7:
30.    Select Relay under Access Tab
31.
32.    Step 8:
33.    Select Only the list below and click on Add button
34.
35.    Step 9:
36.    Enter IP Address 127.0.0.1 for relay
37.
38.    Step 10:
39.    Sending a manual email through telnet to confirm everything working successfully. Telnet localhost 25 or telnet yourpublicip 25 and make sure you open the specific port on your firewall to be available to public.
40.

Setting up email on Windows Server 2008
November 12, 2009 Donal Conlon Leave a comment Go to comments
I rarely setup email on my VMs unless I want to do workflow, and when I do it’s something I always forget.
The following articles are good references for getting email setup:
http://mswhs.com/2008/09/10/setup-an-email-server-on-windows-home-server/
http://wiki.uniformserver.com/index.php/SSL_Part_2:_Configure_hMailServer
Not that setting up Windows Server SMTP was always successful, the removal of IMAP/POP service from server 2008 left most people looking elsewhere for a solution.  For me hMailServer works very well.
http://hmailserver.com/
Install hMailServer
Run the install wizard and choose Full Installation to install server and administration tools.
•    Use builtin database engine
•    Configure Administrator Password
Once the installation is complete, it will prompt you for an administrator password.

Select to run the Administration tool on install complete.
Configure hMailServer
The Administrator client will ask the server to connect to.  Select localhost.

Once connected, you will see the administration console.

The first thing we are going to do is add out domain by clicking the ‘Add domain’ button on the welcome page.
Add a domain
On the General tab of the Domains page, enter the name of you domain, and click Save.  In our case it’s “conloso-dev.com”.  You will notice after saving the domain name, it shows up under domains on the left with three folders:
•    Accounts
•    Aliases
•    Distribution lists

Add an Account
Now that we have our domain configured, we can proceed and setup a user account.  Select Accounts in the tree, and click Add.  Enter the email address and password, and click Save.

Configure Local Hosts
Edit the hosts menu and add the following entry:
127.0.0.1       mail.conloso-dev.com

At this point, we have our domain setup and one account created.  We should now be able to test our server by connecting to it from Outlook.

Setup Outlook
If this is the first time Outlook has been launched, you will get prompted to configure an email account.  Select yes.
On the “Add new email account” window, select to manually configure by checking the checkbox at the bottom and click ‘Next’.

Select Internet E-Mail as the account type to setup and click Next.

Note: Make sure the username is the full email address.
Click ‘Test Account settings’ to ensure configuration is correct.
Once successful, click Next to finish the configuration.
Now we are ready to test.  Before actually sending an email, enable logging in the Administration client so you can see what’s happening:
Enable Logging
Under Settings –> Logging, select all the options and click Save.

Now, under Status, click the Logging tab and start logging.  Now when you send your test email from Outlook, you will see hMailServer process it.

Very useful for troubleshooting.  Now you should be able to send an email to yourself from Outlook.  Try creating another account in hMailServer and emailing to and from that.
Troubleshooting
Cannot connect from Outlook
If you are having trouble connecting from Outlook:
1.    Ensure the username is the full email address in account settings
2.    Check ports Outlook is using is same as hMailServer
In Outlook under Account settings, click the More Settings button and switch to the Advanced tab.

In hMailServer, check under Settings -> TCP/IP ports.

After installing SMTP Server features, the Incoming E-Mail Settings must be configured. To configure the Incoming E-Mail Settings, follow the below given steps:

  1. Open the Central Administration console and click Administrator Task Incoming E-Mail Settings and then click the Configure Incoming E-Mail Settings link.

  2. Click Yes under Enable Sites on This Server to Receive E-Mail.

  3. Under Settings Mode, leave Automatic selected.

  4. In the Directory Management Service section, leave No selected. If Yes is selected, users can create distribution groups and contacts, but an AD container needs to be identified where new distribution groups and contacts will be created and additional settings configured. This is a more complex configuration to administer and not recommended for most test implementations.

  5. In the Incoming E-Mail Server Display Address section, adjust the default display address if required.

  6. In the Safe E-Mail Servers section, either select Accept Mail from All E-Mail Servers or Accept Mail from These Safe E-Mail Servers. If the second option is selected, the FQDN (Fully Qualified Domain Name) of the “safe” e-mail server needs to be entered.

  7. Click OK when you are finished.

  8. You will be back to the Central Administration console Home page and the Administrator Tasks list should no longer include the task item for Incoming E-Mail Settings.


To configure SMTP e-mail for a Web application


You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.
User Interface


To Use the UI


1.    Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
2.    In Features View, double-click SMTP E-mail.
3.    On the SMTP E-mail page, type the e-mail address of the sender in the E-mail address text box.
4.    On the SMTP E-mail page, select one of the following delivery methods:
1.    Deliver e-mail to SMTP server: to deliver e-mail messages immediately. This requires an operational SMTP server for which the user has credentials.
2.    Store e-mail in pickup directory: to store e-mails in a file location on disk for later delivery by an application such as an ASP.NET application, or by a user, such as an administrator.
5.    If Deliver e-mail to SMTP server is selected, do the following:
1.    Type the unique name of your SMTP server in the SMTP Server text box or select the Use localhost box to set the name to LocalHost. Setting the name to LocalHost means that ASP.NET will use an SMTP server on the local computer. Typically, this is the default SMTP virtual server.
2.    Enter a TCP port in the Port text box. Port 25 is the SMTP standard TCP port and is the default setting. More than one virtual server can use the same TCP port if all servers are configured by using different IP addresses.
3.    Under Authentication Settings, specify the authentication mode and credentials if your SMTP server requires these.
6.    If Store e-mail in pickup directory is selected, type the batch e-mail location in the Store e-mail in pickup directory text box.
7.    Click Apply in the Actions pane.
Command-line


Deliver e-mail messages immediately


To configure SMTP e-mail to deliver e-mail messages immediately, use the following syntax:
appcmd set config /commit:WEBROOT /section:smtp /from:string /deliveryMethod:network /network.port:int /network.defaultCredentials:True|False /network.host:string /network.userName:string /network.password:string
The variable from string is the e-mail address of the sender. The variable /deliveryMethod:network configures IIS to deliver e-mail messages immediately. The variable /network.port int sets the TCP port that is used by IIS to deliver e-mail messages. The variable /network.host string specifies the host used for SMTP transactions. The variable network.defaultCredentials:True|False enables or disables authentication using the default network credentials. If defaultCredentials is set to True, Kerberos or NTLM will be used if the server supports these protocols. The variables network.userName:string and network. password:string set a Basic authentication user name and password.
Store e-mails for later delivery


To configure SMTP e-mail to store e-mails in a file location on disk for later delivery by an application, such as an ASP.NET application, or by a user, such as an administrator, use the following syntax:
appcmd set config /commit:WEBROOT /section:smtp /from:string /deliveryMethod:PickupDirectoryFromIis|SpecifiedPickupDirectory /SpecifiedPickupDirectory:string
The variable from string is the e-mail address of the sender. The variable/deliveryMethod:PickupDirectoryFromIis|SpecifiedPickupDirectory configures IIS to store e-mails in a file location on disk for later delivery. The variable /SpecifiedPickupDirectory string sets the file location on disk in which to store the e-mail messages for later delivery.
Note
When you use Appcmd.exe to configure the <mailSettings> element at the global level in IIS 7, you must specify /commit:WEBROOT in the command so that configuration changes are made to the root Web.config file instead of ApplicationHost.config.
For more information about Appcmd.exe, see Appcmd.exe (IIS 7).
Configuration


The procedure in this topic affects the following configuration elements:
•    <mailSettings>
For more information about IIS 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.
WMI


Use the following WMI classes, methods, or properties to perform this procedure:
•    SmtpMailSettingsSection
For more information about WMI and IIS, see Windows Management Instrumentation (WMI) in IIS 7. For more information about the classes, methods, or properties associated with this procedure, see the IIS WMI Provider Reference on the MSDN site.