<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Logon Task not working in Dynamic Environment Manager</title>
    <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Logon-Task-not-working/m-p/2991925#M8155</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I have a odd problem with a Logon-Task which doesn't seem to run.&lt;/P&gt;&lt;P&gt;I have two very similiar Logon-Tasks commands which run a a powershell:&lt;/P&gt;&lt;P&gt;powershell Add-AppxPackage -DisableDevelopmentMode -Register 'C:\Program Files\WindowsApps\NVIDIACorp.NVIDIAControlPanel_8.1.964.0_x64__56jybvy8sckqj\AppXManifest.xml'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;powershell Add-AppxPackage -DisableDevelopmentMode -Register 'C:\Program Files\WindowsApps\MSTeams_23272.2707.2453.769_x64__8wekyb3d8bbwe\AppXManifest.xml'&lt;/P&gt;&lt;P&gt;The first one runs without any problem. The second one (with Teams) doesn't seem to work.&lt;/P&gt;&lt;P&gt;But when doing this command manually (you don't need elevated rights) in the VDI-session it works or the desired&amp;nbsp;purpose has been achieved (I can run the New MS-Teams).&lt;/P&gt;&lt;P&gt;I don't see any errors in the logs:&lt;/P&gt;&lt;P&gt;2023-10-20 11:14:26.221 [INFO ] Running post-import task asynchronously ('powershell Add-AppxPackage -DisableDevelopmentMode -Register 'C:\Program Files\WindowsApps\MSTeams_23272.2707.2453.769_x64__8wekyb3d8bbwe\AppXManifest.xml'') ('NEW MS-Teams.xml')&lt;BR /&gt;2023-10-20 11:14:26.245 [INFO ] Running post-import task asynchronously ('powershell Add-AppxPackage -DisableDevelopmentMode -Register 'C:\Program Files\WindowsApps\NVIDIACorp.NVIDIAControlPanel_8.1.964.0_x64__56jybvy8sckqj\AppXManifest.xml'') ('NVIDIA Control Panel.xml')&lt;/P&gt;&lt;P&gt;Has anybody an idea how to troubleshoot this Logon Task or what can cause this behavior?&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 11:26:46 GMT</pubDate>
    <dc:creator>TomH201110141</dc:creator>
    <dc:date>2023-10-20T11:26:46Z</dc:date>
    <item>
      <title>Logon Task not working</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Logon-Task-not-working/m-p/2991925#M8155</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I have a odd problem with a Logon-Task which doesn't seem to run.&lt;/P&gt;&lt;P&gt;I have two very similiar Logon-Tasks commands which run a a powershell:&lt;/P&gt;&lt;P&gt;powershell Add-AppxPackage -DisableDevelopmentMode -Register 'C:\Program Files\WindowsApps\NVIDIACorp.NVIDIAControlPanel_8.1.964.0_x64__56jybvy8sckqj\AppXManifest.xml'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;powershell Add-AppxPackage -DisableDevelopmentMode -Register 'C:\Program Files\WindowsApps\MSTeams_23272.2707.2453.769_x64__8wekyb3d8bbwe\AppXManifest.xml'&lt;/P&gt;&lt;P&gt;The first one runs without any problem. The second one (with Teams) doesn't seem to work.&lt;/P&gt;&lt;P&gt;But when doing this command manually (you don't need elevated rights) in the VDI-session it works or the desired&amp;nbsp;purpose has been achieved (I can run the New MS-Teams).&lt;/P&gt;&lt;P&gt;I don't see any errors in the logs:&lt;/P&gt;&lt;P&gt;2023-10-20 11:14:26.221 [INFO ] Running post-import task asynchronously ('powershell Add-AppxPackage -DisableDevelopmentMode -Register 'C:\Program Files\WindowsApps\MSTeams_23272.2707.2453.769_x64__8wekyb3d8bbwe\AppXManifest.xml'') ('NEW MS-Teams.xml')&lt;BR /&gt;2023-10-20 11:14:26.245 [INFO ] Running post-import task asynchronously ('powershell Add-AppxPackage -DisableDevelopmentMode -Register 'C:\Program Files\WindowsApps\NVIDIACorp.NVIDIAControlPanel_8.1.964.0_x64__56jybvy8sckqj\AppXManifest.xml'') ('NVIDIA Control Panel.xml')&lt;/P&gt;&lt;P&gt;Has anybody an idea how to troubleshoot this Logon Task or what can cause this behavior?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 11:26:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Logon-Task-not-working/m-p/2991925#M8155</guid>
      <dc:creator>TomH201110141</dc:creator>
      <dc:date>2023-10-20T11:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Logon Task not working</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Logon-Task-not-working/m-p/2993609#M8162</link>
      <description>&lt;P&gt;May I ask why are you doing those two tasks?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 20:14:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Logon-Task-not-working/m-p/2993609#M8162</guid>
      <dc:creator>antonpaloka</dc:creator>
      <dc:date>2023-10-31T20:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Logon Task not working</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Logon-Task-not-working/m-p/2993862#M8166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/1219710"&gt;@antonpaloka&lt;/a&gt;&amp;nbsp;... yes you can &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@7651DD0E8772B3B5D93ADA9ABA2E067C/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;I use OSOT to optimize my golden images and in common tasks there is an option to remove/disable Windows store apps (AppX - modern apps).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first logon task is to reenable the NVIDIA control panel for users, because it`s an AppX app (modern app or how ever you want to call it) since version 15.x of the vGPU driver package.&lt;/P&gt;&lt;P&gt;The second one (which doesn't work as a logon task) is to enable the NEW MS Teams (AppX version) to run from a shortcut created by DEM.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 08:50:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Logon-Task-not-working/m-p/2993862#M8166</guid>
      <dc:creator>TomH201110141</dc:creator>
      <dc:date>2023-11-02T08:50:38Z</dc:date>
    </item>
  </channel>
</rss>

