VBScript - Logon to a MAPI Session - Run an app - Logoff a MAPI session

Hi All,
I've never scripted and I'm after a method/script to do the following:
1. Logon to a MAPI session using the default MAPI profile or even another profile (Without launching Outlook)
2. Run an application (10 year old application that requires a MAPI session open).
3. Logoff the MAPI session.
Using Outlook 2010 with Exchange 2003/2010 mailboxes.
Many thanks,
Rob

Few months ago we upgraded everyone from Window XP and Office 2003 to Windows 7 and Office 2010.
We have an old 10 year plus CASE manager system, it has a feature that allows emails (from Exchange) to be viewed and attached to CASE plans alongside Word documents. With the old XP environment there was no need to launch
Outlook before launching CASE, it seemed to open a MAPI connection fine.
With the new Windows 7/Office 2010 environment we initially found that CASE would open in native mode, even established a MAPI connection without needing Outlook open, but sods law not everything worked within CASE, some
functionality broke. After some testing we found that CASE had to be launched in Windows XP Compatibility mode, this pretty much fixed everything except the issue with having to launch Outlook before the CASE application. With workstations this isn't a big
deal, by habit Outlook is launched before CASE so not a problem.
Alongside our workstation environment I also have to upgrade our Citrix environment, we use Citrix for remote sites where certain applications run dog slow (Including CASE). Current setup is Citrix PS 4.5 on Windows Server
2003, with Office 2003 and a range of applications. I've now setup a test lab with Citrix XenApp 6.5 installed on top of Windows Server 2008 R2. Also installed is Office
2010 and all necessary applications.
The issue we have on the workstations is now causing me a headache in Citrix. Generally email is accessed locally for remote offices, we do not present Outlook as a published application so we don't need/want two instances
of Outlook running on a user's desktop, I just want CASE to work as before and just establish a MAPI connection independently to Outlook.
I first thought I'd see if Outlook could be launched hidden, but it seems this can't be done so I dumped this idea. I then thought about running it minimised and have it hide, a feature in Outlook, but this seemed very
messy.
I then downloaded a simple tool from Microsoft called Simple MAPI console, it does about 10 simple MAPI functions and doesn't need Outlook open, thought it could help me work out what MAPI functions didn't work in Windows
XP Compatibility mode compared to native mode. During my testing it seemed that just simply using the logon option which I assume just establishes a MAPI connection was all I needed to get this CASE application to work properly as before, no full Outlook application.
So I thought to myself if this little tool can establish a MAPI connection I could potentially just find a script to establish a MAPI connection then fire off the CASE manager system from the click of one button via a published application.
I don't script, I'm terrible with languages period, I searched the web and couldn't find anything fruitful so thought I'd post about to find out if anyone had a script or some advice.
This afternoon I was given a lead to use something called Redemption dimastr.com/redemption/home.htm (sorry cant post links properly, not verified user)
We already had the redemption.dll registered from another application. Using the samples and information for the site above we managed to muddle up the following:
Dim Session
set Session = CreateObject("Redemption.RDOSession")
Session.Logon
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""C:\Program Files (x86)\Axxia\Desktop\Desktop.exe""")
WScript.sleep(20000)
Set objShell = Nothing
Session.Logoff
Set Session = Nothing
Office 2010 is 32bit, so as long as I run the above using the cscript.exe from C:\Windows\SysWOW64 it does the trick on my workstation. Tomorrow I'll create a published application to run the VBS script via a published application and see how things go.
What is still stuck in my head is:
If the Simple MAPI console can do simple MAPI functions then maybe there is a way to script it.
What does Windows XP Compatibility mode do differently in regards to MAPI functions? I thought it would be the other way round, broke in native mode and work in Windows XP Compatibility mode.
The vendor have promised to look in to getting this application working, it's still supported but they of course do have newer versions at a cost, but some businesses, ours included don't have the money at the moment so have to make do with what we got.
Really sorry for the vague question, apologises in advance if this is too much information or irrelevant in any way.
Kind regards,
Robert

Similar Messages

  • Remote App and Desktop RDP client never succeed to logon the RDS gateway server running Windows 2012R2

    Remote App and Desktop RDP client never succeed to logon the RDS gateway server running Windows 2012R2
    1. Client Os : Windows 7 Pro
    2. Server OS : Windows Server 2012R2 with RDS broker and RDS Gateway server with 3.part Certificate  with friendly name sky.mti-itservice.no activated.
    The  main problem is following: The RDP logon session never ends
    Any ideas ?
    Regards
    Kenneth Knudsen
    Email : [email protected]
    mvh Kenneth Knudsen MCSE 2003 HP ASE

    Hi Kenneth,
    Here for your case suggest you to configure RDP session time limit so that your user can disconnect\log off once the specific time limit reached.
    You can setup the session time limit in different method.
    1. Open the Server Manager, select Remote Desktop Services.
    2. In Remote desktop Services, in right side you can drop down to collections.
    3. Select the collection which you want to edit the settings.
    4. Under collections Properties, select Task and then Edit Properties.
    5. In Properties dialog box, select Session.
    6. You can find all thetimeout settings under session collection properties; edit according to your requirements and then OK. 
    And apart also by group policy setting as below.
    Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits 
    User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits 
    -  Set time limit for disconnected sessions
    -  Set time limit for active but idle Remote Desktop Services sessions
    -  Set time limit for active Remote Desktop Services sessions
    -  End session when time limits are reached
    Please check which setting suitable for your environment and you can apply for your case.
    [Forum FAQ] Restrict number of Active Sessions in RDS 2012 and 2012 R2
    https://social.technet.microsoft.com/Forums/en-US/00c2252b-8ec0-489f-8da2-07a434a9b5a2/forum-faq-restrict-number-of-active-sessions-in-rds-2012-and-2012-r2?forum=winserverTS
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How can I Deny permissions to logon to Remote Desktop Session Host server in powershell script?

    I am need of some assistance please. I am a system admin and I am trying to create a script that will assist with the tedious tasks I have to do with disabling a user that no longer works for the company.
    I have created a script so far that will reset the users passwords and remove them from all groups (minus domain users).
    I am trying to make it where it will deny permissions to logon to Remote Desktop Session Host server as well as give full mailbox permission to the manager in Exchange Server 2010.
    I know with Exchange 2010, I will need to add the Powershell snapin. Is there a way for this to be added into the script? I am thinking to add the code:
    add-pssnapin Microsoft.exchange.management.powershell.e2010
    Is there another way to do this? Any help or recommendations would be much appreciated.
    $ou = Get-ADUser -SearchBase "<*OU info here*>" -Filter * |
    Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "<*Password here*>" -Force)
    foreach ($user in $ou) {
    $UserDN = $user.DistinguishedName
    Get-ADGroup -LDAPFilter "(member=$UserDN)" | foreach-object {
    if ($_.name -ne "Domain Users") {remove-adgroupmember -identity $_.name -member $UserDN -Confirm:$False} }

    Why not just disable the account?Why are you searching an OU foro users when you just want to terminate one user?
    You can remotely connect an exchange session and manipulate the mailbox permissions.  You do not load a snap-in except on the Exchange server.
    $Session=New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<FQDN of Exchange 2013 Client Access server>/PowerShell/
    Import-PSSession $Session
    # exchange commands here
    \_(ツ)_/
    We have a checklist we have to go through with the tasks listed. We have to keep to the account enabled until HR changes
    the status which is usually 30-90 days depending. Managers sometimes need to access the accounts to retrieve information, etc. We put the users in an OU; once we are given permission from the manager we move forward in the removal. 

  • Use same database logon as when report is run

    Is there a way to set the option for "When viewing report" to "Use same database logon as when report is run" for all reports?

    If scheduling we have schedule manager in XIR2 which will do a folder at a time, it's been added to the CMC in 3.x I believe.
    For running the reports I think you would need to use the [SDK|/community [original link is broken]; if if you wanted to modify a bunch of reports at the same time, or use the publishing wizard to publish a bunch of them (no use if the reports are already uploaded)
    Regards,
    Tim

  • How to disable logon with token when session times out.

    Please help!!!,
    After I modified, save and close the web.config file and restart IIS, it continues to send me to the logon page after the session times out.
    Is there other way that i can disable the logon after the session times out?
    modified code:
    <!-- Set to false to disable logon with token when session times out -->
    <add key="logonTokenEnabled" value="false"/>
    CRS version: Crystal Server XI R2 SP2
    Viewer: .NET Infoview
    Thank you,
    Chico
    Edited by: Walter Chiriboga on Aug 29, 2008 8:26 PM

    I think if you enable some type of SSO (single sign-on) you could accomplish something like this, but with traditional logons this would be a security risk. You would need to allow your sessions to not time out. After a session times out with out some type of SSO involved it's impossible for our application to identify who the user is when they access an object. This is why you are reprompted for logon.
    There may be a way to extend session life indefinitely but it wouldn't be recommended.
    Regards,
    Tim

  • I have added an iPhone 4 to my household and the wifi in our home no longer works for my iPhone 4S or the new iPhone 4. Both will connect to the wifi, but we are not able to view anything i.e. google just runs circles, app store just runs loading, gps on

    I have added an iPhone 4 to my household and the wifi in our home no longer works for my iPhone 4S or the new iPhone 4. Both will connect to the wifi, but we are not able to view anything i.e. google just runs circles, app store just runs loading, gps on maps not found just runs? I have check all wifi issues with ATT&T, Verizon network all believe that it is the phones? I am confused as my 4S worked fine before adding the 4 to the mix....any thoughts are hits to what to do

    Have you rebooted your home router?

  • Error running J2EE App on Web AS 6.40

    Hi all experts,
    I'm triying to implement JSPWiki on Web As 6.40 SP17, I've followed the instructions this blog /people/pankaj.kumar32/blog/2005/09/10/wiki-wiki-world-and-portals
    This is what a did:
    1.- Downlowded the latest version of JSPWiki from http://jspwiki.org
    2.- Extracted the JSPWiki.war
    3.- Used deploytool to create a JSPWiki.ear and deployed on server
    4.- Started the appplication
    5.- Called url http://localhost:50000/JSPWiki/Install.jsp as suggested on jspwiki readme.txt
    6.- The first 2 pages were displayed without problen.
    But when I try to run the app the server drop this message:
    Details: javax.servlet.jsp.JspException: Tag failed, check logs: null
         at com.ecyrd.jspwiki.tags.WikiTagBase.doStartTag(WikiTagBase.java:90)
         at jsp_PageActions1169070742968._jspService(jsp_PageActions1169070742968.java:78)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
         at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
         at jsp_Header1169070740546._jspx_method_wiki_Include_1(jsp_Header1169070740546.java:65535)
         at jsp_Header1169070740546._jspService(jsp_Header1169070740546.java:13)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
         at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
         at jsp_ViewTemplate1169070738265._jspx_method_wiki_Include_1(jsp_ViewTemplate1169070738265.java:65535)
         at jsp_ViewTemplate1169070738265._jspService(jsp_ViewTemplate1169070738265.java:22)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
         at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
         at jsp_LoginForm1169070737203._jspService(jsp_LoginForm1169070737203.java:41)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:178)
         at jsp_Login1169070735953._jspService(jsp_Login1169070735953.java:130)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:99)
         at com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:71)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:374)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    The wierd thing is that the two latest versionsof wiki gives me the same error, please if you have any clue that could help me I'll really appreciate it.
    Thanks in advance,
    RR.-

    Hi,
    Make sure that the directory C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_ABAP_ORA_UC\DB exists and that it is accessible under the user you are logged in as.
    Also check the freespace available on the drive c:\
    Regards,
    Siddhesh

  • Xhost +  and trying to run graphical app

    xhost +  and trying to run graphical app
    I have an oracle linux basic server updated.
    I need to test and installation with an GUI but I cannot do it. I found a lot of information so I did this:
    connect with putty on an ssh to my server oracle linux with it´s ip address 192.168.100.62
    I did the connection with my desktop with it´s ip addresss 192.168.100.34
    When connecting I did with oracle user and I export DISPLAY as
    export DISPLAY=192.168.100.34:0.0
    then
    xhost + 192.168.100.34 but show me xhost:  unable to open display ""
    and of course did not let me run for example xclock Error: Can't open display:
    I am a basic linux user but I like to learn, but I need how to configure my server oracle linux to run some GUI apps or installation
    Thanks

    948268 wrote:
    xhost +  and trying to run graphical app
    I have an oracle linux basic server updated.
    I need to test and installation with an GUI but I cannot do it. I found a lot of information so I did this:
    connect with putty on an ssh to my server oracle linux with it´s ip address 192.168.100.62
    I did the connection with my desktop with it´s ip addresss 192.168.100.34
    When connecting I did with oracle user and I export DISPLAY as
    export DISPLAY=192.168.100.34:0.0
    then
    xhost + 192.168.100.34 but show me xhost:  unable to open display ""
    and of course did not let me run for example xclock Error: Can't open display:
    I am a basic linux user but I like to learn, but I need how to configure my server oracle linux to run some GUI apps or installation
    Thanks
    You need to have an x-server running on your desktop, in order to receive the redirected GUI output.  I use xming.  Like putty, it is free and lightweight.
    Also, you don't need to fool with DISPLAY or xhost.  Just configure you putty session to allow x-11 port forwarding.

  • Is autoconfig required to be run for apps password change

    Is autoconfig required to be run for apps password change -- We are only changing APPS and APPLSYS passwords.
    How to Change Applications Passwords using Applications Schema Password Change Utility (FNDCPASS or AFPASSWD) [ID 437260.1] -- does not mention anything about autoconfig.
    Please clarify.
    Thanks

    It's mentioned in the document twice
    1. For APPLSYSPUB/GUEST as you mentioned
    2. Under "Verify the new password" which cover the apps/applsys passwords
    If you search the doc for "AutoConfig" you will find it there.
    Thanks,
    Hussein

  • Has anyone in this Forum had problems with installing and running Adobe apps on the new MacPro?

    Has anyone in this Forum had problems with installing and running Adobe apps on the new MacPro?
    I have been trying to install Photoshop CS6 & CC and Acrobat Pro XI on my Mac Pro (late 2013). I keep getting a 'configuration' error message and wondered if the problem was wide spread.
    TIA,
    Jerry

    Thanks, Martin.
    Good to hear someone has had success. The lack of it here is frustrating and depressing.
    Thanks again,
    Jerry

  • TS2709 I have AppleTV and Ipad2 running VJay app to my TV over a private cisco router disabled firewall but I keep loosing the video on my TV after a few minutes what can I do?

    I have AppleTV and Ipad2 running VJay app to my TV over a private cisco router disabled firewall but I keep loosing the video on my TV after a few minutes what can I do?

    I also get this problem on my iPad, so probably not related to the AppleTV. On the iPad I restarted Airport Extreme this time, and then the iPad saw my Home Sharing.
    So to recap, restarting the router or Airport Express allowed the iPad and AppleTV to see Home Sharing. Restarting AppleTV also allows AppleTV to see Home Sharing.
    So does anyone have any idea?
    Thanks

  • Error while running the APP-F110 & Dunning - F150

    HI Guru's,
    while running the APP,,,i got the message finally <b>posting orders"1 generated,1completed"</b>,,,,,,,But i am not getting the spool request and printout
    In the same way in dunning,,i did the entire procedure,but not getting the spool request...
    kindly help me
    Regards
    Sap Guru

    hi Sapguru,
    ok, Congrats for posting the Orders...haa
    Go to Tcode <b>SE38</b> and enter the program as <b>RFFOUS_C</b> and execute it.
    In that screen enter the <b>Identification and program run date</b> and enter all the required firelds and then again execute it....
    So that u can print the Check with the check lot number that u have created
    Please create the check lot number in <b>FCHI</b>.
    If u want to see the spool then go to <b>SP01 </b>and see there...
    Hpe this resolve our problem...
    assign the points if usefulll
    Ranjit
    null

  • I have 2 iphones4! Do I have to create one apple id for each device or I can have both in one apple id? I'm asking cause I'm trying to run findmyiphone app for both devices!

    I have 2 iphones4! Do I have to create one apple id for each device or I can have both in one apple id? I'm asking cause I'm trying to run findmyiphone app for both devices!

    Here's what I do. My wife and  I each have an iPhone. We each have our own Apple ID. I also have another totally separate Apple ID. The ONLY thing that one has been used for was to set up Find my iPhone for our phones and my iPad. There is no reason the MobileMe setting for find my iphone can't be something completely different from your regular Apple ID UNLESS you already use MobileMe, in which case the 2 conflict in ways I don't understand as I don't subscribe to it.

  • How Do I Run the Apps?

    Hello all - have an HP Envy 4500, using the eprint centre, sched apps printing OK, but confused as to how to run the apps on demand. For example, HP Quick Forms. I can schedule, I can look at samples, but how does one print out a desired sheet such a sheet of graph paper on demand? I can't figure that one out, and also how does one post a comment. I don't see any button for that either. Another example is the App "Universal Crossword". I can schedule it and have them print, but how can I manually print one? So this applies to all the apps, how does one simply use them on demand instead of scheduling. Clickong on the app itself just gives the sample views.
    Thanks for any help.
    This question was solved.
    View Solution.

    Hi harrc,
    Welcome to the HP Support Forums. I see that you have some questions about the apps you find in HP Connected.
    To print a sample of any of the HP Quick Forms, you can print them on demand from the front panel of the printer. As for the remaining apps, there isn’t an on-demand option available. For reference I’ve included the Getting Started With HP Printables.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Error 500 Internal Server Error When trying to run an app

    Greetings,
    I'm trying to figure out how to fix this issue when I'm trying to run an app from JDeveloper 10.1.3.3.0.
    This is my problem
    1st of all it JD compiles everything great
    http://img163.imageshack.us/img163/6589/compiling.jpg
    2nd
    The embedded server seems to works
    http://img856.imageshack.us/img856/1231/runingserver.jpg
    3rd
    Everything crash!
    http://img14.imageshack.us/img14/4301/internalse.jpg
    JDeveloper doesn't shows any error. Same problem when trying to Debug
    I'm using an oracle DB 10g which is in a different computer (in a server)... any guesses?
    Thanks in advance!
    -Fury

    what URL you are trying to run ?
    did you try to run on different computer ?
    Jdev 10g is quite old now and i dont think it supports JSPX pages (i saw jspx extension in your deployment)
    Zeeshan

Maybe you are looking for