eelou
asked on
How to speed up DISM on Windows
I am executing a cmd file from a Installshield Installscript custom action (this is a Basic MSi installer, not a Suite installer). The cmd file sets 23 windows features, and takes 15\18 minutes. How to speed things up? Here is an example of two of the lines...
%Windir%\system32\Dism /online /Enable-Feature /NoRestart /FeatureName:IIS-WebServer Role
%Windir%\system32\Dism /online /Enable-Feature /NoRestart /FeatureName:IIS-HttpRedir ect
Is powershell faster (and are the feature names the same in powershell)?
In either case, cmd\dism or Powershell, will it speed things up if I determine if the feature is already enabled, and thus do not execute the command to enable that feature? If so, how to do this, please give exact example. Thanks.
%Windir%\system32\Dism /online /Enable-Feature /NoRestart /FeatureName:IIS-WebServer
%Windir%\system32\Dism /online /Enable-Feature /NoRestart /FeatureName:IIS-HttpRedir
Is powershell faster (and are the feature names the same in powershell)?
In either case, cmd\dism or Powershell, will it speed things up if I determine if the feature is already enabled, and thus do not execute the command to enable that feature? If so, how to do this, please give exact example. Thanks.
ASKER
Will determining if already enabled, and if already enabled don't try to enable again, speed things up?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@eelou - Thanks and I was happy to help.
DISM is a heavy duty repair program and takes time.