As with the Virus spreading the cmd prompt will be disabled take a look how to solve this problem
Solution 1:By editing the the registry
By editing the registry we can solve this problem.Registry editing is not easy job so Back up your registry before you edit the registry
- Open Registry editor by typing regedit in Run box and navigate to HKEY_CURRNET_USER \Software\Policies\Microsoft\Windows\System
- And in the right pane double click “DisableCMD” and set its Dword Value to 0
Solution 2: By using Windows Group Policy Editor
By using the Group policy editor we can solve this problem.
- Open the Group policy editor by typing gpedit.msc in run box .
- Navigate to User Configuration\System in the right pane double click “Prevent access to command prompt” and set it to either Not Configured or Disabled.