Windows 10: "The environment is incorrect." error when trying to run an executable

Discus and support "The environment is incorrect." error when trying to run an executable in Windows 10 Support to solve the problem; I have a desktop computer that was upgraded from Windows 7 to Windows 10 Pro. When I try to run CMD as Administrator, I receive "The environment is... Discussion in 'Windows 10 Support' started by rmk9785e, Nov 2, 2016.

  1. rmk9785e Win User

    "The environment is incorrect." error when trying to run an executable


    I have a desktop computer that was upgraded from Windows 7 to Windows 10 Pro. When I try to run CMD as Administrator, I receive "The environment is incorrect." error message. I get the same error if I try to run other Windows applications (in Windows\System32).
    Update: It looks like I have bigger problems. I am in the Administrators group but cannot run any application requiring elevated privileges. When I try to run the CMD (Admin) using Power Users menu, I receive "This file does not have a program associate with it ..." (image attached). I can't run SFC or DISM to repair my installation either because it tells me I need to be an Administrator. Should my query be moved to Installation sub-forum?
    Thanks.

    "The environment is incorrect." error when trying to run an executable [​IMG]


    :)
     
    rmk9785e, Nov 2, 2016
    #1

  2. Command prompt Administrator issue under Win 10

    I cannot run anything as an administrator. I keep getting "The environment is incorrect" error no mattter how I try to do it or which program I try to run as administrator.
     
    RobertSwinson, Nov 2, 2016
    #2
  3. Lumia " The Future is Here "

    This is a support forum, not a complaints department.

    I suggest you directly submit your complaints about hardware to Nokia and software to Microsoft.



    Also it often helps to read reviews when switching platforms to make sure it suits your needs. From what you've said the Lumia 820 clearly doesn't suit you.
     
    psychomania---01, Nov 2, 2016
    #3
  4. dalchina New Member

    "The environment is incorrect." error when trying to run an executable

    Hi, if you don't have disk images previously created which you could use to restore your PC to a previously working state (we strongly and repeatedly recommend the use of disk imaging to protect your PC, your data and your sanity) e.g. Macrium reflect (free) + its boot medium + external storage - or an appropriate system restore point, then I would suggest you might try an in-place upgrade repair install.

    Precede it with this in case sthg has happened to your file system:

    (As you can't use admin mode you would need to run chkdsk offline - e.g. from a command prompt outside windows)
    chkdsk x: /F
    - where x is the appropriate drive letter (not necessarily C)
    Make sure the result is clear or fixed- else do not proceed.
    Post back the result

    An In-place upgrade repair install will fix many things, but not those where the settings are not changed by the procedure.

    For this you need an installation medium with the same base build as you have installed, and x64 if you have a 64 bits OS, else x86 (32 bits).

    Recommendation:
    Before you perform the following major repair procedure, do create a disk image (see below).

    Repair Install Windows 10 with an In-place Upgrade - Windows 10 Forums
    - this includes a link from which you can obtain Windows 10 iso file (" download a Windows 10 ISO"), or create a bootable medium.

    I would recommend creating the bootable medium, as this can be used
    - for any future in-place upgrade repair install
    - to boot from and use its recovery options should Windows become unbootable.
    - to clean install Windows

    This will refresh Windows, after the manner of a Windows installation.
    - all/most associations will be unchanged
    - all your programs will be left installed
    - no personal data should be affected
    - you will lose any custom fonts
    - you will lose any customised system icons
    - you may need to re-establish your Wi-Fi connection
    - you will need to redo Windows updates subsequent to the build you have used for the repair install
    - Windows.old will be created
    - system restore will be turned off- you should turn it on again and I recommend you manually schedule a daily restore point.
    - you will need to redo any language downloads including the display language if you changed that)
    - inactive title bar colouring (if used) will be reset to default
    - if Qttabbar is installed, you need to re-enable it in explorer (Options, check Qttabbar)
    This is one of the better features of Win10: as each major build comes out, that's your updated reference build, and as updates are mostly cumulative, there will be few to do.


    Please consider using disk imaging regularly. It's a brilliant way to
    - preserve your system (and your sanity)
    - back up your data
    - restore your system to a previously working state in a relatively short time

    Recommended: Macrium Reflect (free/commercial) + boot disk/device + large enough external storage medium.
     
    dalchina, Nov 3, 2016
    #4
Thema:

"The environment is incorrect." error when trying to run an executable

Loading...
  1. "The environment is incorrect." error when trying to run an executable - Similar Threads - environment incorrect error

  2. Error "Server execution failed" when trying to run bash command in Windows 10 (Version...

    in Windows 10 Software and Apps
    Error "Server execution failed" when trying to run bash command in Windows 10 (Version...: As the title says, when I try to run the "bash" command, I get an error saying, "Server execution failed". I got this problem after I ran the "sudo apt-get update" and "sudo apt-get upgrade -y" commands during my last successful run of the WSL and then exiting out of it...
  3. DISM error(syntax incorrect) when trying to mount WIM files..

    in Windows 10 Performance & Maintenance
    DISM error(syntax incorrect) when trying to mount WIM files..: I get this error every time when i try mounting files using DISM, Code: The filename, directory name or Volume label syntax is incorrect.[/quote] earlier there was a problem regarding wimmount.sys driver not found whose path was changed due to Macrium Reflect Free, i...
  4. Error when trying to run update

    in Windows 10 Installation and Upgrade
    Error when trying to run update: I have Windows 10 pro ... Keep getting can not connect to update service. I am connected to interet and ran troubleshooting .... same result https://answers.microsoft.com/en-us/windows/forum/all/error-when-trying-to-run-update/fe646a9c-3f5b-4218-9d97-aca8059b99b1
  5. Error 0xc000007b when executing an .exe file

    in Windows 10 Software and Apps
    Error 0xc000007b when executing an .exe file: I am trying to run an .exe file but it comes up with that error. When I first got it, it wanted me to install MSVCP140D.dll, vcruntime140d.dll, and ucrtbased.dll, so I downloaded them off dll-files and put them in system32 and syswow64, also I installed Windows SDK. Now it is...
  6. Function of an executable detected when running Kaspersky

    in AntiVirus, Firewalls and System Security
    Function of an executable detected when running Kaspersky: What is the function of consent.exe? I thought I spotted it during a Kaspersky scan on my laptop. Thanks. https://answers.microsoft.com/en-us/protect/forum/all/function-of-an-executable-detected-when-running/c065d09e-7868-457b-83e4-e0e17d367965
  7. error when execute troubleshooting on printer

    in Windows 10 Drivers and Hardware
    error when execute troubleshooting on printer: [ATTACH] I cannot access the printer at location "\\entares\***" provided by my school. I run troubleshooting several times but it always this unexpected error. I connected the correct WLAN to use the printer and my friends can access the printer properly. So there must be...
  8. Java Runtime Environment has an error when installing.

    in Windows 10 Drivers and Hardware
    Java Runtime Environment has an error when installing.: (I tried to get in touch with support on the official Java site, however, I am not paying for it or have access to a credit card so I can't send a support ticket.) I downloaded the newest version of the Java Runtime Environment installer for windows (I'm using Windows 10...
  9. Nothing happens when I try to execute a vbs program

    in Windows 10 Software and Apps
    Nothing happens when I try to execute a vbs program: Hi, I had a program in visual basic script which I used under Win 8.1 (from which upgraded) to set a daily restore point. I've discovered that nothing happens when I double click it. I understand vbscript is implemented in Win 10 and the dll is present. Any ideas?...
  10. Windows 10 launches extra thread when running an executable

    in Windows 10 Software and Apps
    Windows 10 launches extra thread when running an executable: Hi there. I observed that when creating an executable with Visual Studio, Windows 10 will launch one (sometimes even two) extra thread. This happens even for the simplest program: int main() { return 0; } If you break on return 0, Visual Studio will show two threads:...

Users found this page by searching for:

  1. 0x-2147024886 the environment is incorrect