Using Runas to Add/Remove Programs/Hardware in Windows XP

Very useful if you run as a ‘restricted user’ (i.e. not a ‘power user’ or ‘administrator’):

Step 1: Get a CMD shell (‘DOS box’) as Administrator:

[cc lang=’dos’ line_numbers=’false’]runas /user:administrator cmd[/cc]You will be asked for the Administrator password.

Step 2:

Open the required control panel wizard:

For add/remove programs:

[cc lang=’dos’ line_numbers=’false’]appwiz.cpl[/cc]

For add/remove hardware:

[cc lang=’dos’ line_numbers=’false’]hdwwiz.cpl[/cc]

You will find a list of control panel items in %WINDIR%system32 (usually c:windowssystem32). Typically:

[cc lang=’dos’ line_numbers=’false’]04/08/2004  00:56            68,608 access.cpl
21/09/2005  03:25           299,008 ALSndMgr.Cpl
04/08/2004  00:56           549,888 appwiz.cpl
04/08/2004  00:56           110,592 bthprops.cpl
04/08/2004  00:56           135,168 desk.cpl
04/08/2004  00:56            80,384 firewall.cpl
04/08/2004  00:56           155,136 hdwwiz.cpl
04/08/2004  00:56           358,400 inetcpl.cpl
30/10/2006  03:33            26,112 infocardcpl.cpl
04/08/2004  00:56           129,536 intl.cpl
04/08/2004  00:56           380,416 irprops.cpl
09/06/2009  11:33            73,728 javacpl.cpl
04/08/2004  00:56            68,608 joy.cpl
23/08/2001  13:00           187,904 main.cpl
04/08/2004  00:56           618,496 mmsys.cpl
23/08/2001  13:00            35,840 ncpa.cpl
04/08/2004  00:56            25,600 netsetup.cpl
04/08/2004  00:56           257,024 nusrmgr.cpl
12/07/2006  06:19            69,632 nvcpl.cpl
12/07/2006  06:19            73,728 nvtuicpl.cpl
23/08/2001  13:00            36,864 nwc.cpl
04/08/2004  00:56            32,768 odbccp32.cpl
04/08/2004  00:56           114,688 powercfg.cpl
10/01/2006  06:58           266,240 RTSndMgr.Cpl
04/08/2004  00:56           298,496 sysdm.cpl
23/08/2001  13:00            28,160 telephon.cpl
04/08/2004  00:56            94,208 timedate.cpl
04/08/2004  00:56           148,480 wscui.cpl
04/08/2004  00:56           162,304 wuaucpl.cpl
29 File(s)      4,886,016 bytes[/cc]

Tagged with: , , ,
Posted in Command Line Tricks, Servers, Tech Blog

Leave a Reply

Your email address will not be published. Required fields are marked *

*