I have made no changes at all to the script. Also to my surprise the same script is running today. But I definitely need to figure out what could be the reason behind this. So I was thinking of the changes that I did and noting them as under. Please point out if these factors could be responsible or not for this behavior.
I am running a standalone powershell script that firsts installs uipath.powershell module if not present and then creates many assets. The strip down generalized version would be as below.
installation of UIPath powershell…
Install-PackageProvider -Name NuGet -Force
register uipath repository
$uipathrepository = Get-PSRepository -Name “UiPath”
Register-PSRepository -Name UiPath -SourceLocation https://www.myget.org/F/uipath-dev/api/v2
install uipath powershell module
$uipathmodule = Get-Module -Name “UiPath.Powershell”
Install-Module -Repository UiPath -Name UiPath.Powershell -Force
connect to orchestrator in case of public cloud orchestrator
Add-UiPathAsset GlobalAsset -IntValue 1
Here when i try to connect to orchestrator, window to ask for credentials popped up but now it does not, so does it pick username and password from chrome’s saved passwords ? If yes then, yesterday i did clear my browsing history and cache.
I did restart my machine today and it seems to run smoothly.