Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why RunAs doesn't work with %windir%\system32\control.exe 1

Status
Not open for further replies.

diaglez

Technical User
Jun 20, 2006
18
ES
Hi, I have a problem while trying o execute the Control Panel form command line using RunAs:

runas /noprofile /user:%COMPUTERNAME%\administrador %windir%\system32\control.exe

Everething seems ok but the Control Panel window doesn`t open.

Looking in the process list I see that the process called control.exe is created but it's killed in less than a second

Any idea?

Thanks.

 
Is the Administrator Account Disabled? Is it a XP Home machine? You should be able to open the Control Panel via the RunAs command otherwise.

This works for me to open the Control Panel from a Command Prompt.

runas /user:localmachinename\Adminusernamexxxx control

Enter the password for localmachinename\Adminusernamexxxx:
Attempting to start control as user "localmachinename\Adminusernamexxxx" ...

And then the Control Panel opens.




How to Open Control Panel Folders from the Command Prompt

Replacing Missing Control Panel Icons
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top