Unable to run commands in command prompt in Windows 2012 R2

I installed SQL on a Windows 2012 R2 and patched with latest Windows updates.
However I am unable to run any command from Command prompt e.g.IPconfig, ping  etc.
Not too sure how to fix it.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shaun VermaakTechnical SpecialistCommented:
Type this and post results

Open in new window

Can you run this?

Open in new window

I suspect your PATH variable is incorrect
JohnBusiness Consultant (Owner)Commented:
In addition to the above suggestion, run DISM.

Right click on cmd.exe and select Run as Administrator. Let us hope that works.  Then:

dism.exe /online /cleanup-image /restorehealth   You would want to restart the server after this.

If that cannot run, run msconfig.exe from the Start button. This is a GUI, not command. Select Safe Mode under Boot and restart in Safe Mode. Then run the above commands.
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
I put all my money on a scrambled/deleted PATH, as mentioned by Shaun.
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

cgeorgeisaacAuthor Commented:
Please see attached:SQL-cancel.JPG
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
PATH is missing all the default paths - which are usually appended automatically. Go into the System applet (e.g. by pressing Windows-Break), Advanced System Setup (or similar), then environment variables, look for PATH in the lower pane, edit, and add

Open in new window

at the end or beginning of it. After committing the change, you should be able to use tools again in a new command prompt.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cgeorgeisaacAuthor Commented:
Brilliant Qlemo - That Fixed it!  Bravo.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.