Powershell – How to run a powershell script with logged in user using SCCM 2002

package-managementpowershellsccmusers

I have a PowerShell script (package) which need to run with the logged in domain user account in order to get a file from intranet site. It should be silent installation without any user intervention
By default, SCCM launching the script in system context but I want to change it to user context.

Thank you in advance.

Best Answer

A how-to is described in this question In what context do SCCM Powershell detection scripts run in?

Basically create a Deployment and define the command line as powershell running your script from a share or scriptblock. Target the User with the deployment and specify it only runs when the user is logged in and it should execute in the User context.

The linked question provides a much better write-up