Code: Select all
<project name="HR Import" mainModule="Main" version="2.0">
<module name="Main">
<exec label="Execute Powershell Script with Parameters" executable="C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" workingDir="C:\Windows\System32\WindowsPowerShell\v1.0" inputFile="C:\Linoma_Scripts\HR_Import\empty.txt" version="1.0" logLevel="debug">
<arg value="-File" />
<arg value="C:\Linoma_Scripts\HR_Import\HR_Import.ps1" />
<arg value="-ExecutionPolicy" />
<arg value="Bypass" />
</exec>
</module>
<description>Execute a PowerShell script to import information</description>
</project>
The script appears to be currently executed as the machine account. is there any way to change this to another user account?