Something I put together to check the ConnectWise MSMQ queues so that I know when Outlook Sync is having issues. The follow code is ruby (because I really like ruby), but could probably be adapted to a Microsoft language. It will require the MSMQ feature to be installed on the server where you run the code.
Something I put together to check the ConnectWise MSMQ queues so that I know when Outlook Sync is having issues. The follow code is ruby (because I really like ruby), but could probably be adapted to a Microsoft language. It will require the MSMQ feature to be installed on the server where you run the code.
require 'rubygems'
require 'mail'
require 'win32ole'
Mail.defaults do
delivery_method :smtp, {:address => "mailserver", :port => 25}
end
man = WIN32OLE.new('MSMQ.MSMQManagement')
man.Init("CW-SERVER","",