You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is really an issue with Privexec but I figured if anybody had any clue what was going on here it'd be @WildByDesign@fcharlie or @forderud
I'm trying to write a PowerShell script that can use the Windows.Networking.BackgroundTransfer.BackgroundDownloader class from WinRT.
However, this class appear to only be accessible from within an App Container
If you run the following code from a normal PowerShell window
When I run Procmon, no activity is generated when it fails in the AppContainer.
I know Procmon is working because I see lots of activity when I run the same code in normal PowerShell.
My speculation is that this is one of the WinRT APIs that requires an Appx package manifest in addition to being run in an App Container. However I find it odd that the code works fine outside of an AppContainer.
I'm hoping there's something obvious I'm missing.
The text was updated successfully, but these errors were encountered:
I'm not sure if this is really an issue with Privexec but I figured if anybody had any clue what was going on here it'd be @WildByDesign @fcharlie or @forderud
I'm trying to write a PowerShell script that can use the Windows.Networking.BackgroundTransfer.BackgroundDownloader class from WinRT.
However, this class appear to only be accessible from within an App Container
If you run the following code from a normal PowerShell window
you get
If I use Privexec to spawn Powershell it constructs the object
Naturally the next thing I need to do is give the class I constructed a Windows.Storage.StorageFile object that points to the download destination.
I do this with the following code, which works as expected from within normal PowerShell
However, it seems like no matter what path I specify or what capabilities I give the App Container, I always get
Things I've tried:
When I run Procmon, no activity is generated when it fails in the AppContainer.
I know Procmon is working because I see lots of activity when I run the same code in normal PowerShell.
My speculation is that this is one of the WinRT APIs that requires an Appx package manifest in addition to being run in an App Container. However I find it odd that the code works fine outside of an AppContainer.
I'm hoping there's something obvious I'm missing.
The text was updated successfully, but these errors were encountered: