Determining the Outlook Offline Status on a server remotely

Hi All, I'm currently working on a project that can remotely monitor the offline status of Outlook that is running on a server. 
Overview: I have a VM who's only function to to check and forward a specific email once a day. I need to know when  the VM is down, Outlook is not running or Outlook is offline. I have been able to determine if the VM is down and if outlook is running
but I'm struggling with the offline status Outlook.
Here is my code (straight foward)...vbscript
strComputer = "VMEmail"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2", "outlook.Application")
PD_VM_OTKSTATUS = objWMIService.Session.Offline
Wscript.Echo PD_VM_OTKSTATUS
I'm getting a error "File name or class not found during Automation operation: 'GetObject'"  Code: 800A01B0
I want to run this script from my machine. If you know whats going on or a better way to solve my problem let me know I'm open to suggestions. Also I don't consider myself a programmer/coder I'm just able to take other code and make it work the way I want.
Thanks in advance

I should also note that you cannot get a link to a remote application.  You can run a script on the server that can  attach locally.
You would find it better to write a macro in Outlook that monitors the online status  (which will only show online if you are using Exchange direct and not SMTP.
The VBA code can be looped to look for the connection and alert when it fails.
It would make more sense to have Exchange forward the mail and dump the VM.
¯\_(ツ)_/¯

Similar Messages

  • How to determine the error code, returned from LDAP server

    I use the next code for connect to LDAP server:
            try{
                ctx = new InitialLdapContext(env, null);
                 //if connection successfull ...
            } catch (NamingException){
                 //if error occured ...
            }Is it possible to determine the numeric error code, returned from server?

    I was just working on using openldap, binding to it and checking for expired passwords and locked accounts and it looks like that an AuthenticationException is thrown in these circumstances and the ctx is null so it is not possible process connection response controls. But you can look at operation attributes if you have password policy enabled and you are looking for these type of errors

  • Script for getting the online/offline status

    Hi all,
    After enabling checkbox of "Enable assistive access device" is possible to get the online/ offline status.From Menu we will get the status.Without doing this i want to get the apple mail account online/offline status.hope some help scripts for this.

    [That script|http://discussions.apple.com/message.jspa?messageID=11012484#11012484] could change the Online Status of all mail accounts. The following one will just report their Online Status. Is this what you are (were) asking for?
    --BEGINNING OF SCRIPT
    tell application "Mail" to activate
    tell application "System Events" to tell process "Mail"
    set theMenu to menu "Mailbox" of menu bar 1
    if enabled of menu item "Take All Accounts Online" of theMenu then
    return "All accounts are currently offline"
    else
    return "All accounts are currently online"
    end if
    end tell
    --END OF SCRIPT

  • How to determine the background job status?

    Hi Gurus,
    My program is as follows:
    1. I have used FM job_open to open a new job.
    2. SUBMIT to call another program which creates the file on application server.
    3. FM job_close to trigger that job.
    Now I want to determine the status of that triggered job (Not through SM37), Once I get a status for complete or cancelled I will be coding based on that.
    So could you please help me out for the issue?
    Thanks in advance.

    hi ,
    check table TBTCO.
    YES. u  can check for STATUS = P- Schedule/S---Released
    regards
    Prabhu
    Edited by: Prabhu Peram on Sep 18, 2008 6:43 PM

  • Determine the read/unread status of a message in a users inbox

    Is there any way to see the current status of a read/unread message attribute. The email is confidential and the user is not supposed to see it. The sender wants assurance that the email was not read. He wont accept a screen shot as the email could always
    be marked as unread.  I have tried MSMAPI but the attribute doesn't seem to be listed, though I cant determine the Hex code meaning. Thanks for any leads.

    "read"
    is just a flag on the message (PR_MESSAGE_FLAGS), it can be changed and it cannot guarantee you if the message was actually read. Confidential mail should be encrypted or IRM-protected, so you can blame the sender as much as the recipient.

  • How can IC WebClient determine the host name for free seating?

    Hi,
    I want to determine the host name at CRM application server by ICI interface for free seating scenario.
    There is a TCODE CRMM_IC_GFS to set 'Host Name Identification Applet'.  But when I check on it, all buttions in IC Webclient disappeared. I followed the note 812399 to change Java security configuration, but the synptom still exist. Do anybody now how to? Thanks!
    BR,
    Hao

    To run a public VPN server, you need to do the following:
    1. Give the gateway either a static external address or a dynamic DNS name. The latter must be a DNS record on a public DNS registrar, not on the server itself. Also in the latter case, you must run a background process to keep the DNS record up to date when your IP address changes.
    2. Give the VPN server a static address on the local network.
    3. Forward external UDP ports 500, 1701, and 4500 (for L2TP) and TCP port 1723 (for PPTP) to the corresponding ports on the VPN server.
    4. Configure any firewall in use to pass this traffic.

  • Using ILOM how to determine the host machines sun architecture type

    I am using ilom attached to my sun sparc t3-1 machine. How do I determine the platform group (sun4u/sun4v etc) of my sun host machine through ilom cli.
    If there is no direct command to find out then atleast what mapping i should rely on to determine the platform group of a sun server.

    Thanks.
    Listed show /SYS -l all
    There is lot of information on mother board etc. Nothing straight forward on what platform group does the system belong to.
    I could see /SYS/MB/CMP0 whose type is host processor, which has core0 - core16 targets. Each core target has 8 CPU threads po-p7.
    I don't know what to make of it.
    What i am thinking is this, sun4v means sun 4 series with virtualization. Which means it should have support of hypervisor processor virtulization.
    I could see in show /HOST, the hypervisor_version property with its version number.
    I am thinking if this property exists and is populated with a version number than the system platform group is sun4v.
    Any comments?

  • Getting apple mail account online/offline status through apple script

    Please let me know,If anyone have idea of getting apple mail account online / offline status through apple script.

    mohammed jasum k p wrote:
    Otherwise how to get the online/offline status value.If u can please give me a solution for this.
    this is not possible by any means I know. not every problem has a solution, sorry.

  • Clq status shows quorum server offline even though the clq service is runni

    Hi,
    In a 2 Node + 1 QS sun cluster 3.2 cluster, clq status is showing quorum sever offline even though the clq process is running on the quorum server. to make the quorum server online, i have to either remove and add the quorum server from cluster, or incase if there is a failure on any one of the node's both th nodes will reboot and once both joined to the cluster, I can see clq status showing quorum server online!!!
    Why is the quorum server going offline automatically?
    Any help would be highly appreciated
    Many thanks in advance
    Ushas Symon

    Hi,
    I asssume you mean the scqsd process is running on the QS, right?
    A QS is shown as offline, it the monitor could not reach it when it last tried. This is usually due to a networking problem.
    If you issue a clq status, the monitor checks again and if it can reach the QS will change its status back to online.
    If this does not happen, check your logs, what kind of error message showed up.
    Does clqs show on the QS show the correct information?
    It is obvious, that if a node dies and the QS has been offline prior to the node death, that the other node will die as well due to lack of quorum, i.e. it has less votes than needed. You seem to have a basic networking problem or something is really wrong with your QS.
    Regards
    Hartmut

  • How to find out what server the outlook client is connected to/change it automatically

    Hi,
    I am performing a server migration from Exchange 2010 to Exchange 2010 (the previous installation was installed by an outsourced provider and is rubbish so I'm configuring it properly). On the of things the existing server lacks is a CAS array configured,
    so I have built the new Exchange 2010 server, configured a new DB and CASArray. I have created a brand new mailbox for a new user and the user's outlook shows it is connected to casarray.domain.local, I have migrated my own mailbox but internally my outlook
    shows it is connected to oldserver.domain.local (under the account settings when you go to change the settings for the account), this is on a domain joined internal desktop. But at home on my personal laptop non-domain joined, it has appeared to reflect the
    new casarray.domain.local. The outlook client is 2007 in both situations.
    When I run the following command, it shows my mailbox is indeed connected to the new exchange server, but this is not true in outlook
    Get-LogonStatistics -Server "new-exch2010" | where {$_.clientname -eq "new-exch2010"}| ft username,servername,clientname
    If I run the above command against the old server my name shows on that list as well. When I look at the connection status of my outlook it shows that it is connected to casarray for directory, but the old server for mail.
    A couple of other things:
    Mailflow is now going to the new exchange server from the gateway over port 25, the autodiscover record in the internal DNS is now also pointing to the new exchange server, outlook clients and users computers have been completely restarted but still don’t
    seem to pick up the new settings, both the old server and new server functions as a multi-role exchange having the Hub, CAS and MBX roles.
     Now that you have all that background info my question is two parts:
    What is the correct powershell command I can run on the exchange server to ensure that all my outlook clients are connected to the new exchange server for all connection types (or identify those which are connected against the old server)?
    How do I get the outlook clients to automatically pick up the casarray servername once their mailboxes have been migrated?
    I am considering removing the CAS from the old server which may force outlook to find it’s new server but am unsure whether this will work or not, and I think I should migrate all the mailboxes into the new DB before I do this.
    Other than that, I am out of ideas.
    Appreciate, any help. Thanks
    Steve

    I had already run the command Get-MailboxDatabase | FL Identity,RpcClientAccessServer
    and it only identified the old database as being tied to the server name, the new database has the correct casarray and all mailboxes are in this new database. should I also set the old database to point to my casarray as the second command indicates? can't
    do any harm right?
    also, I have outlook 2007 and 2013 at home and both of them had automatically reconfigured
    themselves to point to casarray, my problem is with the internal clients.
    today I have also noticed in DNS there is a Zone which points to autodiscover.domain.co.uk
    and in there it points to my old server.
    a few things to note about the above:
    1. the zone is pointing to the .co.uk domain not the .local - is this correct?
    2. should that zone even be in our internal DNS, i hadn't noticed on previous implementation
    of Exchange I have done
    3. if i change the record within that zone to point to my new server, will this likely show
    up the popup message shown in this link http://www.rackspace.com/apps/support/portal/1218 I havent yet got a certificate for the new exchange server (few more days) and i dont want users seeing any kind of untrusted unsecure connection box or it
    will only lead to panic and flooding the helpdesk
    many thanks
    Steve

  • What exactly does the Work Offline option do in a shared review hosted on an internal server?

    Hi,
    What exactly does the Work Offline option do in a shared review hosted on an internal server?
    I *think* it simply disconnects you from the review server. I'm not sure why one would want to do this.
    I'm trying to recommend an offline workflow for reviewers who may not be able to access a shared review hosted on our internal server (for example, while traveling). These reviewers would like to be able to comment on an offline version of the review PDF and then publish their comments when they can again connect to the Internet/internal server.
    It doesn't seem like "Work Offline"  is the right fit for this scenario. Instead, should reviewers save a local copy to their hard drive, comment on it, and then, when reconnected to the Internet, open the local copy, click Reconnect to Server, and then click Publish Comments?

    Thanks, Dave. So for my hypothetical traveling reviewer, it would be reasonable to suggest the following steps for an offline workflow?
    1. Connect to the shared review.
    2. Choose Work Offline from the Server Status menu.
    3. Close and save the review PDF locally.
    4. Comment while traveling.
    5. When back in the office, open the local copy of the review PDF.
    6. Click Reconnect to Server.
    7. Click Publish Comments.

  • Clq status shows quorum server offline eventhough it is online

    Hi,
    I am facing a problem in my cluster that when I bring all the three nodes in a cluster (2 app-nodes and one quorum server) at almost the same time, the clq status on any of the cluster nodes is showing quorum server as offline. when I do the clqs show on the quorum server, i ge the below output.
    clqs show
    === Quorum Server on port 9000 ===
    --- Cluster beacluster (id 0x4916625B) Reservation ---
    Node ID: 1
    Reservation key: 0x4916625b00000001
    --- Cluster beacluster (id 0x4916625B) Registrations ---
    Node ID: 1
    Registration key: 0x4916625b00000001
    Node ID: 2
    Registration key: 0x4916625b00000002
    this is cluster 3.2
    any inputs will be appreciated
    Thaks in advance
    Ushas Symon

    Hi, this is solaris cluster 3.2u1..
    I got the quorum server online by
    # clq status
    --- Quorum Votes by Device ---
    Device Name Present Possible Status
    rac1 1 1 Offline
    # clq add -t quorum_server -p qshost=xxxxxxxxxx -p port 9001 rac2
    # clq status
    --- Quorum Votes by Device ---
    Device Name Present Possible Status
    rac1 1 1 Online
    rac2 1 1 Online
    By just adding one another QS both the QS status came online !!!!!!!!!!!!
    no IDEA, what is happening...
    anyways I have deleted the second QS by #clq remove rac2 and #clq reset
    now it is fine..
    Thanking you all
    Ushas Symon

  • Is there a way to dynamically determine the number of out parameters for a server side procedure?

    Hi,
    Below is a helper method used for calling a server-side function which loops through the inbound bindVars parameter to populate the function's IN parameters. Is there a way to dynamically determine the IN/OUT parameters based on the procedure name in the stmt parameter? No members of the CallableStatement class seemed promising, but the getParameterMetaData() method in the PreparedStatement class seemed like it could be helpful lead. However, I have not found any detailed descriptions (yet) of how to use it.
    protected Object callStoredFunction(int sqlReturnType, String stmt,
      Object[] bindVars) {
      CallableStatement st = null;
      try {
      // 1. Create a JDBC CallabledStatement 
      st = getDBTransaction().createCallableStatement(
      "begin ? := "+stmt+";end;",0);
      // 2. Register the first bind variable for the return value
      st.registerOutParameter(1, sqlReturnType);
      if (bindVars != null) {
      // 3. Loop over values for the bind variables passed in, if any
      for (int z = 0; z < bindVars.length; z++) {
      // 4. Set the value of user-supplied bind vars in the stmt
      st.setObject(z + 2, bindVars[z]);
      // 5. Set the value of user-supplied bind vars in the stmt
      st.executeUpdate();
      // 6. Return the value of the first bind variable
      return st.getObject(1);
      catch (SQLException e) {
      throw new JboException(e);
      finally {
      if (st != null) {
      try {
      // 7. Close the statement
      st.close();
      catch (SQLException e) {}
    James

    The PreparedStatement.getParameterMetaData() object is exactly what you need for this task.
    Once you have the ParameterMetaData you can ask it how many parameters are present and which mode they are. The parameters are numbered from 1 to n and you can use ParameterMetaData.getParameterMode(1); to get the mode of the 1st parameter. The modes are defined as static values in the ParameterMetaData object. Check out the doc at http://docs.oracle.com/javase/7/docs/api/java/sql/ParameterMetaData.html
    Timo

  • Best method to determine the week number of a month - SQL Server 2012

    Hi,
    I'm searching the most valid and tested method to determine the week number respect to a month.
    Fe, the 1st January falls in the 1st week of January, the 1st February fall in the 1st week of February, and so on.
    I've found many solutions but I'd like to know possibly the best one.
    Thanks

    Hi Uri,
    SELECT DATEPART(week, '20150104')
         - DATEPART(week, CONVERT(CHAR(6), '20150104', 112)+'01')
         + 1
    returns 2 and not 1. It's a Sunday.
    Waiting to be spoonfed, eh?
    The one-off in my query would be very simple to figure out - I forgot to add the +1. Is too much to expect from you that you could figure it out yourself?
    And likewise, in my post I said that you should use "week" for weeks starting on Sunday, and "iso_week" if your week starts on Monday. Uri neglected to observe this, but you had the information to correct it. If you had been interested
    in doing some work yourself, that is.
    Nevertheless, there is an issue that I overlooked:
    DECLARE @day date = '20160105'
    SELECT datepart(iso_week, @day) -
           datepart(iso_week, convert(char(6), @day, 112) + '01') + 1
    This returns -51. This is because with ISO week numbering, Jan 1st falls into week 53 of the previous year, if it's on a Friday or later. Week 1 is always the week of Jan 4th. When you week this does not happen, as week 1 is always the week with Jan
    1st. (Dec 31st is always in week 53 or 54.)
    To correct for this, we need this query:
    SELECT DATEPART(iso_week, @day) -
           CASE WHEN DATEPART(iso_week, CONVERT(CHAR(6), @day, 112) + '01') < 50
                THEN DATEPART(iso_week, CONVERT(CHAR(6), @day, 112) + '01')
                ELSE 1
           END + 1
    Erland Sommarskog, SQL Server MVP, [email protected]

  • I have microsoft outlook installed on my Mac book pro, I can only use the outlook with the office server where it was setup, I can't use outlook else where, is there any way I can reset the settings in order to be able to use outlook every where?

    I have microsoft outlook installed on my Mac book pro, I can only use the outlook with the office server where it was setup, outlook won't work out of office, is there any way I can reset the settings in order to be able to use outlook every where?

    I can see my folders by clicking the X next to my name on the Inbox Folder.  So I have my folders now, just cannot see them in the left colum or see multiple windows on Outlook.  At this point, I can use the folders, just with limited functionality.  Thanks -Gina

Maybe you are looking for