Utilizzando questo sito, accetti il politica sulla riservatezza.
Accettare
EnterinITEnterinITEnterinIT
  • CASA
  • PROFESSIONISTA
  • TECNICA
  • MICROSOFT
    • Azzurro
    • ConfigMgr/SCCM
    • DPM
    • Orchestratore
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Ufficio 365
    • Insider dell'ufficio
    • Potenza BI
    • Skype
    • SQLServer
    • Squadre
  • FINESTRE
    • Centro di amministrazione di Windows
    • Cliente Windows
    • Windows Server
  • Elenco raccolte query SCCM
Lettura: PowerShell unable to resolve package source
Ridimensionamento dei caratteriAa
EnterinITEnterinIT
Ridimensionamento dei caratteriAa
  • CASA
  • PROFESSIONISTA
  • TECNICA
  • MICROSOFT
  • FINESTRE
  • Elenco raccolte query SCCM
Ricerca
  • CASA
  • PROFESSIONISTA
  • TECNICA
  • MICROSOFT
    • Azzurro
    • ConfigMgr/SCCM
    • DPM
    • Orchestratore
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Ufficio 365
    • Insider dell'ufficio
    • Potenza BI
    • Skype
    • SQLServer
    • Squadre
  • FINESTRE
    • Centro di amministrazione di Windows
    • Cliente Windows
    • Windows Server
  • Elenco raccolte query SCCM
Professionista informatico

PowerShell unable to resolve package source

Pubblicato a febbraio 18, 2024
1 Lettura minima
CONDIVIDERE

PowerShell is unable to resolve the package source.

When trying to import an excel module in PowerShell an enterprise PC I encounter the next error:

unable to resolve package source ‘https //www.powershellgallery.com/api/v2/’

The reason is very simple – trying to install a PowerShell module behind a proxy?

Turns out it isn’t allowed through a proxy server, run this in a PowerShell session and try again:

$webclient=New-Object System.Net.WebClient
$webclient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredent
TAGGATO:PowerShellFinestreFinestre 10
Articolo precedente Insider dell'ufficio 2002 per Windows
Articolo successivo SCCM Error Checking the site
3 Commenti 3 Commenti
  • Andrew McAdam dice:
    Maggio 27, 2020 A 5:45 Sono

    You also need to run:
    [Net.ServicePointManager]::SecurityProtocol = “tls12”
    after these lines to make it work.
    At least I needed to.

    Rispondere
  • Juan R.G> dice:
    Giugno 25, 2020 A 4:21 pm

    Awesome , I was struggling with this for 2 ore , I though antivirus was blocking this but after running these lines it finally worked !!! Grazie

    $webclient=New-Object System.Net.WebClient
    $webclient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
    

    [Net.ServicePointManager]::SecurityProtocol = “tls12

    what exactly these lines do??

    Rispondere
    • Andrej Prijmak dice:
      Giugno 26, 2020 A 2:01 Sono

      CIAO.
      [Net.ServicePointManager]::SecurityProtocol = “tls12 – will force TLS 1.2 as default in Powershell

      Rispondere

Lascia una risposta Annulla risposta

Il tuo indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito utilizza Akismet per ridurre lo spam. Scopri come vengono elaborati i dati dei tuoi commenti.

Traduzione

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
 Modifica traduzione
di Transposh - plugin di traduzione per wordpress

Post popolari

Requisiti di sistema per Windows Server 2016
Windows Server
Elenco raccolte query di Gestione configurazione
Elenco raccolte query di Gestione configurazione
ConfigMgr
Navigazione strutturata/gestita abilitata nelle pagine moderne nei siti del team classici
Tecnologia
SCCM Impossibile ottenere le posizioni DP come versione prevista da MP
ConfigMgr

Post recenti

Installazione e configurazione di Fail2ban per la protezione SSH su Ubuntu 24.04
Linux
Abilitazione e configurazione di FirewallD su AlmaLinux
Linux
Creazione utente e configurazione chiave SSH in AlmaLinux
Linux
Come reimpostare la password su AlmaLinux
Linux

© 2023 EnterinIT

Vai alla versione mobile
adbanner
Bentornato!

Accedi al tuo account

Nome utente o indirizzo e-mail
Password

Hai perso la password?