问题标签 [dism]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
607 浏览

asp.net - iisnode on Windows 10 Pro - from Internal error 500.19 to Error code: 0x800F0954

I got a new PC at work with Windows 10 Pro and had to setup iisnode on it...

  • I started by installing nodeJS (v8.11.3)
  • got & installed iisnode-full-v0.2.21-x64
  • got and installed urlrewrite2
  • went to the iisnode installation folder to run setupsamples.bat file
  • upon going to http://localhost/node/ and clicking any of the URLs, I got an 'Internal server error 500.19'

I realized that I had missed a prerequisite:'IIS 7.x with IIS Management Tools and ASP.NET'

To enable this features, tried the UI option: Control Panel > Turn Windows features on or off > Internet Information Services > World Wide Web Services > Application Development Features

Reading different posts, I tried enabling apparently everything other than 'CGI'. upon selecting each feature, I got the error in the snapshot below... Tried the resolution here but to no avail... DISM Logs had:

  • DISM Package manager: CBS HRESULT=0x800f0954
  • tried different combinations of fulfilling the ASP.NET pre-requisite through UI and command prompt but to no avail.

    Errro code: 0x800F0954

0 投票
2 回答
414 浏览

batch-file - 批处理文件中对 DISM 的管道回答

我想在 Windows 10 中通过 DISM 安装 UWF 功能。这行得通!但是,我需要多次执行此操作,因此我在批处理文件中有 DISM 命令。当 DISM 命令成功时,它会询问我是否要重新启动。我如何提供(管道)答案?以下不起作用:

我怎样才能做到这一点,以便用 n(否)自动回答重新启动问题?

谢谢

0 投票
1 回答
79 浏览

node.js - 从 nodejs 监控 dism.exe

我需要帮助来监视 Windows 系统上 dism.exe 的进度条。dism.exe 是从我的 node.js 脚本中产生的:

终端上的标准输出:

C:\Users\Admin\Desktop>node test.js 标准输出:Tool zur Imageverwaltung f�r die Bereitstellung 版本:10.0.17763.1

标准输出:Bereitstellung des Abbilds wird aufgehoben

[= 2.0% ]

...

[============================99.0%==================== ===== ]

[===========================100.0%===================== =====]

标准输出:Der Vorgang wurde erfolgreich bedet。

子进程以代码 0 退出

C:\用户\管理员\桌面>

我不明白为什么进度条不写入标准输出/标准错误。显示/渲染进度条时不会触发“数据”事件

有人可以帮我在 cb/函数中将进度条作为字符串传递吗?

0 投票
2 回答
72 浏览

loops - 了解带有 in (%variable1%, %variable2%...) 的循环批处理

我有一些工具正在尝试在 MDT 服务器的后端批处理脚本。这些工具之一是 DISM/ImageX。我试图自动化的是一个检查文件夹的脚本,以便 DISM 可以提取单个 WIM 文件,然后我可以使用另一个实用程序来进行更新。

不进入 WSUS。也不是 SCCM。我知道可以使用它们来完成,但我希望将我的部署时间保持在每个给定操作系统的最新版本接近 15-20 分钟。

我有很多后端工具可以正常工作,但是我在压缩批处理文件的这一部分时遇到了问题,以便它使用 for 循环来检查目录,而不是一遍又一遍地重复相同的代码。

我从来没有真正接触过批处理脚本,但是嘿,它似乎几乎可以完成我能想到的所有技巧,而且我一直在寻找优化我的代码的方法。

也许有人可以看到我在这里尝试用我的批处理文件做什么,告诉我我做错了什么?

我已经写了很长的路,但我想用 =< 1 for 循环压缩这段代码。

寻找创建顶部设置变量中列出的目录,使用迭代 for 循环检查目录是否存在,如果不存在则创建它们。

每个变量都将正确的目标目录本地化到另一个全局批处理文件中,以便最终分发到其他 MDT 服务器,这是我现在正在处理的部分。

  • 编辑了 Squashman @ 5:34EST 1/1/19 指出的错误(谢谢老兄)
0 投票
1 回答
742 浏览

c# - Dism 在 C# 的 CMD Shell 中无法识别

我正在尝试为我正在安装的另一个应用程序启用 dotnet 3.5 依赖项。问题是我正在使用的 cmd shell 抛出此错误“'dism' 未被识别为内部或外部命令、可运行程序或批处理文件。” 但是如果我复制并粘贴要传递给 cmd shell 的字符串:

它工作正常。

这是我的 CMD 课程:

0 投票
1 回答
693 浏览

powershell - 有没有办法在运行 Dism 的 powershell 脚本中添加 windows 类型的进度条?

我正在尝试将 Windows 类型的进度条添加到运行 Dism 的 powershell 脚本中。我在使用 win32_service 时遇到了困难。有人知道该怎么做吗?

dism /Apply-Image /ImageFile:Z:\path\wim.wim /Index:1 /ApplyDir:C:\

0 投票
0 回答
246 浏览

c# - 使用 C# 跟踪 DISM 进度 - 在 Windows 10 中工作,但不在 WinPE 中

我正在使用 C# 启动 DISM 进程以捕获/应用图像并跟踪进度。

当我在 Windows 10 上运行代码时,进度正在正常更新,但是当我在 WinPE 环境中运行代码时,进度没有更新,但进程仍在正常运行。

这是触发方法启动 DISM 的代码。请注意它在 .NET Framework 4.0 上运行

这是我用来启动 DISM 的代码,参数根据需要而变化。

这是设置标签文本的代码

是什么导致了这个问题,我可以用什么来解决它或者创建一个解决方法?

0 投票
1 回答
1116 浏览

powershell - 使用 PowerShell 从 Windows 1607 更新到 1809

我想知道是否有任何相关文档解释我们如何使用 dism powershell 模块进行 Windows 更新。

我想从 windows 1607 版本更新到 windows 1809。或者除了手动安装 windows 1809 之外,还有其他方法可以使用 powershell 更新 windows。

我尝试使用 PSWindowsUpdate Powershell 模块,但未能使用此模块进行 Windows 功能更新。但是可以使用相同的方法进行 Windows 累积更新。

我对这个领域很陌生,但熟悉 Powershell。有人可以为我推荐正确的道路吗?

0 投票
1 回答
2266 浏览

raspberry-pi - 未能加载提供程序 SiloedPackageProvider.dll 和 metaDeployProvider.dll

尝试在装有 Windows 10 IOT Core 的 Windows 10 笔记本电脑中模拟 Raspberry Pi。

http://annabooks.com/Articles/Articles_IoT10Core/Windows-10-IoT-Core-VM-Version-1.2.pdf

我发现这篇文章非常有用,但使用了预先构建的图像“For MinnowBoard Turbot/MAX”。

我也收到这些错误和其他错误。

未能加载提供程序 SiloedPackageProvider.dll 和 metaDeployProvider.dll

CFfuMiscHelpersT ValidateNotOnTheSameDisk#904 失败,出现 0x80070001。

从 winpe 执行此命令时。

Dism.exe /Apply-Image /ImageFile:"d:\Flash.ffu" /ApplyDrive:.\PhysicalDrive0 /SkipPlatformCheck

未能加载提供程序 SiloedPackageProvider.dll 和 metaDeployProvider.dll

另外请告诉我一种从通过 HyperV 运行的 VM 复制日志的方法。

谢谢

0 投票
1 回答
164 浏览

.net-3.5 - NSIS dism 启用 NetFx3 错误 11 windows 2012

我想在 Windows 2012 的 nsis 安装程序中启用 .net3.5。我使用了下一个代码:

但它返回错误 11.在此处输入图像描述

我的 dism 日志文件:在此处输入图像描述

我在虚拟机上运行它,我只有一个用户 - 管理员。如果我直接在 cmd 中运行此命令 - 一切正常。