Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setx command not recognized on Windows10

I am installing software on a new laptop with (unfortunately) Windows 10 and the setx command is not recognized:

'setx' is not recognized as an internal or external command

I have Googled this, but can't find anything related to setx and Windows-10.

Do I need to do something specific to enable this command on Windows-10?

like image 790
Plaul Avatar asked Oct 18 '22 19:10

Plaul


1 Answers

The answer was given by svasa. It is strange but it worked. The strange thing is that it always was defined in my path, but as "%SystemRoot%\system32". Capitalizing system32 solved the problem. But this was an all new laptop, so I assume this wrong setting came from Microsoft?

like image 82
Plaul Avatar answered Oct 21 '22 22:10

Plaul