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

Run Powershell Script from SCCM in logged in user context using admin rights

$
0
0

Hi,

I am trying to run a powershell script using SCCM package with admin rights using command line switch - "powershell.exe -executionpolicy bypass .\filename.ps1" but it is partially working form me. My script goes to Registry\HKLM and HKU to collect values, it works successfully for HKLM but doesn't collect any value for HKU because SCCM is running script withNT Authority\SYSTEM. Does anyone have any idea how can we run the script from sccm in logged user context with admin rights. 

Please help!


Viewing all articles
Browse latest Browse all 4762

Trending Articles



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