
# so maybe to disable startups by setting them to 1: Microsoft.WindowsTerminal_8wekyb3d8bbwe StartTerminalOnLoginTask $starts = get-appxpackage -pv app | get-appxpackagemanifest | % $a = get-appxpackage *windowsterminal* | Get-AppxPackageManifest $a = Get-AppxPackage *skype* | Get-AppPackageManifest
:max_bytes(150000):strip_icc()/skype-windows-8-start-automatically-5bcdfaf7c9e77c0051387d2e.png)
Even Sysinternals Autoruns doesn't detect these. The registry key name seems to be non standard maybe you can get the name of the key from the manifest or something. Here's an example of where the skype app startup info is in the registry. Set-ItemProperty -Path $regKey -Name State -Value 1įor more info about possible State values, see: įor an example of how these tasks are built into UWP apps, see: Set-ItemProperty -Path $regKey -Name LastDisabledTime -Value $lastDisabled $lastDisabled = (New-TimeSpan -Start (Get-Date ' 00:00:00 GMT') -End (Get-Date)).TotalSeconds Set-ItemProperty -Path $regKey -Name State -Value 2 Set-ItemProperty -Path $regKey -Name UserEnabledStartupOnce -Value 1 $regKey = "HKCU:Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\$pkgName\$taskId" $state = (Get-ItemProperty -Path "HKCU:Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\$pkgName\$taskId" -Name State).State $startupTask = ($app | Get-AppxPackageManifest).Extension | Where-Object -Property Category -Eq -Value windows.startupTask In this example, I am toggling the state of Skype's desktop extension startup task: $app = (Get-AppxPackage | Where-Object -Property Name -EQ -Value Microsoft.SkypeApp) Here's a potential work-around until native calls to ::RequestEnableSync() and ::Disable() methods are achieved.
