Hello everybody
I am setting up a PowerShell to retrieve files from an SFTP server.
When I run it from the server with my administrator account, it works perfectly from the GUI.
When I perform the same test without being connected to the GUI with a user profile, I get an error message:
access deneid folder C:\Windows\System32\config\systemprofile\Temp.
I tried to give the rights to the user and it still does not work.
We also used a portable version from a bat script with the user profile and no problem encountered.
Is it possible to change the location of the Temp directory?
Do you have any other solution?
One possibility in my opinion would be to give the user the Administrator rights which is not the best for our institution.
You will find attached the connection method used.
I thank you in advance for your help
Sincerely
Michael