Running batch file via Script on Win7 (x64)
How are people handling batch files? The reason I ask is that I've been running into a lot of compatibility "issues" when trying to run my batch files via scripting, it'll fail. Yet if I manually run this SAME batch file from the KACE folder, it runs correctly.
This time, it probably has something to do with that I need to launch the 64-bit version of DISM not the 32-bit version.
Community Chosen Answer
I know this was answered a while back, but i have just found a simpler fix, for anyone else having this particular issue.
Instead of calling DISM or C:\Windows\System32\dism.exe from your batch file, use the path C:\Windows\Sysnative\dism.exe
This will call DISM from the 64 bit "System32" folder, rather than the Wow64 filesystem redirection for 32 bit processes.
All explained pretty well here: http://www.nynaeve.net/?p=133