Click here to Skip to main content
15,909,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to invoke command prompt at login screen in windows XP or 7
Posted

1 solution

For security reasons, Windows OS will never provide anything other than the plain old login prompt (Ctrl+Altr+Del or UserName/Password) other than maybe the shutdown/restart buttons. However,

(1) If you want to run the command-prompt as soon as the user logs in, you can copy a shortcut to cmd.exe in the Starup folder of Start Menu (If running XP) or use the msconfig utility to set cmd.exe to run at startup.

(2) If you want to invoke a windows service as soon as the computer starts, you may set its Startup as Automatic from the services console, and also make sure that it runs from the LocalSystem login account.
 
Share this answer
 
Comments
Dave Kreskowiak 14-Apr-13 10:33am    
That's not entirely true. It is possible to launch a CMD prompt on the login screen before the user even logs in, but I'm not saying how. This is because the CMD prompt ends up running under the System account and can(will) be used for malicious purposes.
Prahlad Yeri 14-Apr-13 11:11am    
@Dave Kreskowiak - What you are saying could have been true some years back, maybe at the time of Windows-98/ME or even XP. But with the advent of Win-7, security is being taken seriously at Microsoft.

Just imagine - an OS that comes with a prebuilt firewall that allows you to define custom rules based on IP-addresses, ports, programs, services, etc. how can it leave such a big security HOLE to grant an unauthorized user with such a welcome command prompt to fire commands ? The very idea is laughable.
Bernhard Hiller 15-Apr-13 3:00am    
Oh Prahlad, your ignorance is so amusing. We already did so for hacking a Windows 8 computer - we had forgotten the password.
Prahlad Yeri 15-Apr-13 13:17pm    
If you are really that enlightened, then why don't you describe the method (if it really does exist somewhere apart from your wild imagination). And make sure you are talking abt Win-8 standard version not a beta or consumer preview.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900