How to Create Session under different User Credentials
I have a custom Windows Service on a VM that runs under service account credentials. The credentials have Log On as Service, but is not allowed to use Remote Desktop. Therefore, I cannot logon to the machine with the service account credentials.
The Windows Service shells out to a command prompt where it launches the command line version of WinSCP with the /script argument. The script is a text file that contains the open command. For example "open abc@def.net" where abc@def.net is the FTP site.
I have found that you need to logon to the machine with the credentials and run WinSCP to create the session. It seems to get saved with the logon credentials of the person who ran WinSCP.
But I cannot login with the Service Account credentials.
Is there a way for me to run WinSCP with my login credentials, and then somehow copy that session information to the Service Account credentials?
Thanks,
The Windows Service shells out to a command prompt where it launches the command line version of WinSCP with the /script argument. The script is a text file that contains the open command. For example "open abc@def.net" where abc@def.net is the FTP site.
I have found that you need to logon to the machine with the credentials and run WinSCP to create the session. It seems to get saved with the logon credentials of the person who ran WinSCP.
But I cannot login with the Service Account credentials.
Is there a way for me to run WinSCP with my login credentials, and then somehow copy that session information to the Service Account credentials?
Thanks,