This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com.

Windows XP and DOS - Open a System Management Console

SUMMARY: Open computer management consoles from a Windows XP/DOS batch file.

Writing a Windows XP/DOS batch file that needs to open up a management console for the viewing or changing of system information? Use the mmc command, followed by the path of a .msc management console file you wish to run. The following are a few examples of consoles you can run:

You may need to be logged in as an Administrator to access these features.


mmc %systemroot%\system32\devmgmt.msc

Opens the device manager.

mmc %systemroot%\system32\diskmgmt.msc

Opens the disk management tool. Use this to view partition tables.

mmc %systemroot%\system32\dfrg.msc

This starts the GUI-based disk defragment tool from a batch file. Note that you can also open a DOS-based defrag tool from batch files.

mmc %systemroot%\system32\gpedit.msc

Opens the Group Policy editor.

mmc %systemroot%\system32\perfmon.msc

Opens the System Performance Monitor and Performance Logs and Alerts.

mmc %systemroot%\system32\services.msc

Opens the Services configuration. View, start, stop, pause, or restart services.


 


Press the "print" button on your browser or select "File" - "Print" to print this tip. Then, return to Windows XP and DOS - Open a System Management Console
 
Standard disclaimer applies - read http://malektips.com/disclaim.html.