Powershell to Monitor and Email Windows EventLog Errors

You can set this up in Task Scheduler to run every x minutes and send you an email when there are any errors in the Application Event Log or the System Event Log. There is a section in the code where you can create more user-friendly messages for complex or confusing error messages. It also […]

BizTalk and .NET Ambient Transactions

One day, I hope to be able to fully understand and explain the “Ambient Transaction” true/false option in BizTalk WCF-SQL and WCF-Custom send and receive ports.  Until then, I’m going to collect the most relevant info and blogs here: The official Microsoft BizTalk parameter definition (for the WCF Send or Receive Port): http://msdn.microsoft.com/en-us/library/dd787981.aspx Specifies whether […]

Understanding -TaskType ClusterWide on ScheduledClusteredTasks

09/15/2014 14:46:28 Test 09/15/2014 14:47:02 Test 09/15/2014 14:48:02 Test 09/15/2014 14:49:02 Test cls $PSVersionTable $Action1 = New-ScheduledTaskAction -Execute "I:\Scripts\TestClusteredTaskRS.cmd" $Action2 = New-ScheduledTaskAction -Execute "E:\Scripts\TestClusteredTaskCW.cmd" $DurationTimeSpan = New-TimeSpan -Minutes 1 $DurationTimeSpanIndefinite  = ([TimeSpan]::MaxValue) $DurationTempTest = New-TimeSpan -Days 1000 $Trigger = New-ScheduledTaskTrigger -Once -At "00:01" -RepetitionInterval $DurationTimeSpan -RepetitionDuration $DurationTimeSpanIndefinite   #Register-ScheduledTask -TaskName "RegularCalcTest2" -Action $action #Register-ClusteredScheduledTask -TaskName "CalcTask01" -TaskType […]

Powershell cuts off Task Name at 12 characters

Suppose you run this: Get-ClusteredScheduledTask and get this as a result: TaskName         TaskType                         ——–         ——–                         TestClusterWide  ClusterWide                       TestResourceS… ResourceSpecific   What a pain. So how do you see the value of the second TaskName above. One idea would be to use names under 12 characters. If you must or do use longer names, here’s one solution: cls […]

Check if Current Node of Cluster is Active in Powershell

Function “IsActiveNode” function IsActiveNode { $activeClusterName = (Get-WMIObject Win32_ComputerSystem -ComputerName BIZTALK2013).Name $computerName = get-content env:computername $message = "ActiveCluster=$activeClusterName computerName=$computerName" $isSame = $false if ($activeClusterName -eq $computerName)   {    $isSame = $true   } $message = $message + " IsSame=$isSame"   #Write-Host $message   return $isSame } cls $IsActiveNodeResult = IsActiveNode Write-Host "IsActiveNode=$IsActiveNodeResult" Sample test: . .\IsActiveNode.ps1 cls $IsActiveNodeResult […]

Does BizTalk BizTalk 2013 support IBM WebSphere MQ 8.0?

No, BizTalk 2013 (nor prior release of BizTalk) do NOT support IBM WebSphere MQ 8.0. We confirmed this with a ticket to Microsoft. What is confusing is the following on Microsoft page: http://msdn.microsoft.com/en-us/library/jj248684%28v=bts.80%29.aspx#BKMK_MQSeries According to current information, supported IBM WebSphere MQ versions in Microsoft BizTalk Server 2013 and 2013 R2 :     IBM WebSphere MQ 6.0.2.12 […]

MQ 80070005 with BizTalk MQ series adapter

If you see 8007005, it may mean “access denied”, but it can also mean that it cannot find a .dll, such as “MQM.dll”. Your environment variables for the “PATH” must include the directory that contains “MQM.dll”. Use must include the regular directory, and the one that ends with bin64 or bin32 (depending on which mode […]

MQ/BizTalk Error Code 2058

Error received in Windows Application EventLog: Error encountered on QueueManager.open Queue Manager name = QTAAFrank Reason code = 2058. MQ Queue Manager names are case sensitive. In our case, it should have been QTAAFRANK instead of QTAAFrank. You could get this error by specifying any non-existent, misspelled, or name that is not properly matching based […]

How to view which BizTalk cumulative updates are installed in Control Panel/”Add Remove Programs”

I recently learned about the “View installed updates” link in Add/Remove programs.  It reveals the updates and BizTalk Cumulative Updates installed on your system.  Below are screen shots from Win 2008/R2. Results – just scroll down and look for updates related to Microsoft BizTalk.  The Adapter Pack CU3 was temporarily uninstalled due an issue we […]

Odd Error Trying to Start a Simple SendPort

When I treid to start a project, several SendPorts would not start.  When I tried to start each one manually, some of them were giving this misleading error in the EventLog. Unable to communicate with MessageBox BizTalkMsgBoxDb on SQL Instance DAL-BIZ-APP01. Error Code: 0x8004d00e. Possible reasons include: 1) The MessageBox is unavailable. 2) The network […]