I try to map network drive dynamically with credentials taken from orchestrator ( Get Credential activity ) for security purposes.
I have Invoke Power shell activity in Windows project
and put this inside
$driveLetter $drivePath and $userName are String
$password is SecureString
to help other:
I’ve created a ticket and this is a known issue by UiPath team.
Planned to be solved for the 2023.10 version of UiPath ( coming for october)
Would you be able to retest it with the System 23.12.0-preview activity package? It contains a new property called Execution Mode, where you should set the earlier version of PowerShell before retrying.
Thanks for asking and reopening tickets to give some advices !
I’ve enabled pre-release activities and made a try with this new 23.12.0 and I confirm,
now it works nicely ! ( Powershell 5.1 instead of 7.2.15 )
We will now go further with this approach in terms of security