| Edward's profileEd McKinzie's Technical ...BlogListsNetwork | Help |
Ed McKinzie's Technical BlogExchange 2003\2007 - Windows 2003\2008 - LCS 2005\OCS 2007 - Active Directory - PowerShell - Vbscript Technical Resource |
||||||
|
April 01 How to recover an Exchange 2007 CCR Node in a DR situation.In my test lab, I wanted to determine the best way to recover a CCR node in the event the server fails due to corruption, hardware failure or the OS just tanks. Here are the steps I have found to work: (Taken from: http://technet.microsoft.com/en-us/library/bb124095.aspx)
March 25 How to install Data Protect Manager 2007 and backup Exchange 2007 on Windows 2008.Since the inception of Windows 2008 Server and Exchange 2007, 2008 Server is no longer able to perform Exchange aware backups using NTbackup or now known as Windows Server Backup. In my opinion, the disconnect between the Microsoft's Exchange and Windows Dev teams, is now even more obvious. I suspect they have been getting hammered by the Exchange community who upgraded their systems and were unaware of this major flaw. (Hey MS, don't you guys have internal news groups??? :) ) Anyways, the fix is to either go buy some type of 3rd party app, be it software or SAN initiated, or use Microsoft's Data Protection Manager 2007. Either is likely not cheap, especially if you have a large Exchange environment. This is what I have installed from my Virtual Server environment.
Note: Before this part is completed, the assumption here is you already have Active Directory and your CCR cluster configured. I will have another blog shortly describing these steps. On the DPM Windows 2008 Server:
You should now be able to go into the DPM Management Console and add Disks and Protected Groups. Happy Hunting... Ed McKinzie March 17 How to enable LDAP over SSL using Subject Alternate NamesWith multiple Domain Controllers in AD, it makes little sense to hard-code any DC within programming code, applications and user profiles. The main reason being a single point of failure, such as during maintenance windows or if a physical machine unexpectedly dies off. The best way to mediate this is to create a DNS Round Robin for a friendly name, such as LDAP.Domain.com, and list several Domain Controllers as possible end points. The trick however, you must configure the Domain Controllers with a certificate from either your internal PKI or a 3rd party CA, such as VeriSign. Installing this cert is a requirement to talk SSL\TLS LDAP using subject alternate names. Here are two KB articles that outline the process:
There are 4 key steps to follow:
==========================================================================================
[Version]
Signature="$Windows NT$
[NewRequest]
Subject = "CN=dc1.contoso.com" ; must be the FQDN of domain controller (EDIT THIS AND ADD THE FQDN OF YOUR DC)
EncipherOnly = FALSE
Exportable = FALSE ; TRUE = Private key is exportable
KeyLength = 1024 ; Common key sizes: 512, 1024, 2048, 4096, 8192, 16384
KeySpec = 1 ; Key Exchange
KeyUsage = 0xA0 ; Digital Signature, Key Encipherment
MachineKeySet = True
ProviderName = "Microsoft RSA SChannel Cryptographic Provider"
ProviderType = 12
RequestType = CMC
[EnhancedKeyUsageExtension]
OID=1.3.6.1.5.5.7.3.1 ; Server Authentication
[RequestAttributes]
CertificateTemplate = WebServer ;Omit line if CA is a stand-alone CA
SAN="dns=dc1.contoso.com=.contoso.com&dns=ldap.contoso.com" (EDIT THIS)
;Note: The first SAN Entry must be the FQDN of the Domain Controller. If it is not, Secure LDAP will not function.
==========================================================================================
You can and should delete any other certs in the DC computer store, as they will cause problems due to caching of certs within SCHANNEL as there is no way to know which cert the LDAP client binds to. December 10 Communicator 2007 \ Outlook 2007 Integration errorThere was a problem connecting to Microsoft Office Outlook. Your Outlook profile is not configured correctly. Contact your system administrator with this information." I have read several blogs and forums regarding this topic. I have ran the gauntlet of uninstalling Communicator 2007, Outlook 2007, Exchange System Manager 2003, and several hotfixes, but nothing has seemed to fix the issue. Until now. The simple fix was to run FIXMAPI from a command prompt. The file itself is located in the "C:\Windows\System32" directory. I opened a command prompt and ran the FIXMAPI executable. It returns no errors or output stating it ran. My assumption here is it replaces or removes a lock on the mapi32.dll that is shared among the Office and OCS products. Once you run it, restart Outlook and Communicator 2007. I now no longer get the Outlook Integration errors. Fixmapi is described here: http://msdn.microsoft.com/en-us/library/bb927655.aspx and http://support.microsoft.com/kb/228457. -E November 20 Programmatically backup a Certificate Authority using Certutil -backupHere is the Technet Article explaining the process. http://technet.microsoft.com/en-us/library/cc738780.aspx Copy this to a batch file and run it. I typically schedule the job to run once daily, as the Local System Account. Note, the local computer account will need write access to the directory or share you are copying the database to. You should also place a secure password in the command. certutil -backup -p "password" -f -gmt -seconds -v \\ServerName\CABackup\ The directory should look similar to this after the script runs. November 19 Windows 2003 DCPROMO Fails: "Version of the active directory schema of the source forest is not compatible"This issue may occur when Active Directory has not been updated with the Windows Server 2003 R2 schema extensions. To resolve this issue, run the adprep.exe /forestprep command from the Windows Server 2003 R2 installation disk 2 on the schema master. To do this, insert the Windows Server 2003 R2 installation disk 2, and then type the following command: Drive:\CMPNENTS\R2\ADPREP\adprep.exe /forestprep Once, complete, rerun your DCPROMO and the issue should be resolved. November 10 Cannot Open XNK or Public Folder Links in Outlook - Unblock attachments.By default Public Folder Links are blocked in Outlook. There may be times when your users need to send a link to a Public Folder thru Outlook. Not only are the attachments blocked, the Operating System, such as XP or Vista does not have a file association by default for these attachment types. I have put together a list of registry keys that do two things.
1.) Associate the *.xnk file type to be used with Outlook.
2.) Unblock the *.xnk file type within Outlook, which enables you to send, receive, view and open the attachment.
Here are the registry keys. Highlight the bold text and save to a file named Outlook-XNK.REG. Note, I am running Outlook 2007 and Vista 32 bit. For a complete list of blocked attachments in Microsoft Outlook, click HERE. How to articles click HERE.
===================================================================
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.xnk]
@="xnkfile" [HKEY_CLASSES_ROOT\.xnk\xnkfile]
[HKEY_CLASSES_ROOT\.xnk\xnkfile\ShellNew]
[HKEY_CLASSES_ROOT\xnkfile]
@="Exchange Shortcut" "NeverShowExt"="" "IsShortcut"="" [HKEY_CLASSES_ROOT\xnkfile\DefaultIcon]
@="C:\\Program Files\\Microsoft Office\\OFFICE12\\OUTLOOK.EXE,1" [HKEY_CLASSES_ROOT\xnkfile\shell]
@="Open" [HKEY_CLASSES_ROOT\xnkfile\shell\Open]
[HKEY_CLASSES_ROOT\xnkfile\shell\Open\command]
@="\"C:\\Program Files\\Microsoft Office\\OFFICE12\\OUTLOOK.EXE\" /x \"%1\""
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security]
"OutlookSecureTempFolder"="C:\\Users\\mckinziee\\AppData\\Local\\Microsoft\\Windows\\Temporary Internet Files\\Content.Outlook\\PLSVBBBP\\" "Level1Remove"=".xnk" =================================================================== October 30 Virtual PC Virtual Networking and Connecting to the Internet using NAT or Network SharingI have run into a few issues trying to get Networking to work properly with Virtual hosts and Virtual PC 2007 SP1. I can get them to talk within the Local Network (Using the Local only settings) or installing a Microsoft Loopback Adapter, but I need the Virtuals to be able to talk to each other and access the Net. I have found a couple of good Microsoft whitepapers describing some of the nuances and work arounds to make it happen. Hopefully if you read this, you'll find it helpful.
Ed McKinzie
To set up a networking scenario in which multiple virtual machines use a single network subnet, you can use two solutions:
· If the virtual machines do not need to communicate with the host computer, then use the Local only setting for the network adapters on each virtual machine.
· If the virtual machines need to communicate with the host computer, then install a Microsoft Loopback Adapter on the host computer and select the Microsoft Loopback Adapter setting for the network adapters on each virtual machine.
To set up a networking scenario in which one or more virtual machines connect to the external network or the Internet, you can use three solutions.
Configuring the virtual machine network adapter to use the host network adapter is an easy way to connect a virtual machine to the external network. However, this solution might not work in all situations. If the host network adapter is a wireless network adapter, then the Virtual Machine Network Services driver will not be able to send out network packets with a different MAC address. For security reasons, the wireless networking standard does not allow a different MAC address.
As an alternative to using the host network adapter, you can configure the virtual machine network adapter to use the Shared networking (NAT) setting. This solution does not have the disadvantages associated with using the host network adapter. When you have a wireless network adapter on the host computer, you can connect your virtual machines to the Internet by configuring them to use Shared networking (NAT). This setting also works when you can have only one external IP address, such as when using a dial-up connection or a connection from a hotel room.
This solution also has a few disadvantages. When you use the Shared networking (NAT) setting, the virtual machine cannot connect to other virtual machines, nor can the host computer connect to the virtual machine. You cannot change the IP range that is used (192.168.131.1 to 192.168.131.253), and you must use dynamically assigned IP address on the network adapter on the virtual machine.
The third way to let virtual machines connect to the Internet is to use a Microsoft Loopback Adapter and enable ICS on the host network adapter. Unlike using Shared networking (NAT), using a Loopback Adapter and ICS on the host computer lets virtual machines connect to the host computer, other virtual machines, and the external network.
To set up Internet connectivity from virtual machines by using ICS on the host computer:
1. On the host computer, install the Microsoft Loopback Adapter according to the instructions provided earlier in this section.
2. Open the Network Connections window.
3. In the Network Connections window, right-click the network adapter that is connected to the external network, and then click Properties.
4. In the Local Area Connection Properties dialog box, on the Advanced tab, select the Internet Connection Sharing check box.
5. If you have more than two network adapters, then in the Home networking connection list, select the Loopback Adapter.
6. Click OK to close the Local Area Connection Properties dialog box.
ICS will set the IP address of the Loopback Adapter to 192.168.0.1.
7. Close the Network Connections window.
8. In the Virtual PC Settings dialog box for the virtual machine, configure the network adapter to use the Microsoft Loopback Adapter setting.
You cannot change the IP range that ICS uses.
Note: You can then change the IP addresses of your Virtual Servers to any 192.168.0.X IP address, using either a Ethernet or Wireless Network Card. The Virtuals can also talk to one another, which is ideal for test environments.
September 02 Virtual PC 2007 Sound Card Emulator Installation (Sound Blaster 16)I have a series of applications I needed to test audio, namely Microsoft Live Meeting 2007 (Audio\Video). However, as most of you know, audio drivers or emulators are not installed by default with Microsoft Virtual PC 2007. In order to get it to work on Windows Server 2003, you must copy two files off of a Windows XP cd and place them on the virtualized system. The two driver files you need are wdma_ctl.inf and ctlsb16.sys. I want to note that this does not work for Virtual Server 2005, only Virtual PC 2007. Here are the steps: From a command prompt on a Windows XP system, run this command: "%windir%\driver cache\i386\driver.cab" -F:ctlsb16.sys c:\ This will extract the ctlsb16.sys to your root c:\. If it does not, from the extracted CAB driver window that popped up, copy the ctlsb16.sys file manually to the root of C:\. The wdma_ctl.inf file is also located at C:\WINDOWS\inf folder on the Windows XP system. Copy these two files over to the Virtual PC. From the Device Manager on the Virtual PC instance, perform a Have Disk during the device installation and direct the install to *.inf file you copied over. Reboot the workstation as necessary. You may have to enable the sound device from the control panel after the server is booted. You may also want to place an audio icon on the task bar....which is also done from the control panel. Ed McKinzie August 13 Exchange 2007 Setup Error: Service "MSEXCHANGETransport" failed to reach status 'running' on this serverScenario: Installing Exchange 2007 SP1 on Windows Server 2008 Server, in a new Forest, new Domain deployment. During the HUB Transport Server Role install, the E2K7 install failed with this error: Hub Transport Role After some digging and Google research, it appears the problem stems from IPv6 being disabled on the servers NIC. I had disabled IPv6 when the server was first installed on the network, knowing it was not necessary for my networks' topology. Evidently Exchange 2007 requires otherwise. Re-enabling IPv6 and booting the server resolved the issue. Ed McKinzie August 07 Unable to Update Your Free/Busy Information - Outlook 2003\2007 - Exchange 2003I have had numerous complaints about users having problems either seeing other users' Free/Busy information, having problems updating their Delegation settings and\or users' having difficulty Accepting a meeting request on behalf of another user. (Awarded by way of Delegated rights). There are a varying degree of error messages, such as: "Unable to update your free/busy information" or "The Delegates settings were not saved correctly", etc. This has been an ongoing issue, that I believe we have made progress on understanding. I always give props, when props are due, so I wanted to mention a great article I found that was written by JD Wade. The article can be found here: Free/Busy Article. How Free/Busy works: Free/Busy information is stored in a dedicated system folder called SCHEDULE+FREE BUSY on the Public Folder Server. This folder contains a separate sub-folder for each Exchange administrative group. When a user publishes his Free/Busy data, Exchange posts this information in a message in the appropriate sub-folder that now functions in a manner similar to the offline address book folders. A hidden message is also added into the actual Exchange Mailbox to keep track of the Free/Busy data. Every time a user receives a meeting or calendar request, this message gets updated. If that file becomes corrupt, any subsequent files are also corrupt. Deleting the Free/Busy message off of the Public Folder server should force the removal of the hidden message in the Exchange mailbox. For initial troubleshooting of Free/Busy issues you can try one of 2 things:
More advanced Fix attempts are:
1. Check for uppercase characters in the free/busy message
2. Check the SiteFolderServer setting 3. Recreated the calendar folder You can also use the MAPI Editor Tool to manually delete the Free/Busy message off of the server. You will need to create an Outlook profile for the mailbox you want to repair: 1. Choose Session and Logon and Display Store Table Here is the hidden message in Exchange Mailbox: Here is the Free/Busy Message on the Public Folder Server. Each user mailbox is represented by ExchangeLegacyDN attribute, which is highlighted below. Ed McKinzie July 29 How to add a Subject Alternative Name to a secure LDAP certificateI commonly need to use PKI certificates that are bound to a single IP address but host multiple DNS service names, typically spanning several ports. This can easily be done by adding Subject Alternate Names to a certificate. However, if you are using an internal Windows Certificate Authority, you must first enable this feature. To do so, follow this KB.
How to configure a CA to accept a SAN attribute from a certificate requestBy default, a CA that is configured on a Windows Server 2003-based computer does not issue certificates that contain the SAN extension. If SAN entries are included in the certificate request, these entries are omitted from the issued certificate. To change this behavior, run the following commands at a command prompt on the server that runs the Certification Authority service. Press ENTER after each command.
certutil -setreg policy\EditFlags +EDITF_ATTRIBUTESUBJECTALTNAME2
net stop certsvc net start certsvc How to use Web enrollment pages to submit a certificate request to a stand-alone CATo submit a certificate request that includes a SAN to a stand-alone CA, follow these steps:In the Attributes box, type the desired SAN attributes. SAN attributes take the following form:
san:dns=dns.name[&dns=dns.name]
I have added several dozen DNS names on a single cert that has worked well.
Ed McKinzie
July 15 EFS using internal PKI Certificates / Recovery Agent CertificatesSituation: We have an EFS deployment where we can encrypt Files and folders based on the Domain GPO policy. Unfortunately, the Recovery Agent certificates expired causing the encrypted services to begin to fail. Here is what we did to fix the issue. Keep in mind we use an internal PKI infrastructure to issue certificates. Securing the Default Recovery Key for the Domain THIS WAS NOT AN OPTION FOR ME, AS MY FIRST DC HAS LONG BEEN RETIRED, BUT I WANTED PEOPLE TO BE AWARE OF THIS. Requesting a File Recovery Certificate I am assuming you already have a CA installed and have already created a user account(s) to be used as the recovery Agents. They can be simple user accounts in the domain, if you have not. In my example I am using EFSUSER1 and EFSUSER2. Add the Domain Recovery Agents group to the EFS Recovery Template. 5. Double-click EFSRecovery in the right pane. 8. With the two accounts selected in the top pane, select the Enroll check box in the bottom pane. Assign a Certificate to the EFS Accounts.
June 10 How to determine who is an Exchange Delegate or Delegate OF a mailbox (publicdelegates or publicdelegatesBL)In Exchange 5.5, 2000, 2003, or 2007 there many instances where a user has defined a delegate to their mailbox. This is due to many reasons, such as Secretary or Assistant permissions for Calendaring, Inbox, Task and Journaling management. There is a whole plethora of reason to do it. However, along with it comes lots of potential issues. We'll get to those later. From within Outlook, Select Tools --> Options --> Delegates. From this panel you can add Delegates as desired. However, the Outlook client is the only way for a non-administrator to know any Delegates are in fact assigned. You can however, poll Active Directory by using custom scripts or via ADSIedit and attain the Delegate settings. There are two attributes in AD that hold this information. In your custom script, be sure to adjust to multi-string values, just in case someone is a Delegate on multiple mailboxes. Such as: If IsArray(oUser.publicdelegates) Then If IsArray(oUser.publicdelegatesBL) Then =============================================================================== Now on to potential problems. Here is a Scenario: If a user is a Delegate or has a Delegate assigned, and they have been set to "Receive a copy of the meeting request or message". One of the Delegates accounts is then deleted or removed from Exchange. The Delegate is still listed on one of the mailboxes. If a message or meeting request is sent or accepted a NDR could be generated. The error will look similar to: "Your message did not reach some or all of the intended recipients." or "You do not have permission to send to this recipient. For assistance, contact your system administrator ". The reason why is when an individual is added as a Delegate a hidden rule is assigned to the mailbox. When a Delegated user account is deleted, they can become orphaned. Several things to look at are the two attributes above and determine if one of the entries is stale. The other option is a Microsoft Provided tool called MFCMAPI which can be found here along with instructions. http://support.microsoft.com/kb/924297. In my experiences, the easiest tactic is to add the Delegates back and then remove them. This often toggles the attribute and removes the orphaned or problematic account. Happy Hunting. Ed McKinzie
|
|||||
|
|