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-WebServerRole
%Windir%\system32\Dism /online /Enable-Feature /NoRestart /FeatureName:IIS-HttpRedirect

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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
How long does it take?  For me, 15 to 20 minutes seems to do it (a bit shorter for Check Health and a bit longer for Restore Health). Powershell is not going to speed this up as DISM is doing its checking from the program. If you are within the limits above, that is what it takes.

DISM is a heavy duty repair program and takes time.
eelouAuthor Commented:
Will determining if already enabled, and if already enabled don't try to enable again, speed things up?
JohnBusiness Consultant (Owner)Commented:
DISM is a stand alone program. It will take the same amount of time to run a second or third time. It is like System File Checker only it does more and takes long. If you can run the whole thing in a half hour or less, that is normal.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JohnBusiness Consultant (Owner)Commented:
@eelou  - Thanks and I was happy to help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.