"cmd.exe is not a valid Win32 application" for Post-Setup user tasks

randomuser267

New Member
I was trying to install some apps post-setup on Windows 7, and after the machine tasks complete, when Windows is "preparing" my desktop, I've heard the error sound being played. I tried to Ctrl+Alt+Del then open taskmgr to see what is happening, and I was met with the "cmd.exe is not a valid Win32 application" error. Strangely this only happens on my machine (they work completely fine on VMs!). Also I've installed that Windows copy on my G: drive, not my C: drive, maybe it's because of this?
 
NTLite prepares Post-Setup tasks by using the %WINDIR% environment variable, which should work if even C:\ isn't your system drive. Anyone who's using dual-boot or a non-standard setup needs to check if they're using %WINDIR% or %LOCALAPPDATA%, instead of fixed paths.
 
I've tried dualbooting 2 NTLite'd Windows on a VM, Windows 8.1 and 7. Both User Post-Setup tasks of these 2 have the install dir set to "%ProgramFiles%\dir". The first one works fine, but the second one still throws this error while installing. No problems with Machine tasks.
 
Maybe you can share the actual commands. Otherwise there's no way to guess what's happening.
 
Back
Top