Exchange 2007 OWA trouble

I had a problem at one of my customers today. Suddenly they told me that OWA had stopped working.

 

When I tried it it started loading but it just stopped with the this URL:

https://servername/owa/auth/logon.aspx?url=https://servername/owa&reason=0

After some searching I found this from KB935490 about Roll-Up Fix 2:

Issue 2

Symptoms

When you install Update Rollup 2 for Exchange 2007, you experience the following symptoms:


After the installation of Update Rollup 2 for Exchange 2007 is complete, users cannot log on to Outlook Web Access. In this scenario, the users are redirected to a blank Web page that has a URL that resembles the following:

https://servername/owa/auth/logon.aspx?url=https://servername/owa&reason=0


The following event is logged in the Application log:

Event Type: Error
Event Source: MsiInstaller
Event Category: None
Event ID: 1024
Description: Product: Microsoft Exchange Server – Update ‘Update Rollup 2 for Exchange Server 2007 (KB935490) 8.0.711.2’ could not be installed. Error code 1603. Windows Installer can create logs to help troubleshoot issues with installing software packages. Use the following link for instructions on turning on logging support: http://go.microsoft.com/fwlink/?LinkId=23127
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


The Setup Wizard for Update Rollup 2 for Exchange 2007 displays the following message during the installation of Update Rollup 2 for Exchange 2007:

Setup Wizard for Update Rollup 2 for Exchange Server 2007 (KB 935490) ended prematurely because of an error. Your system has not been modified. To install this program at a later time, please run the installation again.

Cause

This issue occurs if the %SYSTEMDRIVE%ExchangeSetupLogs folder has been deleted, renamed, or moved after the installation of Exchange 2007.
Note The %SYSTEMDRIVE% variable represents the root directory of the drive on which the operating system is installed. For example, %SYSTEMDRIVE% might represent drive C.

Resolution

To resolve this issue, follow these steps:

1.
If the ExchangeSetupLogs folder was renamed or moved, restore it to the root folder of the drive on which the operating system is installed.
Note The ExchangeSetupLogs folder may have been removed, and you may be unable to restore it. In this situation, create an empty folder that is named ExchangeSetupLogs in the root folder of the drive on which the operating system is installed.

2.
Reinstall Update Rollup 2 for Exchange 2007.

 

I simply downloaded Roll-Up Fix 6 and installed it.

Links

Roll-Up Fix 2 http://support.microsoft.com/kb/935490
Roll-Up Fix 6 http://support.microsoft.com/kb/942846

Microsoft ISA Server Resources

Today I found some very good ISA resources on ISAServer.org

ISA Firewall Best Practices, Tips and Tricks (Part 1)

ISA Firewall Dirty Dozen (FAQ)

ISA Server Tools
ISA Server Tools (MS)

Thomas Shinder Blog

Teaching the Boss and the Network Guys About the ISA Firewall (Part 1)
Teaching the Boss and the Network Guys About the ISA Firewall (Part 2)
Teaching the Boss and the Network Guys About the ISA Firewall (Part 3)

ISA Server 2004 Best Practice Analyzer
ISA Server 2006 Best Practice Analyzer

Multiple templates for a document library

Today a customer asked me if he could create multiple templates in the same document library (in our case Excel spreadsheet). The answer is of course Yes. Here is how you do it.

  • From the Site Actions menu, select Site Settings.
  • select Site content types.
  • Click the create link at the top
  • Enter the content type name, description, and parent content type. Use the content type “Spreadsheet”,  give it a description.Set the Parent Content Type, choose Document Content Types/Document.
  • Click the OK button to finalize the creation process.
  • Go to Advanced settings.
  • Use for instance Excel to create a template file.
  • Select “Upload a new document template” and browse to the template. Click Upload.
  • Now go to the document library where you want to add the template and click Settings – Document Library Settings.
  • Select Advanced Settings and change “Allow management of content types” to yes. Click OK
  • Under Content Types click “Add from existing site content types”
  • Choose the one you created and click Add and OK

Content types defined at a site level are available to that site and all subsites. It’s recommended that you don’t change the existing content types. 

Links

http://www.officesharepointpro.com/content/890/Creating-and-Using-a-New-Content-Type-in-SharePoint-2007.aspx

I want Sharepoint to open links in a new window

First, open the schema file for the links list feature.  In my case, it was located at:
C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATEFEATURESLinksListLinksschema.xml
In this file there should be two instances of the following:
 
<Column Name="URL" HTMLEncode="TRUE" /><HTML><![CDATA[">]]></HTML>
 
Replace them both with this:
 
<Column Name="URL" HTMLEncode="TRUE" /><HTML><![CDATA[" target="_blank">]]></HTML>

 

Links

http://weblogs.asp.net/bryanglass/archive/2008/03/07/changing-links-list-in-sharepoint-2007-to-open-in-new-browser-window.aspx

Using Remote Assistance to support users

Create a shortcut to Offer Remote Assistance

On Windows Vista/2008

  1. On the Desktop, Right-Click and select “New” –> “Shortcut”.
  2. Enter “MSRA.exe /expert” (without qoutes) and hit next.
  3. Give the shortcut a name and click Finish.

You can also use MSRA /offerRA [computer]

On Windows XP/2003

  1. On the Desktop, Right-Click and select “New” –> “Shortcut”.
  2. Enter “hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/Unsolicitedrcui.htm” (without qoutes) and hit next.
  3. Give the shortcut a name and click Finish.
  4. If you want the typical remote assistance icon go to WINDOWSsystem32 and choose rcimlby.exe

Group Policies

You will also need some GPO settings for Remote Assistance and Windows Firewall (if it is on, which it should be)

Remote Assistance

Computer Configuration
   Administrative Templates
      System
         Remote Assistance
            Offer Remote Assistance                                             Enabled
               Allow helpers to remotley control the computer            DomainHelperGroup

Firewall

Computer Configuration
   Administrative Templates
      Network
         Network Connections
            Windows Firewall
               Domain Profile
                  Windows Firewall: Define Program Exceptions            Enabled
                     %systemroot%system32sessmgr.exe:*:enabled:sessmgr.exe
                     %systemroot%PCHEALTHHELPCTRBinarieshelpsvc.exe:*:enabled:helpsvc.exe
                  Windows Firewall: Define port exceptions: Enabled
                      135:TCP:[subnet or adresses]:enabled:Offer Remote Assistance – Port   

Links

http://www.vistax64.com/vista-general/27431-shortcut-offer-remote-assistance.html
http://www.errorforum.com/microsoft-windows-vista-error/1034-windows-vista-tip-offer-remote-assistance.html
http://brettlive.com/2007/02/28/offer-remote-assistance-in-vista/
http://support.microsoft.com/kb/555179
http://www.windowsnetworking.com/articles_tutorials/Using-Remote-Assistance-Windows-Firewall-Enabled.html

Mapping printers on Computer Group Membership

Here is an example on how to use the group membership for a computer to control Default Printer

; Mapping Printers

; Deleting printers
$result=DelTree("HKEY_CURRENT_USERPrintersconnections")
; Adding Printers
$result=ADDPRINTERCONNECTION ("\Server01Printer1") 
$result=ADDPRINTERCONNECTION ("\Server01Printer2")
AT (16,21) "Setting default Printer...        "
If ComputerInGroup ("Group1") = 1 
    $ = SetDefaultPrinter ("\Server01Printer1")
EndIf
If ComputerInGroup ("Group2") = 1 
    $ = SetDefaultPrinter ("\Server01Printer2")
EndIf

; ***** UDF ComputerInGroup *****
Function ComputerInGroup($group,optional $Domain) 
   Dim $oGrp
   if not $domain $domain=@domain endif
   $oGrp = GetObject("WinNT://" + $domain + "/" + $group + ",group" )
   if @error exit 1 endif
   if $oGrp.IsMember("WinNT://" + $domain + "/" + @wksta + "$$" )
      $ComputerInGroup=1
   else
      $ComputerInGroup=0
   endif
endfunction

Links

http://www.adminscripteditor.com/forum/tm.asp?m=10925

How do I reset my Windows Media Player library

    1. Close Microsoft Media Player for at least 30 seconds
    2. Click Start and then Run
    3. Type the following into the textbox:

      %userprofile%Local SettingsApplication DataMicrosoftMedia Player

    4. Click OK and a folder showing you your library files will appear
    5. Erase all the files that end with .wmdb
    6. Open Microsoft Media Player
    7. Push F3
    8. Select the locations for your music files
    9. WMP will reindex your music

    Links

    http://www.tech-recipes.com/rx/1045/wmp_how_to_erase_reset_correct_windows_media_library

    Event ID 7024 and Event ID 10010 when starting bits

    You get the following error messages when starting BITS:

    Event ID 7024 “BITS terminated with service-specific error 2147942405 (0x80070005)”
    Event ID 10010 The server {4991D34B-80A1-4291-83B6-3328366B9097} did not register with DCOM within the required timeout.

    The problem is security settings on the folder C:Documents and SettingsAll UsersApplication DataMicrosoftNetwork

    verify that SYSTEM has full access to this folder and the path that leads to it.

    Links:

    http://www.faqshop.com/misc/default.htm?http://faqshop.com/misc/bits/event%20id%207024.htm#Top
    http://www.nusnet.nus.edu.sg/sus/adminguide.htm

    How do I install a BackupExec Agent without rebooting?

    When you install the Veritas Backup Exec Agent the normal way the computer reboots (sometimes without asking 🙁 )

    My colleague Peter told me how to do it on version 10d:

    • Copy the folder C:Program FilesVERITASBackup ExecNTAgentsRant32 to the computer where you want to install the agent.
    • Run setupaa.cmd

    Thank you Peter…

    A critical Windows Media Center process has failed. Please contact your hardware manufacturer and restart the computer

    I had a problem with my Media Center PC today… Went I went into Recorded TV i got the following error:

     

    “A critical Windows Media Center process has failed. Please contact your hardware manufacturer and restart the computer”

     

    I also got these in the eventlog:

     

    Fault bucket 175194775, type 5
    Event Name: CLR20r3
    Response: None
    Cab Id: 0

    Problem signature:
    P1: ehrec.exe
    P2: 6.0.6001.18000
    P3: 4791937d
    P4: ehepg
    P5: 6.0.6000.0
    P6: 4791a67a
    P7: 3a6
    P8: 0
    P9: .NullReferenceException.431366F5
    P10:

    Attached files:
    C:ProgramDataMicrosoftWindowsWERReportQueueReport0ff02cc6WERF878.tmp.version.txt
    C:ProgramDataMicrosoftWindowsWERReportQueueReport0ff02cc6WERF888.tmp.hdmp
    C:ProgramDataMicrosoftWindowsWERReportQueueReport0ff02cc6WER2A19.tmp.mdmp

     

    Fault bucket 175194775, type 5
    Event Name: CLR20r3
    Response: None
    Cab Id: 0

    Problem signature:
    P1: ehrec.exe
    P2: 6.0.6001.18000
    P3: 4791937d
    P4: ehepg
    P5: 6.0.6000.0
    P6: 4791a67a
    P7: 3a6
    P8: 0
    P9: .NullReferenceException.431366F5
    P10:

    Attached files:
    C:ProgramDataMicrosoftWindowsWERReportQueueReport0f9a65b6WER354F.tmp.version.txt
    C:ProgramDataMicrosoftWindowsWERReportQueueReport0f9a65b6WER3550.tmp.hdmp
    C:ProgramDataMicrosoftWindowsWERReportQueueReport0f9a65b6WER62CA.tmp.mdmp

     

    The problem turned out to be that the xml file containing the recording information was corrupt. I finally found a solution to the problem but unfortunately it meant erasing the file and loosing all of your recording info, which you will need to recreate. Follow this and it will work:

     

    1.  Right click on “Computer” and select “Manage”.

    2.  Open up the services and get ready to temporarily shut down the “Windows Media Center Scheduler Service” and “Windows Media Center Receiver Service”.

    3.  Open up the following directory “C:ProgramDataMicrosofteHomeRecording”.

    4.  Shut down both of the Media Center services in #2 above and quickly rename (or delete) the “Recording.xml” and “Recording.xml.bak” (the Media Center Services restart for some reason and you can’t properly delete the recording schedule data without having them shut down).

    5.  Start the service “Windows Media Center Service Launcher” (this will start both of the other services correctly).

    After this, Media Center will recreate the Recordings.xml file and you can reprogram your scheduled recordings.

     

    Source:

    http://thegreenbutton.com/forums/2/207872/ShowThread.aspx