Intel(R) Visual Fortran run-time error on elevated permissions for DISM

337 views Asked by At

I have written a simple Fortran code as follows:

!call system ('dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart')
call execute_command_line ('dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart')
end

When I run it using Intel(R) Visual Fortran compiler with Visual Studio, I am getting following error message:

Error: 740

Elevated permissions are required to run DISM.
Use an elevated command prompt to complete these tasks.

Any suggestion please to overcome this.

Thank you very much in advance for your time and help in this matter,

Bakbergen

1

There are 1 answers

0
Viktor On

I have this trouble when run PowerShell with user roots. Try to run PowrShell as Administer. In my case it was helped me