Moving Files onto a File Server Folder that is protected with ID and Password

Hello,

I currently want to use a Move File Activity to move a file onto one of the shared server folders.
However it is protected by ID and Password which is the error that comes up when I try to run it on the UIPath Studio.
Is there a way for me to input the ID and PW so that I can move the file into that server.
(PS: It works if I already am logged in to it)

Add it to the Windows Credential Manager.

https://support.microsoft.com/en-us/help/4026814/windows-accessing-credential-manager

1 Like

@dvn - this can be achieved with powershall script - i can share some info… you can try it…

PowerShall Script…


$Username = "userName"
$Password = ConvertTo-SecureString "Complex_Passw0rd" -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential($Username, $Password)

New-PSDrive -Name J -PSProvider FileSystem -Root $Dest -Credential $mycreds -Persist
Move-Item -Path "D:\test\abc.txt" -Destination "E:\dest\myfile.txt"

i did a sample till move-item (path & destination) - attached… you can try to incorporate credentials in the workflow (code is mentioned above will work perfectly)
seqMove.xaml (4.7 KB)

integrate powershall step by step…