Jump to content

command prompt not opening in windows 10


mjall

Recommended Posts

Hi there,

 

I don't know if this is another screw up from MS, but I can't seem to open the command prompt anymore in windows, does anyone face this issue, is this because of the last bugs from the windows update by any chance and the best question is how to get this fixed or restored. 

 

When I type command prompt, the window opens and closes quicly so I can't even type or access it?

 

appreciate any suggestions

thanks

 

 

Link to comment
Share on other sites


  • Replies 62
  • Views 3.6k
  • Created
  • Last Reply
55 minutes ago, mjall said:

When I type command prompt, the window opens and closes quicly so I can't even type or access it?

I have seen "viruses" do that in infected computers 😁

Link to comment
Share on other sites


@mjall

 

To open the command prompt :

 

Windows key plus R, then type in the following, including all the spaces: 

cmd /k ipconfig /all

the /k switch should keep the window open

 

Now , once the cmd is open, follow the steps mentioned below:

 

1. In a command prompt window, type echo %path%

This should display the PATH environment variable.

 

In particular, it should have the directories C:\Windows\system32 and C:\Windows in it. If it doesn't, this is your problem.

To fix it, do this:

1. Right-click Computer and select Properties.
2. Click the Advanced system settings link on the left.
3. Click the Environment variables button.
4. Find Path in the System variables list box and click the Edit button.
5. Add those two directories, separated by a semicolon and terminated by a semicolon, at the front of the path environment variable.
6. OK out of everything.

 

Once it’s fixed execute the following command:

 

sfc /scannow

 

The sfc /scannow command (System File Check) scans the integrity of all protected operating system files and replaces incorrect, corrupted, changed, or damaged versions with the correct versions where possible. When it cannot repair the damage, DISM should be run to fix as many errors as possible.

 

 

 

Link to comment
Share on other sites


22 hours ago, MrZeb said:

Hi,

 

Can you open Regedit?

yes I can

19 hours ago, The AchieVer said:

@mjall

 

To open the command prompt :

 

Windows key plus R, then type in the following, including all the spaces: 

cmd /k ipconfig /all

the /k switch should keep the window open

 

Now , once the cmd is open, follow the steps mentioned below:

 

1. In a command prompt window, type echo %path%

This should display the PATH environment variable.

 

In particular, it should have the directories C:\Windows\system32 and C:\Windows in it. If it doesn't, this is your problem.

To fix it, do this:

1. Right-click Computer and select Properties.
2. Click the Advanced system settings link on the left.
3. Click the Environment variables button.
4. Find Path in the System variables list box and click the Edit button.
5. Add those two directories, separated by a semicolon and terminated by a semicolon, at the front of the path environment variable.
6. OK out of everything.

 

Once it’s fixed execute the following command:

 

sfc /scannow

 

The sfc /scannow command (System File Check) scans the integrity of all protected operating system files and replaces incorrect, corrupted, changed, or damaged versions with the correct versions where possible. When it cannot repair the damage, DISM should be run to fix as many errors as possible.

 

 

 

I tried the cmd entry with the /k however It still did not keep the window open, it closed immediately

Link to comment
Share on other sites


@mjall

 

Try this to Update PATH System Environment Variable 


Type environ in Windows Start Search box 


Click Edit the system environment variables to open System Properties with Advanced 


Open Advanced Tab on System Properties and click Environment Variables 


Click PATH in Environment Variables and click on Edit 


Create New entry and add C:\Windows\SysWow64\, then click OK 

 

Reboot your PC

 

After , following the above method, if still you are not able to open cmd then follow this ;

 

System File Checker

 

Click Start, enter powershell.exe in the Searchbox, right-click on powershell.exe, and then click Run as administrator.

 

Type the following command and hit ENTER:

 

sfc / scannow

 

After the scan is finished, you will see one of these things:

 

Windows resource protection did not find any integrity violations 

 

or 

 

Windows resource protection found corrupt files and repaired successfully  

 

Or

 

Windows resource protection found corrupt files and could not fix some of them  

 

Post your result here and accordingly we can proceed.

 

Do let me know how it goes.

Link to comment
Share on other sites


12 minutes ago, The AchieVer said:

@mjall

 

Try this to Update PATH System Environment Variable 


Type environ in Windows Start Search box 


Click Edit the system environment variables to open System Properties with Advanced 


Open Advanced Tab on System Properties and click Environment Variables 


Click PATH in Environment Variables and click on Edit 


Create New entry and add C:\Windows\SysWow64\, then click OK 

 

Reboot your PC

 

Do let me know how it goes.

still did not work, I entered the value under user variables - should it be entered under the system variables instead?

22 hours ago, TrojanK said:

I have seen "viruses" do that in infected computers 😁

I thought it was due to a virus however windows defended nor hitmanpro identifies anything so far not unless something got damaged earlier as I was hit by some viruses but windows defender detected them and deleted them

Link to comment
Share on other sites


@mjall

 

Try run system file checker , as stated in my above post . 

Thereafter, I will guide you to deal with the virus issue.

 

Link to comment
Share on other sites


16 minutes ago, The AchieVer said:

@mjall

 

Try run system file checker , as stated in my above post . 

Thereafter, I will guide you to deal with the virus issue.

 

the scan finished and this was the results "Windows resource protection found corrupt files and repaired successfully" - should I restart the pc now and try after?

Link to comment
Share on other sites


@mjall

 

Yes , reboot your system and see if it works.

 

Link to comment
Share on other sites


Ok. We will work with the virus issue now.

 

First , download Rkill from the link mentioned below,

 

https://www.bleepingcomputer.com/download/rkill/

 

and  then download MBAM from this link:

 

http://www.malwarebytes.org/mbam.php

 

Install , free version of MBAM .

 

Now , first you run Rkill, it will terminate any malicious processes and when it finishes, immediately run MBAM.

 

1.Open Malwarebytes > Click on the Update Tab  across the top> get the latest updates.

2. On the Scanner tab, make sure thePerform full scan option is selected and then click on theScanbutton to start scanning your computer

3. MBAM will now start scanning your computer for malware. This process can take quite a while.

4. When the scan is finished a message box will appear

5. You should click on the OK button to close the message box and continue with the Malwareremoval process.

6. You will now be back at the main Scanner screen. At this point you should click on theShow Resultsbutton.

7. A screen displaying all the malware that the program found will be shown

8. You should now click on the Remove Selected button to remove all the listed malware. MBAM will now delete all of the files and registry keys and add them to the programs quarantine. When removing the files, MBAM may require a reboot in order to remove some of them. If it displays a message stating that it needs to reboot, please allow it to do so. Once your computer has rebooted, and you are logged in, please continue with the rest of the steps.

9. When MBAM has finished removing the malware, it will open the scan log and display it in Notepad. Review the log as desired, and then close the Notepad window.

10. You can now exit the MBAM program.

 

See if this helps.

 

 

 

 

 

Link to comment
Share on other sites


38 minutes ago, The AchieVer said:

Ok. We will work with the virus issue now.

 

First , download Rkill from the link mentioned below,

 

https://www.bleepingcomputer.com/download/rkill/

 

and  then download MBAM from this link:

 

http://www.malwarebytes.org/mbam.php

 

Install , free version of MBAM .

 

Now , first you run Rkill, it will terminate any malicious processes and when it finishes, immediately run MBAM.

 

1.Open Malwarebytes > Click on the Update Tab  across the top> get the latest updates.

2. On the Scanner tab, make sure thePerform full scan option is selected and then click on theScanbutton to start scanning your computer

3. MBAM will now start scanning your computer for malware. This process can take quite a while.

4. When the scan is finished a message box will appear

5. You should click on the OK button to close the message box and continue with the Malwareremoval process.

6. You will now be back at the main Scanner screen. At this point you should click on theShow Resultsbutton.

7. A screen displaying all the malware that the program found will be shown

8. You should now click on the Remove Selected button to remove all the listed malware. MBAM will now delete all of the files and registry keys and add them to the programs quarantine. When removing the files, MBAM may require a reboot in order to remove some of them. If it displays a message stating that it needs to reboot, please allow it to do so. Once your computer has rebooted, and you are logged in, please continue with the rest of the steps.

9. When MBAM has finished removing the malware, it will open the scan log and display it in Notepad. Review the log as desired, and then close the Notepad window.

10. You can now exit the MBAM program.

 

See if this helps.

 

 

 

 

 

mbm detected 32 adware and few trojans and quarantined them however the issue still persists, after the pc restarted there was a splash of 4 to 5 commands prompt screens which either is mbm doing something or its some wicked virus in hidden somewhere because cmd still does not open

Link to comment
Share on other sites


@mjall

 

Remove /delete the malware detected by MBAM  and run the following command in powershell as admin:

 

Dism.exe /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH

 

further , to remove adware , you can always use the ADWare cleaner , download link:

 

https://www.malwarebytes.com/adwcleaner/

 

 

Link to comment
Share on other sites


Just now, The AchieVer said:

@mjall

 

Remove /delete the malware detected by MBAM  and run the following command in powershell as admin:

 

Dism.exe /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH

 

do you know where does mbm stores the quarantine items it detected?

1 minute ago, The AchieVer said:

@mjall

 

Remove /delete the malware detected by MBAM  and run the following command in powershell as admin:

 

Dism.exe /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH

 

maybe I need the full version of the software to be able to delete or remove perhaps?

2 minutes ago, The AchieVer said:

@mjall

 

Remove /delete the malware detected by MBAM  and run the following command in powershell as admin:

 

Dism.exe /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH

 

im running the command you mentioned either ways

 

Link to comment
Share on other sites


6 minutes ago, The AchieVer said:

@mjall

 

Remove /delete the malware detected by MBAM  and run the following command in powershell as admin:

 

Dism.exe /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH

 

the operation completed successfully - what should I do now?

Link to comment
Share on other sites


@mjall

 

quarantine files are at :

 

C:\ProgramData\Malwarebytes\Malwarebytes Anti-Malware\Quarantine

 

or 

 

%ProgramData%\Malwarebytes\Malwarebytes Anti-Malware\Quarantine

 

anyways, you can delete these files from within MBAM also

 

Just now, mjall said:

the operation completed successfully - what should I do now?

 

run sfc /scannow again , and let me know the result

Link to comment
Share on other sites


2 minutes ago, The AchieVer said:

@mjall

 

quarantine files are at :

 

C:\ProgramData\Malwarebytes\Malwarebytes Anti-Malware\Quarantine

 

or 

 

%ProgramData%\Malwarebytes\Malwarebytes Anti-Malware\Quarantine

 

anyways, you can delete these files from within MBAM also

 

thanks I found the options within MBAM and deleted them, I will re-run the command in powershell now, lets see if it works

Link to comment
Share on other sites


51 minutes ago, The AchieVer said:

@mjall

 

quarantine files are at :

 

C:\ProgramData\Malwarebytes\Malwarebytes Anti-Malware\Quarantine

 

or 

 

%ProgramData%\Malwarebytes\Malwarebytes Anti-Malware\Quarantine

 

anyways, you can delete these files from within MBAM also

 

 

run sfc /scannow again , and let me know the result

W i n d o w s   R e s o u r c e   P r o t e c t i o n   d i d   n o t   f i n d   a n y   i n t e g r i t y   v i o l a t i o n s . 

 

but still cmd did not open

 

BTW - thanks for all your help and support on this matter, its interesting to learn new methods of tweaking windows and fixing it

Link to comment
Share on other sites


@mjall

 

What i presume is that your system is infected , hence the last resort to Do a Repair Install of Windows 10 with an In-place Upgrade 

 

If you need any assistance with that regards , do let me know

Link to comment
Share on other sites


1 minute ago, The AchieVer said:

@mjall

 

What i presume is that your system is infected , hence the last resort to Do a Repair Install of Windows 10 with an In-place Upgrade 

 

If you need any assistance with that regards , do let me know

thanks - do you mean perform an upgrade to the existing OS and not a fresh install?

Link to comment
Share on other sites


1 minute ago, mjall said:

thanks - do you mean perform an upgrade to the existing OS and not a fresh install?

 

 YES , All your settings and apps will be preserved with an in-place-upgrade

Link to comment
Share on other sites


1 minute ago, The AchieVer said:

 

 YES , All your settings and apps will be preserved with an in-place-upgrade

is that by installing it while im in windows and not through rebooting by CD?

Link to comment
Share on other sites


Just now, mjall said:

is that by installing it while im in windows and not through rebooting by CD?

 

You will need win 10 ISO for that.

Link to comment
Share on other sites


3 minutes ago, The AchieVer said:

 

You will need win 10 ISO for that.

I have downloaded the latest dec ISO

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...