PS C:\\WINDOWS\\system32> $PSVersionTable.PSVersion Major Minor Build Revision \-----…
- User
PS C:\WINDOWS\system32> $PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
5 1 18362 1474
PS C:\WINDOWS\system32> Install-Module -Name Az -AllowClobber -Scope AllUsers
PS C:\WINDOWS\system32> Get-Installed-Module -Name Az -AllVersions | Select-Object -Property Name, Version
Get-Installed-Module : El término 'Get-Installed-Module' no se reconoce como nombre de un cmdlet, función, archivo
de script o programa ejecutable. Compruebe si escribió correctamente el nombre o, si incluyó una ruta de acceso,
compruebe que dicha ruta es correcta e inténtelo de nuevo.
En línea: 1 Carácter: 1
+ Get-Installed-Module -Name Az -AllVersions | Select-Object -Property ...
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Installed-Module:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\WINDOWS\system32>
- Assistant
The error message you're encountering indicates that PowerShell does not recognize the
Get-Installed-Modulecommand. The correct cmdlet to use isGet-InstalledModulewithout the hyphen between "Installed" and "Module." Here’s how you can check which versions of the Az module are installed:Get-InstalledModule -Name Az -AllVersions | Select-Object -Property Name, VersionIf you still encounter issues, make sure that the PowerShellGet module is correctly installed and updated because it's responsible for handling PowerShell modules. You can update PowerShellGet by executing:
Install-Module -Name PowerShellGet -Force -AllowClobberAfter updating, try the
Get-InstalledModulecommand again. Let me know if you encounter further issues! - User
En español
- Assistant
El mensaje de error que estás viendo indica que PowerShell no reconoce el comando
Get-Installed-Module. El cmdlet correcto que deberías usar esGet-InstalledModulesin el guion entre "Installed" y "Module". Aquí tienes cómo comprobar qué versiones del módulo Az están instaladas:Get-InstalledModule -Name Az -AllVersions | Select-Object -Property Name, VersionSi sigues teniendo problemas, asegúrate de que el módulo PowerShellGet esté correctamente instalado y actualizado, ya que es el responsable de manejar los módulos en PowerShell. Puedes actualizar PowerShellGet ejecutando:
Install-Module -Name PowerShellGet -Force -AllowClobberDespués de actualizar, intenta de nuevo con el comando
Get-InstalledModule. ¡Déjame saber si encuentras más problemas!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.