Note: Not all commands work on all systems (ie Xp Vista)
To get to Control Panel directly:
Start->Run-> Control
Accessibility access.cpl
Add/Remove Programs appwiz.cpl
Console console.cpl
Date and Time timedate.cpl
Display desk.cpl
Fax fax.cpl
Hardware Wizard hdwwiz.cpl
Infrared Port irprops.cpl
International and Regional intl.cpl
Internet Settings inetcpl.cpl
Joystick joy.cpl
Licensing liccpa.cpl
Mouse and Keyboard main.cpl
Mail mlcfg32.cpl
Sound & Multimedia mmsys.cpl
Modem & Phone modem.cpl
Network and connectivity ncpa.cpl
Network and Dial-up Connectivity netcpl.cpl
Netware Client nwc.cpl
ODBC odbccp32.cpl
PC Card devapps.cpl
Ports ports.cpl
Power Management powercfg.cpl
Scanner & Camera sticpl.cpl
Server Management srvmgr.cpl
Speech Properties sapi.cpl
System sysdm.cpl
Telephony telephon.cpl
TweakUI tweakui.cpl
User Manager nusrmgr.cpl
WSP Client wspcpl32.cpl
Using "Control"
You may also change to a specific tab in a Control Panel Applet
As an example:
This will open System Restore tab in System Properties
control mmsys.cpl,,4
This will open the Advanced tab in System Properties
control sysdm.cpl,,3
This will just open System Properties:
control sysdm.cpl
Using Shell options
Where these files live in registry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\]
and then search for rundll32.exe in the run command
This is quite good at helping finding exact un-install strings for instance
command: rundll32.exe apwiz.cpl,NewLinkHere %1
result: Displays the Create New Shortcut dialog. Completing the filename in the dialog creates a shortcut at the location specified by %1
command: rundll32.exe rnaui.dll,RnaDial {name of connection to establish}
result: displays the Connect To dialog for the passed connection. If connected, displays the connection status dialog.
command: rundll32.exe rnaui.dll,RnaWizard
result: displays the Dial Up Networking Connection Wizard
MORE:
;Launch a specific Connectiod
;Win 95/98
Run("rundll32.exe"," rnaui.dll,RnaDial {Connectiod}")
*OR*
;Win NT/2000/XP
Run("rasdial.exe","Connectiod")
command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2
result: displays the Appearance tab selected
command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3
result: displays the Settings tab selected
comments: Note: Your video adapter may install other property pages into DESK.CPL dynamically when selected with its own icon (i.e an ATI or Matrox control panel icon).
Additionally, it also may invoke its own control panel applet mimicking the Windows display options.
result: passing the full file drive, path and name as a parameter will cause the dialog to display the line "Click the program you want to use to open the file '{filename}'".
command: rundll32.exe desk.cpl,InstallScreenSaver c:\windows\system32\sspipes.scr
result: Installs the new screen saver and runs the display/screen saver preview property page
compmgmt.msc Computer management
devmgmt.msc Device manager
diskmgmt.msc Disk management
dfrg.msc Disk defrag
eventvwr.msc Event viewer
eventvwr.exe \\computername View the Event Log at a remote computer
fsmgmt.msc Shared folders
gpedit.msc Group policies
lusrmgr.msc Local users and groups
perfmon.msc Performance monitor
rsop.msc Resultant set of policies
secpol.msc Local security settings
services.msc Various Services
Enviromentals:
%ALLUSERSPROFILE% C:\Documents and Settings\All Users
%APPDATA% C:\Documents and Settings\username\Application Data
%CLIENTNAME% Console
%CommonProgramFiles% C:\Program Files\Common Files
%COMPUTERNAME% computername
%ComSpec% C:\WINDOWS\system32\cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% \Documents and Settings\username
%ProgramFiles% C:\Program Files
%SESSIONNAME% Console
%SystemDrive% C:
%SystemRoot% C:\WINDOWS
%TEMP% C:\DOCUME~1\username\LOCALS~1\Temp
%TMP% C:\DOCUME~1\username\LOCALS~1\Temp
%USERDOMAIN% Domain Name
%USERNAME% username
%USERPROFILE% C:\Documents and Settings\username
%windir% C:\WINDOWS
Miscellaneous:
Create an IPCONFIG text file on your Desktop
Start --> Run--> cmd /c ipconfig /all >Desktop\ipconfig.txt < ok>
This works to find install date of Windows
Start-->Run-->CMD-->enter
"systeminfo | find /i "install date" -->enter