"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

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.



Print This Tip

Get E-Mail When New Tips are Online

Return to the Windows XP and DOS page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )