Closed flaviusmp closed 2 years ago
Hi,
When I am trying to execute the command "Export-M365DSCConfiguration" it returns the following error:
_PS C:\windows\system32> Export-M365DSCConfiguration Updating dependency {MicrosoftTeams} to version {4.0.0}...PackageManagement\Install-Package : Package 'MicrosoftTeams' failed to be installed because: End of Central Directory record could not be found. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : InvalidResult: (MicrosoftTeams:String) [Install-Package], Exception
+ FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage_
I am using it in a WS 2019 Datacenter (1809) with the following PS version:
_PS C:\windows\system32> $PSVersionTable
Name Value
PSVersion 5.1.17763.2867
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.2867
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1_
Also the repository is ok:
_PS C:\windows\system32> Get-PSRepository
Name InstallationPolicy SourceLocation
PSGallery Trusted https://www.powershellgallery.com/api/v2_
What could be the problem?
Could you try to update your whole M365DSC Module and installation:
Update-Module Microsoft365DSC
Update-M365DSCDependencies
Uninstall-M365DSCOutdatedDependencies
Hi, if I try to update it I get the same error:
PS C:\windows\system32> Update-Module Microsoft365DSC PackageManagement\Install-Package : Package 'Microsoft365DSC' failed to be installed because: End of Central Directory record could not be found. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:13069 char:20
+ CategoryInfo : InvalidResult: (Microsoft365DSC:String) [Install-Package], Exception
+ FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
This looks like an issue with PowerShellGet or you network. Are there any AV appliances or Proxies that could break the download. We have seen some issues lately about the module (MSCloudLoginAssistant) were blocked by AV scanners.
This issue is very likely related to PowerShell or Windows and not specific to Microsoft 365 DSC. Maybe one of the following resources has some hints to get around this issue:
Hi,
I don´t think is a windows or powershell issue. If I try to install the module "MicrosoftTeams" it works (updated to version 4.4.1 in this case):
PS C:\windows\system32> Install-Module MicrosoftTeams -Force -Verbose VERBOSE: Using the provider 'PowerShellGet' for searching packages. VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='MicrosoftTeams'' for ''. VERBOSE: Total package yield:'1' for the specified package 'MicrosoftTeams'. VERBOSE: Performing the operation "Install-Module" on target "Version '4.4.1' of module 'MicrosoftTeams'". VERBOSE: The installation scope is specified to be 'AllUsers'. VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modules'. VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'. VERBOSE: Downloading module 'MicrosoftTeams' with version '4.4.1' from the repository 'https://www.powershellgallery.com/api/v2'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='MicrosoftTeams'' for ''. VERBOSE: InstallPackage' - name='MicrosoftTeams', version='4.4.1',destination='C:\Users\admpricopfl\AppData\Roaming\Local\Temp\1591651669' VERBOSE: DownloadPackage' - name='MicrosoftTeams', version='4.4.1',destination='C:\Users\admpricopfl\AppData\Roaming\Local\Temp\1591651669\MicrosoftTeams.4.4.1\MicrosoftTeams.4.4.1.nupkg', uri='https://www.powershellgallery.com/api/v2/package/MicrosoftTeams/4.4.1' VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/MicrosoftTeams/4.4.1'. VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/MicrosoftTeams/4.4.1'. VERBOSE: Completed downloading 'MicrosoftTeams'. VERBOSE: Hash for package 'MicrosoftTeams' does not match hash provided from the server. VERBOSE: InstallPackageLocal' - name='MicrosoftTeams', version='4.4.1',destination='C:\Users\admpricopfl\AppData\Roaming\Local\Temp\1591651669' VERBOSE: Validating the 'MicrosoftTeams' module contents under 'C:\Users\admpricopfl\AppData\Roaming\Local\Temp\1591651669\MicrosoftTeams.4.4.1' path. VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\admpricopfl\AppData\Roaming\Local\Temp\1591651669\MicrosoftTeams.4.4.1'. VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'MicrosoftTeams'. VERBOSE: Catalog file 'MicrosoftTeams.cat' is not found in the contents of the module 'MicrosoftTeams' being installed. VERBOSE: Valid authenticode signature found in the file 'MicrosoftTeams.psd1' for the module 'MicrosoftTeams'. VERBOSE: For publisher validation, current module 'MicrosoftTeams' with version '4.4.1' with publisher name 'CN=Skype Software Sarl, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'. VERBOSE: For publisher validation, using the previously-installed module 'MicrosoftTeams' with version '4.4.1' under 'C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\4.4.1' with p ublisher name 'CN=Skype Software Sarl, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Cor poration, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'. VERBOSE: Authenticode issuer 'CN=Skype Software Sarl, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'MicrosoftTeams' with version '4.4.1' matches with the authen ticode issuer 'CN=Skype Software Sarl, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'MicrosoftTeams' with version '4.4.1'. VERBOSE: Checking for possible command collisions for the module 'MicrosoftTeams' commands. VERBOSE: Module 'MicrosoftTeams' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\4.4.1'.
But when I try to update the dependecies of DSC it fails: PS C:\windows\system32> Update-M365DSCDependencies -Force -Verbose Installing DSCParser version {1.3.0.4} Installing ExchangeOnlineManagement version {2.0.5} Installing Microsoft.Graph.Applications version {1.9.3} Installing Microsoft.Graph.Authentication version {1.9.3} Installing Microsoft.Graph.DeviceManagement version {1.9.3} Installing Microsoft.Graph.DeviceManagement.Administration version {1.9.3} Installing Microsoft.Graph.DeviceManagement.Enrolment version {1.9.3} Installing Microsoft.Graph.Devices.CorporateManagement version {1.9.3} Installing Microsoft.Graph.Groups version {1.9.3} Installing Microsoft.Graph.Identity.DirectoryManagement version {1.9.3} Installing Microsoft.Graph.Identity.Governance version {1.9.3} Installing Microsoft.Graph.Identity.SignIns version {1.9.3} Installing Microsoft.Graph.Planner version {1.9.3} Installing Microsoft.Graph.Teams version {1.9.3} Installing Microsoft.Graph.Users version {1.9.3} Installing Microsoft.PowerApps.Administration.PowerShell version {2.0.142} Installing MicrosoftTeams version {4.0.0} PackageManagement\Install-Package : Package 'MicrosoftTeams' failed to be installed because: End of Central Directory record could not be found. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : InvalidResult: (MicrosoftTeams:String) [Install-Package], Exception
+ FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing MSCloudLoginAssistant version {1.0.83} Installing PnP.PowerShell version {1.9.0} PackageManagement\Install-Package : Package 'PnP.PowerShell' failed to be installed because: End of Central Directory record could not be found. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : InvalidResult: (PnP.PowerShell:String) [Install-Package], Exception
+ FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing ReverseDSC version {2.0.0.10}
I was searching and tried everything you send me in that links, but it still fails. Any idea or something that I could try?
Regards.
Here more logs with the connection error:
PS C:\windows\system32> Update-Module Microsoft365DSC -Force -Verbose VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.7\fullclr\Microsoft.PackageManagement.ArchiverProviders.dll VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.7\fullclr\Microsoft.PackageManagement.MsuProvider.dll VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.7\fullclr\Microsoft.PackageManagement.CoreProviders.dll VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.7\fullclr\Microsoft.PackageManagement.NuGetProvider.dll VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.7\fullclr\Microsoft.PackageManagement.MsiProvider.dll VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.7\fullclr\Microsoft.PackageManagement.MetaProvider.PowerShell.dll VERBOSE: Cannot download link 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409', retrying for '2' more times. VERBOSE: Cannot download link 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409', retrying for '1' more times. VERBOSE: Cannot download link 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409', retrying for '0' more times. VERBOSE: Checking for updates for module 'Microsoft365DSC'. VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'. VERBOSE: Using the provider 'PowerShellGet' for searching packages. VERBOSE: Using the specified source names : 'PSGallery'. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft365DSC'' for ''. VERBOSE: Total package yield:'1' for the specified package 'Microsoft365DSC'. VERBOSE: Performing the operation "Update-Module" on target "Version '1.22.608.1' of module 'Microsoft365DSC', updating to version '1.22.608.1'". VERBOSE: The installation scope is specified to be 'AllUsers'. VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modules'. VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'. VERBOSE: Downloading module 'Microsoft365DSC' with version '1.22.608.1' from the repository 'https://www.powershellgallery.com/api/v2'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft365DSC'' for ''. VERBOSE: InstallPackage' - name='Microsoft365DSC', version='1.22.608.1',destination='C:\Users\admpricopfl\AppData\Roaming\Local\Temp\1873359058' VERBOSE: DownloadPackage' - name='Microsoft365DSC', version='1.22.608.1',destination='C:\Users\admpricopfl\AppData\Roaming\Local\Temp\1873359058\Microsoft365DSC.1.22.608.1\Microsoft365DSC.1 .22.608.1.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Microsoft365DSC/1.22.608.1' VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft365DSC/1.22.608.1'. VERBOSE: An error occurred while sending the request. VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft365DSC/1.22.608.1' for '2' more times VERBOSE: An error occurred while sending the request. VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft365DSC/1.22.608.1' for '1' more times VERBOSE: An error occurred while sending the request. VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft365DSC/1.22.608.1' for '0' more times VERBOSE: Downloading package 'Microsoft365DSC' failed, please make sure 'https://www.powershellgallery.com/api/v2/package/Microsoft365DSC/1.22.608.1' is accessable. WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft365DSC/1.22.608.1' is not valid. PackageManagement\Install-Package : Package 'Microsoft365DSC' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:13069 char:20
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri....22.608.1.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS C:\windows\system32> Update-M365DSCDependencies -Force -Verbose Installing DSCParser version {1.3.0.4} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/DSCParser/1.3.0.4' is not valid. PackageManagement\Install-Package : Package 'DSCParser' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...r.1.3.0.4.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing ExchangeOnlineManagement version {2.0.5} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/ExchangeOnlineManagement/2.0.5' is not valid. PackageManagement\Install-Package : Package 'ExchangeOnlineManagement' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ent.2.0.5.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Applications version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Authentication version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.DeviceManagement version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.DeviceManagement.Administration version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.DeviceManagement.Enrolment version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Devices.CorporateManagement version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Groups version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Identity.DirectoryManagement version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Identity.Governance version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Identity.SignIns version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Planner version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Teams version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.Graph.Users version {1.9.6} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.9.6' is not valid. PackageManagement\Install-Package : Package 'Microsoft.Graph.Authentication' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ion.1.9.6.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing Microsoft.PowerApps.Administration.PowerShell version {2.0.147} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.PowerApps.Administration.PowerShell/2.0.147' is not valid. PackageManagement\Install-Package : Package 'Microsoft.PowerApps.Administration.PowerShell' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...l.2.0.147.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing MicrosoftTeams version {4.4.1} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/MicrosoftTeams/4.4.1' is not valid. PackageManagement\Install-Package : Package 'MicrosoftTeams' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ams.4.4.1.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing MSCloudLoginAssistant version {1.0.85} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/MSCloudLoginAssistant/1.0.85' is not valid. PackageManagement\Install-Package : Package 'MSCloudLoginAssistant' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...nt.1.0.85.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing PnP.PowerShell version {1.10.0} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/PnP.PowerShell/1.10.0' is not valid. PackageManagement\Install-Package : Package 'PnP.PowerShell' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri...ll.1.10.0.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Installing ReverseDSC version {2.0.0.11} WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/ReverseDSC/2.0.0.11' is not valid. PackageManagement\Install-Package : Package 'ReverseDSC' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ CategoryInfo : ResourceUnavailable: (C:\Users\admpri....2.0.0.11.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS C:\windows\system32>
Could you try to open this link on your system using a browser and after that within PowerShell (invoke-webrequest):
https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409
are there any proxy servers involved?
Yep, true, it was the proxy that I didn´t know they applied to the server. After whitelist the powershell gallery it works well.
Thanks for the support!
Fortunately it works now.
ISSUE TITLE: Error updating dependency of MicrosoftTeams to version 4.3.0
ISSUE DESCRIPTION: Hello, when I am trying to run the commando "Export-M365DSCConfiguration" it returns the following error:
_PS C:\windows\system32> Export-M365DSCConfiguration Updating dependency {MicrosoftTeams} to version {4.0.0}...PackageManagement\Install-Package : Package 'MicrosoftTeams' failed to be installed because: End of Central Directory record could not be found. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
Could you please assist why is not working the teams module? The rest of modules are ok.
I am trying to use it in a WS 2019 Datacenter (1809).
This is the powershell version:
_PS C:\windows\system32> $PSVersionTable
Name Value
PSVersion 5.1.17763.2867
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.2867
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1_
And the repository: S C:\windows\system32> Get-PSRepository
_Name InstallationPolicy SourceLocation
PSGallery Trusted https://www.powershellgallery.com/api/v2_