Run powershell as different user
Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
2 posts
Page 1 of 1
I need to run a powershell script as a specific ldap user. The powershell script is executed from within the project:
The script appears to be currently executed as the machine account. is there any way to change this to another user account?
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?
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
GoAnywhere will automatically use the UserID used to start the GoAnywhere Service as the user running the local command.
I would suggest that you change the GoAnywhere Service under the Logon Tab and have GoAnywhere started by a Service Domain Account that has the permissions you need to execute the powershell script.
Remember, that Domain Account must have permissions to start GoAnywhere as a service and run the program as well.
I would suggest that you change the GoAnywhere Service under the Logon Tab and have GoAnywhere started by a Service Domain Account that has the permissions you need to execute the powershell script.
Remember, that Domain Account must have permissions to start GoAnywhere as a service and run the program as well.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts
Page 1 of 1