Share via


Invalid syntax error on startup

Question

Wednesday, January 25, 2017 11:06 AM

Hello,

Almost at every startup a file opens up, windows asks me to choose a program with which I'd like to open it, I choose 'notepad', and  that's what written in this file:

Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Type "SETX /?" for usage.
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Type "SETX /?" for usage.
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Type "SETX /?" for usage.

Can anyone please explain what is it about and if it's harmful?

Thanks, Vadim.

**
**

All replies (6)

Wednesday, January 25, 2017 6:14 PM

You could use AutoRuns to test what is getting started.
Seems to be a script with errors.

And when you are in a domain this might be a login script which tries to set an environment variable.


Thursday, June 1, 2017 3:17 PM

I'm facing the same error. Did you find the solution?


Saturday, September 1, 2018 12:42 AM | 1 vote

The file is located at C:\Users\ and you will say a file with your name mine was "Matthew" Delete it and restart.


Saturday, July 20, 2019 6:15 AM

I had experienced the same error. I Applied your solution with success. My file was name "Bureau", because I use Windows configured as French.

Thank you.


Tuesday, October 15, 2019 11:36 AM

Thanks. It solve my issue


Sunday, February 2, 2020 12:16 PM

Thanks @mattewosbeta , your proposed answer solve my issue. my file name is "jean" and its containts is same as the one that pop up at every startup of my windows.