Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1769

New Post: Feature request: $exeDism

$
0
0
Thank you for all the great work on this toolkit. It's proving to be an invaluable resource!

I've noticed that there are already pre-existing variables for wusa, schtasks, and msiexec ($exeWusa, etc). Would it be possible to also create a variable for dism.exe that automatically accounts for 32- or 64-bit processes? It's not hard to accomplish due to the fabulous existing variables $is64Bit and $is64BitProcess, but it would save a lot of copy/pasting when working with Windows components.

This is my implementation, which has worked great so far:
if ($is64Bit -and -not($is64BitProcess))
{
    $exeDism = "$envWinDir\SysNative\dism.exe"
} else {
    $exeDism = "$envWinDir\system32\dism.exe"
}
Thanks!

Viewing all articles
Browse latest Browse all 1769

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>