![]() $a = Get-AppxPackage *skype* | Get-AppPackageManifest 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.
0 Comments
Leave a Reply. |