89 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
45
views
error reported when executing a wix custom action that runs a DISM command
I like to run a DISM command in wix custom action without calling a PowerShell script or creating a extra dll. How to resolve the error reported, thanks.
Here is the custom action I created for ...
2
votes
1
answer
136
views
Is it safe to use multithreading with DISM APIs to remove multiple items from an image simultaneously?
I didn't find anything on the documentation if its safe to perform multithreaded calls to DismRemovePackage, DismRemoveCapability, DismDisableFeature, i mean, attempt to remove multiple "things&...
1
vote
1
answer
125
views
How to use WIMCreateFile winapi?
I'm unable to get the WIMCreateFile API working:
#include <windows.h>
#include <wimgapi.h>
#pragma comment(lib, "wimgapi.lib")
class CCoInitialize
{
public:
CCoInitialize(...
1
vote
0
answers
65
views
Build a hierarchy of Windows features for Windows 10 and 11 using PowerShell
NOTE: This question is specifically about Windows 10 and 11, not Windows Server.
To get a list of Windows features on a given Windows 10 or 11 machine I know I have to use Get-WindowsOptionalFeature -...
0
votes
1
answer
299
views
MSMQ Removed including payloads in a VM without internet and cannot reinstall even with a mounted image
WS2019 VM without internet access, by error introduced in PowerShell removed not only the feature but its payload from server
I really don't know what else to try, any help will be very much ...
-1
votes
1
answer
73
views
Error when trying to store a file name into a variable (cmd)
Basically I wanna find a .wim file and want to know in which volume it is and what the name is.
This is my code:
@for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do @if exist %%a:\*.wim ...
0
votes
1
answer
371
views
CMD - create a BAT file to choose actions
I want to initially check for DISM health, then based on result, I want to select 1 (to run DISM restore & sfc) or 2 (run only sfc).
I cannot get this to work. Any guidance would be appreciated.
...
1
vote
1
answer
2k
views
Powershell DISM and SFC Script with Transcript
Write-Host "DISM and SFC" -ForegroundColor Cyan
Start-Transcript C:\DISM_SFC.txt
Start-Process -FilePath "dism.exe" -ArgumentList '/online /cleanup-image /analyzecomponentstore' -...
0
votes
1
answer
2k
views
MSIX install fails - C1570108 Msg:[Policy check failed]
We have an MSIX installer that we use for installing applications that we have developed. We have a customer that is trying to roll out the applications across their computers.
When they run the MSIX ...
1
vote
2
answers
1k
views
DISM.exe works but Get-WindowsOptionalFeature (powershell) fails
When using DISM.exe to get Windows optional features using command dism /Online /Get-Features, the program exits within 1 second and outputs the right results. But when using the command Get-...
0
votes
0
answers
227
views
How do I update AppxPackage in C# DISM API?
I want to update AppxPackage with appxmanifest.xml with C# DISM API.
This is how I do it in powershell :
Dism /Online /Add-AppxPackage -DisableDevelopmentMode -Register "C\Program Files\...
-2
votes
1
answer
507
views
How can I disable IE on windows Server 2008 SP2?
I want to disable EOL IE on a windows server 2008 SP2 (non R2), i run the below command :
"dism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64"
When running the ...
0
votes
1
answer
442
views
Intel(R) Visual Fortran run-time error on elevated permissions for DISM
I have written a simple Fortran code as follows:
!call system ('dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart')
call execute_command_line ('dism.exe /online /...
0
votes
1
answer
386
views
Enabling Windows Features through Python won't let DISM have elevated access even after letting Python get elevated access through functions
I'm trying to enable Windows Features through Python through functions. Here's the scripts that I've used:
UAC.py:
def gainadminaccess():
import os
import sys
import win32com.shell.shell ...
0
votes
1
answer
1k
views
How to capture windows to a set of split Windows image (.swm) files by using DISM?
Reference to MSDN:
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-image-management-command-line-options-s14?view=windows-11
I can capture my windows volume to a wim file ...