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.
cgeorgeisaacAsked:
Who is Participating?
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 Specialist/DeveloperCommented:
Type this and post results
SET PATH

Open in new window

Can you run this?
c:\Windows\System32\ipconfig.exe

Open in new window

I suspect your PATH variable is incorrect
0
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.
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
I put all my money on a scrambled/deleted PATH, as mentioned by Shaun.
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

cgeorgeisaacAuthor Commented:
Please see attached:SQL-cancel.JPG
0
QlemoBatchelor, 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
;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;

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.
0

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.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.