Box CLI Error: no default environment found
Hi all,
I have configured a PowerShell script to use the Box CLI instead of buggering on with trying to configure theWindows SDK to be used for REST calls.
When performing this on my local machine it works like a charm.
But I am writing the script to automate the creation of users via a Selfservice Product; HelloID.
So I perform the PowerShell task from a website on which I can request this task, then the agent service will perform the PowerShell task.
So whenever i request the task to perform the action on my local pc, i get the following error message:
System.Management.Automation.RemoteException: No default environment found.
Any ideas on how to fix this?
-
I have set my default environment, although my Selfservice product does perform it as another user, is this an issue?
I have set the default environment like this:box configure environments add "C:\Users\adm_ramon\Downloads\56573075_nxiiffpe_config.json" --name BoxCLI --set-as-current
The Selfservice Solution performs the action as local system and the PowerShell task which it uses is stored at C:\ProgramData\Tools4ever\HelloID Directory Agent\tasks
Perhaps this may raise some ideas?
サインインしてコメントを残してください。
コメント
3件のコメント