Control lifespan of modern apps from powershell

Hello,
I want to launch modern IE from a powershell script, and execute an action in that script when the user closes IE.
this is easy with regular programs as you can control the processes or simply wait for the return of a command.
To launch modern IE, I used this hack. It also works in Win8.1
https://pricklytech.wordpress.com/2014/10/05/quick-tip-how-to-enable-internet-explorer-modern-app-in-windows-10/
But I'm lost on how I can detect that the modern IE is shut down or how I can shut it down by script. Any pointers?
When I close modern IE, the process keeps existing so I don't know when the user has closed it.
Thanks!

Use WMI events.  You can wait on an event that is fired when an application closes.  Search for examples.
https://www.google.com/?gws_rd=ssl#newwindow=1&q=powershell+wmi+process+termination+event
\_(ツ)_/
Thank you for your suggestion.
It seems like the process of modern IE goes into suspended state and doesn't close the process when you close the window. Now let's see if I can detect the suspended state...

Similar Messages

  • Windows 10 - nVidia device drivers are stopping WinRT modern apps from working

    Having setup Windows 10 Enterprise on a VHDX first in a VM to be able to update to latest build (and previously had same issue), as soon as I boot natively on Lenovo W520 (NVidia Quadro 1000M graphics) and install the first set of drivers, the WinRT apps
    stop loading at all. The Live Tiles are still working, but when you try to launch any of them, it comes back with an error saying it can't load. interestingly, if I boot in the VM (so that the drivers don't load, but are still installed) all works fine again
    - so it is not the installation process that is breaking WinRT.
    The drivers I have installed (all from Windows Update) are:
    Intel HD Grapohics
    Lenovo Power Management
    NVidia (3d Vision, Graphics, nView, WM)
    Lenovo UltraNav Driver
    ** UPDATE: I have identified that it is the NVIDIA driver causing the problem. All other drivers now installed from Windows Update and working fine, as long as I don't install the NVIDIA driver.
    Has anyone seen this issue elsewhere, to give me a suggestion as to what could be causing the problem?
    Certainly feels like an "interesting" bug to be sorted out.

    What happens if you try latest drivers from the website of the manufacturer?
    If you download and install windows 8.1 compatible graphic card driver do you find any change?
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Can you copy Modern-app settings from one computer to another?

    Has anyone tried copying settings of Modern apps from one computer to another?
    Example: let's say that I wanted to copy the settings from the Photos app on one computer to a thousand other computers.  Would this work?  Are settings for Modern apps in a format that can be easily copied?
    This topic first appeared in the Spiceworks Community

    Thank you! It's so obvious now that I've given it some thought (hindsight is 20/20, right?) Wish the Apple tech at the store had thought of it before I was sent on my merry way and was under the impression I had what I needed.
    Def appreciate the quick answer from you tho'

  • How can i send my purchased apps(from itunes in my computer) to icloud through new icloud control panel on my windows computer

    I usually buy apps from my computer but i am unable to send these on icloud.
    I use a windows 7 64-bit
    I upgraded my itunes and got the icloud control panel but i am not able to stream my photos or apps to it
    Can someone help.

    Redownload all your purchased/free apps.
    How to redownload purchased apps from the App Store

  • In the modern world why is not possible to download apps from foreign countries whilst in the uk...!?

    In the modern world why is not possible to download apps from foreign countries whilst in the uk...!?

    Because apps are licensed for sale only in specific countries by the developers, and for iTunes Store and credit card security and anti-fraud purposes you need an AppleID and billing address in the country you are buying from.
    Just because it is a digital download does not mean licensing and local commerce laws and taxes do not apply, like they would to a physical item.

  • Mail, Calendar, Weather, News, and maybe other modern apps are crashing after updating from 10061 to 10074.

    I don't remember these issues in the announcement of the build. Any help?
    Spartan crashes sometimes too, but not like these. These can't even start.
    Funny thing is that tech support app crashes as well.

    JK
    There is a known issue with the people app but none for the others .  You may want to uninstall the mail calender, people apps using powershell as they did in 41 and then re-install them.You may want to run a system file check to verify the state of
    the OS
    Please run a system file check (SFC) & DISM if you are on win 8 or higher
    All instructions are in our Wiki article below...
    Should you have any questions please ask us.
    System file check (SFC) Scan and Repair System
    Files
    Wanikiya and Dyami--Team Zigzag

  • UAC box not accessible when "modern" app is open.

    Problem:
    Modern app and UAC don't work well together.UAC box is impossible to use (to answer Yes/No on security warning)
    To reproduce:
    Go to User Account Control Setting and lower the setting to second from bottom ( to not dim the screen).
    Download an EXE program and start the installation.While it installs, open and use a modern app like OneNote.While you're using OneNote, the installation on background opens a UAC box to ask for a confirmation.However,the UAC box is not visible.At this point
    it's impossible to use OneNote app but you can use all other things on the PC.When you minimize OneNote, the UAC box is not visible.Click anywhere on OneNote app and you hear a sound (as if it's telling you that you have an active pending box that you have
    to close before using that window) .When you maximize the OneNote app the UAC box becomes visible for 1 second then disappears again.The only way to solve this is to right click on OneNote icon on taskbar and Close it.The UAC is still invisible  ! You
    have to run the program installation again.

    We tried request scope but that caused other problems. We aren't really looking for the constructor to be called with every view, just when a new instance of the application is invoked (by clicking a link in an email). Right now, if the user opens a new browser from the start menu and pastes our link into it everything works fine. I think our problem is in IE and Windows. Perhaps we'll try request scope again and see if the problems that causes are easier to solve than this.
    Thanks again for your help and your fast replies,
    Dave

  • My weather app from iPhone is not updating

    Since Saturday, my weather app from iPhone 5 hasn't been updating sometimes.
    All of a sudden, it starts working again.
    - Why does that happen?
    - Is there any solution?
    Thanks!

    Hello thiagok91,
    I have a few recommendations for this issue you describe. First if you havent already, restart the phone.
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists after that, then I suggest toggling the Location Services off and then back on in settings outlined here:
    Turning Location Services on or off
    You can turn Location Services on or off at Settings > Privacy > Location Services. You can turn Location Services on either during the Setup Assistant process or later through the Location Services setting. You can turn it off if you don't want to use this feature or to conserve battery life. You can individually control which applications and system services have access to Location Services data.
    Settings > Privacy > Location Services:
    From: iOS 6: Understanding Location Services          http://support.apple.com/kb/HT5467
    And if needed, you may need to quit the app, and re launch it.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Take care,
    Sterling

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

  • Some Windows 8.1 Modern Apps will not open

    Hi We have been using Windows 8 for 2 years, however since a recent migration to a global AD system multiple modern apps have stopped working. Mail, Store, Camera etc all work - however as an example Yammer, Weave, Facebook, Ebay etc all go to open, show
    the splash screen then close (well they remain open on the side bar as a splash screen.
    I ran the modern UI checker tool, all ok (initially it told me UAC was disabled, but it wasn't - but I clicked to correct this and its not reappeared.) it prompted me to update all my drivers - which I have done. I've checked folder permissions as per Article
    ID: 2798317
    Is there anything else I can check - it must be a group policy or rights change, but I can not find it. Additioanlly we are looking to widen the rollout of Windows 8 but unitll we resolve this there is no point.
    Thanks
    Example error logs from Yammer - error 5961 
    Faulting application name: Yammer.ModernApp.exe, version: 1.6.0.0, time stamp: 0x5335dbd1
    Faulting module name: Windows.UI.Xaml.dll, version: 6.3.9600.16408, time stamp: 0x523d44f3
    Exception code: 0xc000027b
    Fault offset: 0x006db160
    Faulting process id: 0xcf8
    Faulting application start time: 0x01cf6f611e75b318
    Faulting application path: C:\Program Files\WindowsApps\Microsoft.Office.2_1.6.0.0_neutral__8wekyb3d8bbwe\Yammer.ModernApp.exe
    Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
    Report Id: 5c3c7942-db54-11e3-82fb-24ec993e0be9
    Faulting package full name: Microsoft.Office.2_1.6.0.0_neutral__8wekyb3d8bbwe
    Faulting package-relative application ID: App
    THEN - INFORMATION -
    Fault bucket , type 0
    Event Name: MoAppCrash
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: Microsoft.Office.2_1.6.0.0_neutral__8wekyb3d8bbwe
    P2: praid:App
    P3: 1.6.0.0
    P4: 5335dbd1
    P5: StackHash12_eba
    P6: 0.0.0.0
    P7: 00000000
    P8: 8000ffff
    P9: 0
    P10:
    Attached files:
    These files may be available here:
    C:\Users\llawrence\AppData\Local\Microsoft\Windows\WER\ReportQueue\AppCrash_Microsoft.Office_947847c164efc984dede2471ee66b0f39aa15c7_4deb8023_183cf0b3
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 5c3c7942-db54-11e3-82fb-24ec993e0be9
    Report Status: 4100
    Hashed bucket:
    THEN ERROR 2 -
    Activation of app Microsoft.Office.2_8wekyb3d8bbwe!App failed with error: The remote procedure call failed. See the Microsoft-Windows-TWinUI/Operational log for additional information.
    OPERATIONAL LOG SHOWS THIS -
    Activation of the app Microsoft.Office.2_8wekyb3d8bbwe!App for the Windows.Launch contract failed with error: The remote procedure call failed..

    Hi,
    Since it is joint in a domain computer, some Windows store Apps may be turned off by the  domain system administrator by group policy.
    You should go to the domain system administrator for help or deal with this according to the following link if you have the permission:
    here I give you the introduction about the Store related group policy settings:
    http://support.microsoft.com/kb/2826659/EN-US
    Regards
    v-yamliu

  • Is there a way to hide apps from the app store? I don't want my kids to see those "free" apps that nag you to spend real money and download their other apps! I can hide them from "purchased apps", but they still show up when browsing for new apps!

    Is there a way to hide apps from the app store?
    I don't want my kids to see those "free" apps that nag you to spend real money and download their other apps!
    I can hide them from "purchased apps", but  they still show up when browsing for new apps!
    Is there a way to hide them so that my kids will never see them when looking for new apps?

    Not other than parental oversight. On the computer you can implement Parental Controls on a separate user account that they would use. You can then block certain websites. But you cannot do that on the iPad.
    You could change your iTunes account such that they cannot access it in order to buy or download apps.

  • How do I transfer purchased apps from one mac to the other?

    When i want to sync my iPhone in iTunes on my new computer I will lose all of the apps that I purchased.
    Can someone tell me how to sync it in a way (or some other solution) so I can keep my purchased apps? 
    I'm using the same ID as on old mac.
    I have been searching on the internet for help, but I can't find a clear answer.
    Thanks in advance.

    1) authorize iTunes on the new machine for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    btw, purchased apps can be redownloaded over and over free of charge ...
    How to redownload purchased apps from the App Store
    ... and so can music and books
    http://www.apple.com/itunes/whats-new/

  • How can I get Configurator off my work PowerMac and have my ipad, ipod4 controlled by my macbook pro from home?

    Hi, I put apple configurator on my work machine which has all my itunes, my entire Apple Macintosh History on it and used apple configurator thinking it would be a great way to sync all my devices. I get it now, that it doesn't do that for the private person but is really for an institution or employer. Be that as it may I threw away the app from my main computer and thought I would be done with it.
    I just reinstalled apple configurator and thought I took all devices off it. My ipad disappeared from the itunes menu. I plugged my ipad back into my machine and Paulz Config reappeared. I need to get this off my work PowerMac and have my ipad, ipod4 controlled by my macbook pro from home. And does it matter if I use the same email address that's listed with my power mac at work to easily switch the dominant mac over to my home from work. Things can get dicey at work and I don't want my life tied to the work power mac anymore. Thanks, Paul I realize there are a ton of questions in this. I am gratefull if I can just get the apple config off everything.

    To completely remove Apple Configurator from a Mac, you need to delete the application along with the following:
    ~/Library/Containers/com.apple.configurator.
    You may also want to delete the contents of ~/Library/Keychains and /var/db/lockdown to remove the Supervision Certificate, public and private keys and device pairing information. NOTE: There are other things in Keychains that you may or may not want to delete. Google "keychains" to learn more about what's in that folder.
    Good luck!
    ~Joe

  • Can I sync purchased/merge/move apps from an old apple-ID to a new one?

    Hello all.
    I have been using an apple-ID, which I have been sharing with my family, for about two years now.
    Now I want to have my own apple-ID, so that I can have fully control over it myself, and so that I can use iCloud on my own apple devices and not on the whole family's!
    The problem is, though, that I have purchased a lot of apps on that old apple-ID, and I do not feel like buying all of those apps again on a new apple-ID - that would be a waste of money!
    So, is it possible to sync/merge/move/share those purchased apps from the old apple-ID to a new apple-ID?
    Of course I can keep all of the apps on my devices, but then again, it would be very unpractical to purchase and update some apps with the new ID, while I still have to update other apps with the old one.
    Any solutions?

    "So, is it possible to sync/merge/move/share those purchased apps from the old apple-ID to a new apple-ID?"
    No.
    Sorry.
    Apps will always be tied to the account from which they were purchased, and will always have to be updated using that account.

  • How do I remove an app from the update list that is under someone else's apple id?

    How do I remove an app from the update list that is under someone else's apple id? So this way the update always fails because it asks for someone else's password. I don't have the app on my mac, it only appears in the update list. It's just annoying, because the update keeps appearing, and the reminder keeps reminding me that I should install a new update.

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store alert. For example, the App Store may prompt you to update "Angry Birds" or "Twitter," but the hacked app may be something else entirely. Don't make any assumptions about which app you're looking for. To find it, you must carry out a systematic search with Spotlight.
    1. Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    2. In the Finder, press command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu of search criteria, initially showing Kind. From that menu, select
    Other...
    A sheet will drop down. In that sheet, select
    Raw Query
    as the criterion, then click OK or press return.
    Now there will be a text box to the right of the menu of search criteria. That's where you enter the raw search query. Click in that box and paste the text you copied earlier by pressing command-V.
    4. The search window will now show all the App Store products that are installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the apps in the Spotlight search results is not among your purchases in the App Store. Move each such item to the Trash, after quitting it if it's running. You may be prompted for your administrator password. Empty the Trash.
    Quit and relaunch the App Store. Test.
    If you find these instructions confusing, ask for an alternative method.

Maybe you are looking for

  • Urgent help needed for XML Tags using XMLForest()

    Folks I need some urgent help regarding getting use defined tag in your XML output. For this I am using XMLElement and XMLForest which seems to work fine when used at the SQL prompt but when used in a procedure throws and error SQL> Select SYS_XMLAGG

  • CF Report Builder and Excel format

    Hi Everyone, I was trying to display a report in excel format in report builder. It shows the data, but I do not find the print button options, whereas I can see it with other formats. Is this the way it is, or do I need to format anything more withi

  • Flash player and browser shortcut keys issue

    I've an issue to run the browser hot keys when the flash player is running, the player is kinda stoping the propagation of the events to the browser, is there a way for the player to bubble the events to the browser? . My application covers the whole

  • What new features in 3.0 will not be available to the iPod Touch?

    I fully expect that I will not have the capability to use voice control (not sure why, but what is the hardware limitation that does not allow this to work???) for my music, games that require > 128 MB of space to run, and to even think of video or c

  • SAP- AR Report by customer, account number and bucket

    Hello SAP Guru's, I am looking for a report that has Customer name, Account number and balance by bucket(30 day, 60, 90, 120).  I have seen this several times but cannot find it anywhere.  Can anyone tell me/ help me with this? Will award points. THA