sdk-powershell-api-v2 icon indicating copy to clipboard operation
sdk-powershell-api-v2 copied to clipboard

Cannot write registry key?

Open genevish opened this issue 5 years ago • 1 comments

I'm getting this error:

Get-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\BoxAPI' because it does not exist.
At C:\Users\1sgenevish\Desktop\sdk-powershell-api-v2-master\box\box.psm1:293 char:21
+     $last_refresh = Get-ItemProperty -Path $reg_key -Name "token_time"
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (HKLM:\SOFTWARE\BoxAPI:String) [Get-ItemProperty], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand 

genevish avatar Jun 16 '20 19:06 genevish

New-BoxAccessToken call these functions first.

firebellys avatar Jun 16 '21 05:06 firebellys