Share via

Need a Solution for this Error

Anonymous
2024-05-19T11:11:23+00:00

Recently I was adding variable path unfortunately I deleted one of the path or variable I don't remember .

Getting this error on every startup .

Here is the Error:-


C:\Program Files\WindowsApps\Microsoft Windows.Cross Device_1.24041.35.0_x...\Cross DeviceService.exe

The system could not find the environment option that was entered.


I tried to find crossdevice settings to change it to default but I failed to do so . Please Give me a solution over this.

* Moved from Community Center

Windows for home | Other | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2024-05-20T09:31:17+00:00

Hi Dexture.

Thanks for your post in Microsoft Community.

In your description, you accidentally deleted an environment variable (you didn't remember to change it) and now every time you start it, you get "C:\Program Files\WindowsApps\Microsoft Windows.Cross Device_1.24041.35.0_x... \Cross DeviceService.exe

The system cannot find the environment option entered." The prompt.

Please enter safe mode by the method in the link below, in safe mode, check your environment variables and other contents including windir, PSModulePath, TEMP, etc. and save them, then enter the system again in normal mode to check if the environment variables are the same as the configuration items mentioned above. If they are different, use the environment variable paths in safe mode.

If your environment variable path in Safe Mode is the same as in Normal Mode, or if this prompt still exists after you start your computer after making the changes, then if you have set up a restore point, please go through the following steps to try to perform a restore at the restore point you had before you changed the environment variables.

1 Press the Windows logo key + I on your keyboard to open Settings. If this does not work, select the Start button and then Settings.

2 Select Update & Security > Recovery.

3 Under Advanced Startup, select Restart Now.

4 After the computer reboots to the "Select Options" screen, select "Troubleshooting" > "Advanced Options" > "System Restore". Then restore through the corresponding restore point.

If you are not able to restore via a restore point, please try to repair the system by overriding the installation using the steps in the following link.

Disclaimer: At this point, we have exhausted all troubleshooting and I recommend that we try to perform a clean install to get your computer back into a Please ensure that you backup any important data, including Documents, Pictures, Videos, and more. After that, you can find instructions on how to install Windows 10/11 in the following article by MVP Andre: How to: Perform a Custom Installation of Windows 11 and Windows 10 or - Microsoft Community

When you change the environment variable again, to avoid errors that are difficult to fix, we recommend that you copy and paste it outside to make a backup before editing it.

I hope the above helps, if you have any other questions please continue to contact me, thank you for your support and understanding.

Best regards,

Zev - MSFT | Microsoft Community Support Specialist

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-05-24T07:49:15+00:00

    Hi Dexture,

    Thank you for your reply. I'm glad to learn that you are back to normal use after performing the system override installation fix and I'm honored to be able to assist you. If you have any other questions please continue to contact me and I will continue to assist you. Thank you for your understanding and support.

    Best regards,

    Zev - MSFT | Microsoft Community Support Specialist

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-05-22T15:31:55+00:00

    @Zev thankyou very much for your reply. Nothing worked for me so in the end i restored my windows by following the 4th Step that you have mentioned. Now it's solved I really thank you for your efforts and your time .

    Was this answer helpful?

    0 comments No comments