PowerShell OpenShutils
我正在尝试导入Win 10,PS 5.1下的模块OpenShutils 最新版本(无论编号如何)显然不可用PowerShell OpenShutils,powershell,openssh,opensshutils,Powershell,Openssh,Opensshutils,我正在尝试导入Win 10,PS 5.1下的模块OpenShutils 最新版本(无论编号如何)显然不可用 > Install-Module -Force OpenSSHUtils -Scope CurrentUser PackageManagement\Install-Package : No se encontró ninguna coincidencia para el criterio de búsqueda especificado y el nombre de paquete
> Install-Module -Force OpenSSHUtils -Scope CurrentUser
PackageManagement\Install-Package : No se encontró ninguna coincidencia para el criterio de búsqueda especificado y el nombre de paquete 'OpenSSHUtils'
...
> Find-Module -Name 'OpenSSHUtils' -Verbose
VERBOSE: Detalles del repositorio: Nombre = 'PSGallery', Ubicación = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'.
VERBOSE: Detalles del repositorio: Nombre = 'PSGallery', Ubicación = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'.
VERBOSE: Uso del proveedor 'PowerShellGet' para buscar paquetes.
VERBOSE: No se especificó el parámetro -Repository. PowerShellGet usará todos los repositorios registrados.
VERBOSE: Obteniendo el objeto de proveedor para el proveedor de PackageManagement 'NuGet'.
VERBOSE: La ubicación especificada es 'https://www.powershellgallery.com/api/v2' y el proveedor de PackageManagement es 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='OpenSSHUtils'' for ''.
VERBOSE: Total package yield:'0' for the specified package 'OpenSSHUtils'.
PackageManagement\Find-Package : No se encontró ninguna coincidencia para el criterio de búsqueda especificado y el nombre de paquete 'OpenSSHUtils'. Prueba
Get-PSRepository para ver todos los orígenes de paquete registrados disponibles.
...
所以我尝试了1.0.0.1版
> Install-Module -Name OpenSSHUtils -RequiredVersion 1.0.0.1 -Scope CurrentUser
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet.
Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y
PackageManagement\Install-Package : El módulo "OpenSSHUtils" no se puede instalar ni actualizar porque la firma Authenticode del archivo "OpenSSHUtils.psd1" no es
válida.
...
当面临签名问题时,我尝试下载nuget并在本地安装,如前所述。
但它显然不再可用(“所有者未列出此软件包。这可能意味着该模块已弃用或不应再使用。”)
请注意,我可以访问单个文件
和
所以我对一些问题很感兴趣。
主要是:
psd1
和psm1
等同于拥有nuget?相关的: 快速回答 简言之,OpenShutils已被Microsoft弃用(正如您所指出的),不再需要。不建议您尝试安装此软件 如果您向我们解释您需要OpenShutils的哪些功能,我们可以帮助您解决问题
- 最有可能的是你能在窗户上找到你想要的东西
$env:PSModulePath
以确定PowerShell在系统上查找模块的位置。建议在系统范围内使用C:\Windows\system32\WindowsPowerShell\v1.0\Modules\位置opensshutils.1.0.0.1.nupkg
复制到此位置。您可以放弃特定于NuGet的项(包、OpenSSHUtils.nuspec、\u rels、包、[Content\u Types].xml)
C:\Users\user\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;c:\Program Files (x
86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\;C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules;C:\Program Files\Microsoft Monitoring Agent\
Agent\PowerShell\