PowerShell Scripting - How to Find Box Sync Folder?
I have PowerShell scripts that reference files in my Box Sync folder. I am trying to share these scripts with other members of my team but the Box Sync folder is different for other people but running into issues with having the location of the Box Sync folder hard-coded in the script. Is there an API call, registry lookup, etc. that I can use to find the root of the Box Sync folder local/unique to each User's configuration?
As an enhancement request, what would be awesome would be the Box Sync installer create a %BoxSync% environment variable that a script could reference. Env variable cover both Machine and User based installs and would allow even basic bat/cmd scripts to accomodate Box Sync folders.