For enabling Microsoft-Hyper-V and Microsoft-Hyper-V-Management in Windows 2008 R2 Server(64bit), I\'m calling dism.exe as a process. The command I\'ve used is
Because you're running in a 32-bit process, you're getting redirected to the 32-bit version in SysWoW64
Run %WINDIR%\SysNative\dism.exe to prevent redirection.
%WINDIR%\SysNative\dism.exe