PowerShell / PowerShell/PowerShell-Docker

Windows Modules for Windows Nanoimage

未关闭
#822 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Issue-Enhancement
主要语言
Dockerfile
星标
449
派生
158
平均合并
3 天 10 小时
30 天内合并 PR
1

描述

Summary of the new feature / enhancement

I wanted to manage certificates in a Windows nano image using Powershell, e.g. Import-Certificate

Currently these Windows modules are not included.

My attempts to add them myself were not successful.
Using the PKI module as an example, I copied the files into the nano image and tried to load the module:

Import-Module: Could not load file or assembly 'Microsoft.CertificateServices.PKIClient.Cmdlets, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

Other import methods also produce a similar error:
Failed to load assembly: Exception calling “LoadFile” with “1” argument(s): “Could not load file or assembly ‘C:\tmp\Microsoft.CertificateServices.PKIClient.Cmdlets.dll’. The specified module could not be found.”

I think it might have to do with a lack of dependencies. PKI, for example has:

Referenced Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Referenced Assembly: Microsoft.VisualC, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Referenced Assembly: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Referenced Assembly: System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Referenced Assembly: System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Referenced Assembly: System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Referenced Assembly: System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

It would be great if these Windows modules were also available.

Proposed technical implementation details (optional)

No response

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定文件、测试或入口点。首先检查 Windows Nano 映像的构建方式,以及如何包含 PowerShell 模块及其依赖项;当请求的 Windows 模块可以在映像中导入和使用且不缺少程序集时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, powershell
领域
devops, infrastructure
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。