Wednesday, December 05, 2007

Exchange 2007 SP1 and OCS UM notes and gotchas !

So you've download Exchange 2007 SP1 and want to install it on your UM server that is integrated with OCS!?

If this is your first OCS integration then you should start is by downloading the documentation and if you've earlier downloaded the Office Communications Server and Client Documentation Rollup then you should go to the Office Communications Server 2007 Technical Library and find the documents updated to version 1.1 (Quite a few of the planning and deployment guides are updated to version 1.1 - not the Enterprise Voice Planning and deployment guide though)

Then the next place you should start reading is the SP1 Release Notes and especially the part covering Unified Messaging and "Issues related to the Unified Messaging server role"

In short the important general issues are -

  • The Unified Messaging Server role must be installed on a dedicated role (Like in the Beta's)
  • Configuration data is overwritten during installation !
  • You must remove any language packs installed before installation of SP1

And most importantly when integrating with OCS the following issue apply -

  • The Exchange UM server itself cannot request the MRAS credentials required to initiate an outbound call to a remote user (A user on the Internet External to the Edge), so for Play on Phone to work in this scenario the UM Server role needs to have cached credentials from a previous incoming call and reuse these !! (Read the full evasive explanation in the Release Notes)

There are a few other smaller issues applying to OCS/UM but the above is by far the most important one (And I guess hours could be spent troubleshooting if you are not aware of this issue)

Friday, November 30, 2007

Exchange 2007 SP1 available for download

As announced yesterday in the TechNet flashes Exchange 2007 SP1 is now available for download here.

Of course I'm most interested in the Unified Messaging enhancements, but there many other interesting improvements as the import/export of PST files which is very interesting for our migration projects (And we also look forward to better stability of the product due to all the included fixes)

Following is an overview of the changes from the download site -

Anywhere Access

  • Integrated Exchange Unified Messaging functionality with Microsoft Office Communicator 2007 and Microsoft Office Communications Server 2007.
  • Outlook Web Access additions, including public folder access, S/MIME support, personal distribution lists, and mailbox rules editor.
  • Webready document viewer supports Microsoft Office 2007 documents in addition to Microsoft Office 2003 documents.
  • Extended language support in Outlook Web Access with Arabic and Korean spell checking.

Operational Efficiency

  • Support for Windows Server 2008 deployments, including benefits in flexible clustering, advanced networking, and simplified management.
  • Additional tools in the Exchange Management Console, including public folder management and configuration options for clustering and POP/IMAP access.
  • Improvements to the Exchange Management Shell syntax and import-export PST in the move-mailbox command.
  • Wider variety of web services for application development, including public folder access, delegate management, and folder level permissions.

Built-in Protection

  • Addition of Standby Continuous Replication (SCR) for site resilient high availability deployments.
  • Extended Exchange ActiveSync policies for mobile policy enforcement.
    Information rights management pre-licensing by the Hub Transport role.
  • Secure Real Time Protocol (SRTP) support in the Unified Messaging role.
    Support for IPv6 when using Windows Server 2008.

Monday, November 26, 2007

Invoke-VbScript

Note: The script has been updated, see this post.

One of the best features of PowerShell is the ability to do the same on the command line as in a script. Even Command Prompt do not support than.

But as VBScript is not dead yet - I'm currently doing more than 3000-lines of it - this script is useful as it allows you to execute VbScript interactively. It has two uses: 1) Test VBScript details without having to run a huge script 2) Use VBScript features than you do not know how to do in PowerShell.

The script Invoke-VbScript.ps1

param($vbCode,[switch]$ExecuteStatement)

function PrepareVB {

$vb=new-object -com MSScriptControl.ScriptControl
$vb.language="VBScript"
$vb
}

$vb=PrepareVB
if ($ExecuteStatement.isPresent) {
$vb.ExecuteStatement($vbcode)
}
else {
$vb.Eval($vbcode)
}



Execute command example -


PS> Invoke-VbScript -exe 'msgbox("hi")'



Evaluate expressions and return result example -


PS> $name=Invoke-VbScript 'InputBox("Enter your name","Test")'



Have fun!

Sunday, November 25, 2007

VMRCplus v1.6

Just saw that VRMCplus that I wrote about earlier has been updated to v1.6. Get it here.

The changes are (taken from this blog post)

So what is new in 1.6.0?
First of all, the UI reflects Virtual Server terminology. Both Paul and I had used a mix of Virtual Server terminology and internal (SDK) terminology. To reflect the terminology used in the web administration UI of Virtual Server, the terminology of VMRCplus has been updated.
Second, VMRCplus now offers configuration of scripts on both the Virtual Server and Virtual Machine level. This was missing from the previous release.
Third, VMRCplus offers configuring promiscuous mode on the network so you can trace traffic in the virtual switch. This is something Virtual Server does not offer in the web administration UI.

Of course there have been minor enhancements like storage of Console Manager coordinates, conflict handling when a shortcut already exists (something Virtual Server fails to resolve).

The COM and LPT port assignment logic has been fixed (most of it did not work).
The x86 installer package no longer installs on x64. This has been done to prevent issues with 32-bit VMRCplus on 64-bit Virtual Server.

Error handling has been enhanced and several issues have been fixed.

Tuesday, November 13, 2007

Met MOW

I managed to meet MOW at Ask-the-Experts today. MOW is famous within the PowerShell community for his PowerTab function and he is running thepowershellguy.com blog.

If you haven't done so already - get a copy of Powertab now!

Well, it was fun meeting him and discuss some of the features I'm missing. On is -

  • dir $folder\[tab] should expand into dir $folder\file

An I gave my regards for PowerTab as such and the new constructor feature - try it yourself -

  • [system.diagnostics.process]:

Anyway, the PowerShell v2 CTP enables him to do a full tokenizing of the command line, so even better  intelligence will be possible.

Monday, November 12, 2007

Viridian becomes Hyper-V

Marketing is a strange beast. Server virtualization in Windows Server 2008 - e.g. the replacement of Virtual Server - will be called Hyper-V. I already hate that name! HyperV perhaps - but why the hyphen??

Anyway, Hyper-V will be a server feature that can be turned on. Microsoft is also planning a Hyper-V Server SKU.

Hyper-V is still expected to be delivered 6 months after Windows Server 2008.

On the management side, it was demoed at the keynote here in Barcelona, a virtual server manager that could manage Virtual Server 2005, Hyper-V *and* WMware server!

Teched IT-Forum Barcelona

(I apologize for these reposts. Windows Live Writer does not seem to be able to edit posts!?)

This is the first time I'm using the released Windows Live Writer to post here, so bear over with me if it does not work as expected ;) The new Windows Live Writer seems to support pictures and formatted PowerShell scripts, so it is much better than using the webpage.

In this year's Teched IT-Forum I'm going to focus on Windows Server 2008 and the System Center products - most ConfigMgr and OpsMgr. And then this is going to be a great PowerShell week. The CTP of V2 has been released and I hope to get in touch with some of the PowerShell staff as I have about 45 things I would like to discuss with them. I also hope to get in touch with some of the other people from the community.

Thursday, November 01, 2007

Microsoft Quality of Experience Monitoring Server RTW'ed

After you've deployed OCS and enabled Enterprise Voice (Even works with PC to PC Communication) you will get calls from users saying that I had this & this conversation and voice quality was really bad.
During the OCS beta's the only answer was "hmmmm .... ok - can you try again" but then later the rescue came from the QoE Monitoring Server Beta, which has now RTW'ed -

The QoE Monitoring Server is a new server role for Microsoft Office Communications Server 2007 Standard Edition or Enterprise Edition. It provides the information that you need in order to better understand the media quality that your users are experiencing in your Office Communications Server 2007 deployment. With QoE Monitoring Server, you can do the following:
  • Gather statistics on media quality of locations or based on a grouping of subnets
  • Proactively monitor and troubleshoot media quality of experience issues
  • Perform diagnostics to diagnose VoIP user complaints
  • View trends which can help you with post-deployment growth and measure results against the service level agreement
The QoE Monitoring Server collects quality metrics at the end of each VoIP call from the participant endpoints, including IP phones, Microsoft Office Communicator 2007, the Microsoft Office Live Meeting 2007 client, and Microsoft Office Communications Server 2007 A/V Conferencing Server and Mediation Server. These quality metrics are aggregated and stored in a SQL database. The data can then be used to alert you to abnormal media quality conditions and also to generate routine media quality reports.

Find it here

Wednesday, October 31, 2007

Passed the 70-638 OCS Beta Exam ;-)

Not that I was worried in anyway :-S but other bloggers and some of my students from my Unified Communications Bootcamps already reported that they had passed the exam (Called 71-638 while in beta) .... and I haven't received an e-mail about passing.

I'm in Seattle this week and was chatting with a colleague who haven't received an e-mail either, so I re-checked today and yes I did indeed pass it ;-)



Now again, I wasn't really worried - but I guess I will treat myself with an extra beer tonight at Jillians ;-)

Sunday, October 21, 2007

Call-Method v2

This is a follow-up article to Call-Method.

When PowerShell pipes a collection or array, it unwraps the object and passes the individual items in the collection/array. This is normally a very useful behavior, but if you pipe to function like Get-Member and Call-Method, you do not always get
what you want. Let me show how it works -


# Construct an array
$array=1,2,3

# Pass the array down the pipeline
# Gettype will be called 3 times for each integer
# in the array
$array | cm gettype

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Int32 System.ValueType
True True Int32 System.ValueType
True True Int32 System.ValueType

# Wrap array with the array operator. This changes
# nothing as the array operator only creates an array
# if there is none
@($array) | cm gettype

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Int32 System.ValueType
True True Int32 System.ValueType
True True Int32 System.ValueType

# Pass an array with the first argument being our
# array - this works
,$array | cm gettype

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Object[] System.Array

# Use the updated Call-Method and use the InputObject
# argument - like the one found on Get-Member
cm gettype -InputObject $array

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Object[] System.Array


## This is the updated Call-Method function

function Call-Method($method,$InputObject) {
begin {
if ($inputObject) {
$m=$inputObject.$method
$m.invoke($args)
}
}
process {
if ($_) {
$m=$_.$method
$m.invoke($args)
}
}
}
new-alias -force cm Call-Method

Call-Method

When you are using PowerShell, you often have to call a method. Calling a method is not difficult -
$s="abc"
$s.toUpper()
ABC
but you kind of have to change gear - you have to switch from the PowerShell way of doing things to the .Net / programmatic way. This is no problem if you know it - but it is hard to teach someone, especially if they do not have a programming background.

So, why not create a function and do it the PowerShell way? The function is actually very simple -

function Call-Method($method) { process { $m=$_.$method; $m.invoke($args) } }


And add an alias to minimize the typing -
new-alias -force cm Call-Method


Now it is simple to call methods without dots and parenthesises -
"abc" | cm toupper
ABC
"abc" | cm indexof b
1
"abc" | cm substring 1
bc
$s="abc"
$s[($s | cm indexof b)]
b

Have fun!

Friday, October 12, 2007

Microsoft Unified Communications Partner of the year

Last night Inceptio received the Microsoft Unified Communications Partner of the year award ;-)

According to Microsoft this was due to our contributions to Unified Communications area in the past year delivering lots of Proof of Concepts, UC Bootcamps and UC projects, furthermore we contributed to the fact that UC and Microsoft now has become interconnected terms.

Thank you to all of my colleagues and all of you out there who helped Inceptio succeed in the UC space !!

Microsoft Office Communicator 2007 Hotfix released

Microsoft released a hotfix for Office Communicator 2007 that fixes some different minor issues with OC and presence -
  • 942566 Error message in Communicator 2007: "An error occurred while trying to start the conference" or "This message was not delivered to all participants"
  • 942568 The text alignment in an e-mail message may be incorrect in Communicator 2007
  • 942569 The Russian language name is spelled incorrectly in the list of available languages in Communicator 2007
  • 942570 The telephone number in a Communicator 2007 pop-up window for an incoming call has an incorrect text direction when the language is set to Arabic or to Hebrew
  • 942671 A new policy is available to specify the Contacts store that Communicator 2007 uses
  • 942674 Unrecognizable characters appear in the date field of the display on a Unified Communications device that is used with Communicator 2007
  • 942677 The transport option is not automatically set to TLS when you click "Manual configuration" in "Advanced Connection Settings" in Communicator 2007
  • 942857 Menu items are truncated in the Hebrew version of Communicator 2007
  • 943061 Communicator 2007 crashes when the SipCompression registry entry is set to PING mode and the Transport registry entry is set to TLS
  • 943062 You may be prompted to restart the computer when you try to start Communicator 2007
  • 943063 Communicator 2007 crashes when you start it by using the presence control
  • 943064 After the computer resumes from hibernation or from standby, Communicator 2007 may consume 100% of CPU usage
  • 943065 Communicator 2007 presence icons do not change in Outlook 2007 after you disconnect a computer from the network
  • 943066 Presence status does not change from "In a Meeting" to "Available" in Communicator 2007
  • 943067 Certain icons may be mirrored incorrectly in the call conversation window in the Arabic version or in the Hebrew version of Communicator 2007
Personally we haven't had any major problems with the RTM release of OC and OCS, the biggest issue in this list for me was actually 943065 (Presence in Outlook after returning from Hibernation).

Btw. sorry for being away - I know I promised to blog more on UC but an abundance of work and sickness hindered me. I will now take a week of vacation and will return with much more information afterwards (Promises, promises, promises ;-)

Wednesday, September 19, 2007

Wake Active Directory from the Dead

So you have this 10-server test setup with multiple domains, multiple domain controllers, member servers and clients. It is running Virtual Server and for some months ago you left it and now it is time to use it again.

You power it back on and everything works - - - Not (If you seen Borat you know what I mean!)
The object changes I made in the child domain did not appear in the GC on the parent domain!?

Looking into the problem, I found this event -

Event Type: Error
Event Source: NTDS Replication
Event Category: Replication
Event ID: 2042
Date: 19-09-2007
Time: 11:37:04
User: NT AUTHORITY\ANONYMOUS LOGON
Computer: SRV02
Description:
It has been too long since this machine last replicated with the named source machine. The time between replications with this source has exceeded the tombstone lifetime. Replication has been stopped with this source.
The reason that replication is not allowed to continue is that the two machine's views of deleted objects may now be different. The source machine may still have copies of objects that have been deleted (and garbage collected) on this machine. If they were allowed to replicate, the source machine might return objects which have already been deleted.
Time of last successful replication:
2007-04-12 15:57:10
Invocation ID of source:
032bf6c8-f6b8-032b-0100-000000000000
Name of source:
d063611f-7ff1-4445-a7bf-45bd0066dcc6._msdcs.dlt-root.as
Tombstone lifetime (days):
60

The replication operation has failed.

User Action:

Determine which of the two machines was disconnected from the forest and is now out of date. You have three options:

1. Demote or reinstall the machine(s) that were disconnected.
2. Use the "repadmin /removelingeringobjects" tool to remove inconsistent deleted objects and then resume replication.
3. Resume replication. Inconsistent deleted objects may be introduced. You can continue replication by using the following registry key. Once the systems replicate once, it is recommended that you remove the key to reinstate the protection.
Registry Key:
HKLM\System\CurrentControlSet\Services\NTDS\Parameters\Allow Replication With Divergent and Corrupt Partner

Oh no - do I have to rebuild it all? Fortunately not. Doing a series (the message says registry key, but it is a value) of -
reg \\server\HKLM\System\CurrentControlSet\Services\NTDS\Parameters /v "Allow Replication With Divergent and Corrupt Partner" /t reg_dword /d 1

(one line, but may be wrapped here)

and restarting the domain controllers solved the problem.

Read more in Event ID 2042: It has been too long since this machine replicated

Monday, September 17, 2007

Windows Server 2008 Kernel Changes

Just saw/heard the Windows Server 2008 Kernel Changes by Mark Russinovich (SEC416) from TechEd in Orlando. As always, valuable information - and hearing Mark stumble as his system unexpectedly crashes for him is kind of funny.

For those of you having 32-bit terminal services systems, you should look forward to the improvements: More virtual memory, parallel sessions initiations (e.g. logons) etc.
But, hear it all for yourself here.

Thursday, September 06, 2007

Gartner Magic Quadrant for Unified Communications 2007

Interesting reading, Gartner has published a new MQ for Unified Communications 2007, where Microsoft is the leader in "ability to execute" (With IBM and Cisco lagging behind).

Gartner concludes that 2008 will be the year where UC will be mainstream and even refers to Microsofts VoIP As You Are versus "rip and replace" strategy for implemting UC ;-)

Btw if you haven't seen the two PBX's discussing VoIP As You Are before then it i a must. Also two new PBX Replacement Cam videos has been released (I bet they had some fun making these ;-)




Sunday, September 02, 2007

USB telephony updates for Windows XP / Vista

During my UC Bootcamps I've had problems a few times with my USB handsets being set as primary sound device (Therefore sound from demo's and videos would be redirected to my Anacapa device instead of my Logitech USB loudspeakers).

I'm switching quite a bit between the Roundtable device, speakerphone's and the Anacapa, so it's quite an annoyance to always check whether my Logitech is still the default

There is an XP/Vista update for this that I've blogged about before, but it has now been updated so I will try to test it again.

Find the updates here -

A USB telephony device that is installed on a Windows Vista-based computer is unexpectedly set as the default audio device
A USB telephony device that is installed on a Windows XP-based computer is unexpectedly set as the default audio device

Wednesday, August 29, 2007

Office Communications Server 2007 licensing (and pricing) - Update

Interested in how Office Communications Server 2007 licensing will be, then look at the following snippet from a presentation that was shown at the Partner Conference in Boston (Click the picture for a larger version).



Basically there are two Client licenses that are additative. You always need a Standard CAL and can on top of that buy an Enterprise CAL that deliveres all of the Conferencing (Web, Audio/Video, Application Sharing) and the VoIP & Remote Call Control features.

For the servers there's the Standard and Enterprise Edition (Scalability and Availability) and you should note that Communicator Web Access, Speech Server 2007 and Office Communicator Mobile 2007 are included in the server licensec.

Update - find more information on licensing options on the web page How to buy Microsoft Office Communications Server 2007.


For pricing information according to Michael Dunn's posting regarding Speech Server 2007 pricing it will be -

  • Standard Server - $699.00
  • Enterprise Edition Server - $3,999
  • Standard Client Access Licence - $31
  • Enterprise Client Access License - $139

No info from Dunn though on the licensing type / price (MVLS, Select etc.)

Monday, August 27, 2007

Getting EXIF Information

So you are sitting there at your desk Monday morning, trying to organize some photos. Your file dates are a mess, but - hey - you know that the photos contains the EXIF date picture taken value. Writing a small script to sort things out should be a small problem.

But how do I get to the data? Searching for Powershell exif data picture taken soon got me to the James ONeill's blog. But it was quite complicated and then I remembered that I did something similar from VBScript a while back. I looked in the script and realized, that the Shell.Application object could retrieve the information in an easier way.

I started off writing Get-ExifDatePictureTaken, refined it to Get-ExifProperty with a $property parameter with "date picture taken" as default, but realized that the right solution was to use the extensible type system (ETS). ETS makes Powershell so stong!

I created ExifDatePictureTaken.ps1xml -
<Types>
<Type>
<Name>System.IO.FileInfo</Name>
<Members>
<ScriptProperty>
<Name>DatePictureTaken</Name>
<GetScriptBlock>
trap {write-debug $error[0]}
$null=[reflection.assembly]::loadfile("$env:windir\Microsoft.Net\framework\v2.0.50727\System.Drawing.Dll")
$shell=new-object -com Shell.Application
$folder=$shell.Namespace((split-path $this))
foreach($i in 1..100) {
if ($folder.GetDetailsOf("",$i) -eq "date picture taken") {write-debug $i;break}
}
if ($i -lt 100) {
$folder.items() | ? { $_.name -eq $this.name } | % {
$date=$folder.GetDetailsOf($_,$i)
if ($date) {
# Dates are text and DD-MM-YYYY cannot be converted to datetime
# Convert DD-MM-YYYY to YYYY-MM-DD
$date=$date -replace "^(\d{2})\-(\d{2})\-(\d{4})",'$3-$2-$1'
# Cast to a datetime
[datetime] $date
}
}
}
</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
</Types>


and loaded it with Update-TypeData.

Hint: You cannot Update-TypeData on the same files twice (in the same Powershell sessions). Consequenly, I use something like this when testing -
PS> powershell { update-typedata Exifdatepicturetaken.ps1xml; $file=get-item 'S:\Billeder\2007\2007-03 Diverse\P1010169.JPG'; $debugpreference="continue"; $file.datepicturetaken }

Now I can simply get the DatePictureTaken property of any System.IO.File object.

The downside to this approach is speed. It is slow. I could be improved in several ways -
  • If the index is static (I do not know whether that is the case or not), it did not have to be found everytime
  • The folder object could be cached in a global variable, so multiple consequtive lookups in the same folder was faster

If you make any improvements, please post them as comments.

Saturday, August 25, 2007

Problems with Exchange 2007 certificates when you're on VPN or in the Companys LAN ?

A while ago I used half a day with one of our consultants troubleshooting this and other issues and setting this up correctly and it now turns out that a KB article has been published, which handles this exact issue -

Warning message when you start Outlook 2007 and then connect to a mailbox that is hosted on an Exchange 2007-based server: "The name of the security certificate is invalid or does not match the name of the site"

This issue occurs if the following conditions are true:
  • You replace the default self-signed Exchange 2007 certificate with a different certificate.
  • Note The Exchange 2007 Setup program creates a default self-signed certificate when Exchange 2007 is installed (DLT Comment - That shouldn't be deleted!).

The common name on the replacement certificate does not match the fully qualified domain name (FQDN) of the URL that is stored in the following objects:

  • The Service Connection Point object for the Autodiscover service
  • The InternalUrl attribute of Exchange 2007 Web Service (EWS)
  • The InternalUrl attribute of the Offline Address Book Web service
  • The InternalUrl attribute of the Exchange unified messaging (UM) Web service
By default, the URL that is stored in these objects references the NetBIOS name of the server. For example, a URL that resembles the following is stored:

https://NetBIOS_name.contoso.com/autodiscover/autodiscover.xml

This may differ from the host name that is used in the FQDN of the replacement certificate. For example, the replacement certificate may have an FQDN that resembles the following:

mail.contoso.com

This issue causes a name mismatch error to occur. Therefore, you receive the security warning message when you try to connect Outlook 2007 to the mailbox.

Read more at KB940726