PowerShell 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

我正在尝试导入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 '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并在本地安装,如前所述。 但它显然不再可用(“所有者未列出此软件包。这可能意味着该模块已弃用或不应再使用。”) 请注意,我可以访问单个文件 和

所以我对一些问题很感兴趣。 主要是:

  • 如何安装OpenShutils?
  • 其他更详细的问题:

  • 当我尝试从gallery安装软件包时,问题在于签名。 这是否意味着该软件包实际可用,我应该找到解决签名问题的方法? 或者包可能不在那里?
  • 如何解决签名问题?
  • 在哪里可以找到nuget软件包?
  • 拥有
    psd1
    psm1
    等同于拥有nuget?

  • 相关的:

    快速回答 简言之,OpenShutils已被Microsoft弃用(正如您所指出的),不再需要。不建议您尝试安装此软件

    如果您向我们解释您需要OpenShutils的哪些功能,我们可以帮助您解决问题

    • 最有可能的是你能在窗户上找到你想要的东西
    此外,这个GitHub注释引用了大多数关于弃用的公开问题

    手动安装 这是不推荐的,但我解释它是为了让您更好地理解定制模块。如果您的PowerShell版本中没有安装模块,也可以使用此选项

    我在哪里可以找到nuget软件包

    您实际上已经链接了它()。如果你点击“手动下载”,你可以手动下载

    psd1和psm1是否等同于nuget

    psd1是您使用该模块所需的全部。您需要手动安装它

  • 键入
    $env:PSModulePath
    以确定PowerShell在系统上查找模块的位置。建议在系统范围内使用C:\Windows\system32\WindowsPowerShell\v1.0\Modules\位置
  • 在C:\Windows\system32\WindowsPowerShell\v1.0\Modules中创建OpenShutils目录\

  • 将目录和文件夹从
    opensshutils.1.0.0.1.nupkg
    复制到此位置。您可以放弃特定于NuGet的项(包、OpenSSHUtils.nuspec、\u rels、包、[Content\u Types].xml)

  • 使用Get Module-ListAvailable验证是否列出了OpenShutils模块

  • 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\