sdk-powershell-api-v2
sdk-powershell-api-v2 copied to clipboard
Cannot write registry key?
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
New-BoxAccessToken call these functions first.