Thanks for reporting this.Maybe I missed a really simple step here but I downloaded the V5 version of the script, but every time I ran it, I got the following error.
ERR/failed to load user settings file 'BI_clip_usage_user_settings.ps1'
Tip: try executing it directly to confirm it exists and reveal syntax errors
I validated both scripts existed in C:\scripts.
I ended up having to change line 868 to the explicit full path of the settings .ps1 file. Then it worked fine.
$user_settings_filename = 'C:\Scripts\BI_clip_usage_user_settings.ps1'
When line 868 was set as below
$user_settings_filename = $ScriptName.Replace(".ps1", "_user_settings.ps1")
The output of Write-Host $user_settings_filename was
BI_clip_usage_user_settings.ps1
Questions:
1. Please confirm that the script is working for you with your code tweak?
2. What version of PowerShell are you running? To get the version, type this in your console:
$PSVersionTable
3. Is folder C:\Scripts on your server's Environment path?
Last edited: