Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant install via Install-Module #2

Closed
pompushko opened this issue Apr 6, 2020 · 14 comments
Closed

Cant install via Install-Module #2

pompushko opened this issue Apr 6, 2020 · 14 comments

Comments

@pompushko
Copy link

pompushko commented Apr 6, 2020

Hello

Install-Module PSZoom cant install ;(
Windows 2016 \ PSVersion 5.1.14393.3053

PS C:\Users\adm-user\Downloads> Install-Module PSZoom

WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/PSZoom/1.1.0' is not valid.
PackageManagement\Install-Package : Package 'PSZoom' failed to download.
At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21

  • ... $null = PackageManagement\Install-Package @PSBoundParameters
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceUnavailable: (C:\Users\adm-us...om\PSZoom.nupkg:String) [Install-Package], Exception
    • FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
@JosephMcEvoy
Copy link
Owner

JosephMcEvoy commented Apr 6, 2020

Hi,

It is working with me on PS 5.1.18362.628. Are you able to install other modules?

Update: Per https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/ TLS 1.0 is no longer supported by Powershell Gallery. See blog post for more details.

@pompushko
Copy link
Author

hello Joseph

Yes....

@JosephMcEvoy
Copy link
Owner

Unless there are additional reports I believe the issue is with your local computer. I would suggest cloning from Github and importing manually.

@pompushko
Copy link
Author

Strange...
This is help to me:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

But, have second problem:

PS C:\Windows\system32> C:\Scripts\PSZoom\PSZoom.ps1
VERBOSE: Retrieving Zoom API Credentials.
VERBOSE: Retrieved API Credentials.
VERBOSE: Generating JWT
VERBOSE: Generating Headers
VERBOSE: GET https://api.zoom.us/v2/users/USER@DOMAIN.com with 0-byte payload
Get-ZoomUser : The remote server returned an error: (401) Unauthorized.
At C:\Scripts\PSZoom\PSZoom.ps1:8 char:1

  • Get-ZoomUser -UserId "USER@DOMAIN.com" -ApiKey ...
  •   + CategoryInfo          : InvalidOperation: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-ZoomUser 
    
    
    
    

I create application and get key and secret. Still nothing :(

@JosephMcEvoy
Copy link
Owner

Make sure you are copying the key and secret. Zoom also has an IM chat key which I have seen get confused with the key/secret.

@pompushko
Copy link
Author

Copied many times ;(

IM chat key i need?

@pompushko
Copy link
Author

pompushko commented Apr 7, 2020

Today i try do that on different workstation and same problem. But instillation was good and without any problems

Get-ZoomUser : The remote server returned an error: (401) Unauthorized.

124 Invalid access token.

@JosephMcEvoy
Copy link
Owner

Do not use IM Chat history token. If you are using the correct key/secret maybe it is an issue with Zoom / you are not set up to use the API?

@pompushko
Copy link
Author

@JosephMcEvoy i create JWT app and all fine from Zoom side

image

@JosephMcEvoy
Copy link
Owner

Can you try the following:
Get-ZoomUsers -APIKey 'ApiKeyGoesHere' -ApiSecret 'ApiSecretGoesHere' -Verbose

Also for reference on what to copy:
image

@pompushko
Copy link
Author

Do that twice :D

Get-ZoomUsers : The remote server returned an error: (401) Unauthorized.

@JosephMcEvoy
Copy link
Owner

Try making a new account and using the credentials from the new account. I just tried this and it is working (with a free/basic account).

@pompushko
Copy link
Author

pompushko commented Apr 7, 2020

@JosephMcEvoy i didnt know how to delete previous one.

I try create from different account - and cannot do that, because already exists.

image

@JosephMcEvoy
Copy link
Owner

Try making a new Zoom account under a different email.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants