Win+S -> ping google.com -> works like a charm. Win+S -> cmd -> right click -> run as an Administrator -> ping google.com -> works also
This PC - Properties - Advanced ( C:\Windows\system32\SystemPropertiesAdvanced.exe ) - Environment Variables edit/add if missing for both user and system: name=PATHEXT value=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC or via cmd for user: setx.exe PATHEXT ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC" via cmd as admin for system: setx.exe PATHEXT ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC" /M It's good practice anyway to type the .exe extension when using powershell since aliases could conflict with existing tools (example: sc) edit: forgot "or"
My PATHEXT already has all those variables. Using WIN+S closes the window immediately after running ping.exe, but DOES work (but no, it's not usable in that manner) Using ping.exe on PS w/Admin OR CMD STILL results in the same message. Running setx.exe PATHEXT ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC" /M results in the same message.
Nope, that command doesn't work either It's not a HUGE deal, since there are websites and freeware that will do it, it's just annoying.
It might be worth double checking that the path variable made it to the command prompt by running echo %PATH% and making sure that system32 is in there. Make sure all directory paths are correctly separated with semicolons as a typo can cause havoc. If all seems fine there maybe try some other program files that are in the path, e.g. if Java is installed and in the path then see if running java works. That'll help work out if the problem is with all paths or just system32.
>echo %path% C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Windows\System32\ipconfig.exe;C:\Windows\System32\ping.exe;C:\Users\XXXXXXX\AppData\Local\Microsoft\WindowsApps;
files have no place to be on the %path% Try setting user path (back) to: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\XXXXXXX\AppData\Local\Microsoft\WindowsApps; Try setting system path (back) to: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
Here is what I have Code: C:\Users\username\Desktop>echo %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PowerShell\7\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;
But did you try creating a fresh account? Because if it happens on a fresh account, your whole system is compromised and you should do a repair install asap, before windows itself starts failing updates and maintenance tasks and you lose data