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!