Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Do Detection Method scripts always run as the user?

$
0
0

I have a PowerShell detection method that I'm trying to use to detect an AppxProvisionedPackage, and if I'm logged on with an account that has local admin rights, the detection method works fine, but if on an account without admin rights, I see these errors in the AppDiscovery.log file:

In-line script returned error output: Get-AppxProvisionedPackage : The requested operation requires elevation.
A script execution error has occurred. The script has no output in stdout and an error message in stderr.
Failed to perform detection of app deployment type 3DBuilder (Remove) (All Users)(3DBuilder (Remove) (All Users), revision 2)for user. Error 0xffffffff

The script in question that I run is this: Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like "*builder*"}

So the question is, do the powershell detection scripts always run as the user? Or is there a way to get them to run as the SYSTEM account?


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>