At Windows control server, and not only the server, the working win-machine too, you involuntarily notice that your hand gets tired of moving the mouse and is somehow too lazy to reach for it. You will have to carry the mouse around at least if you use Windows snap-ins, but you can reduce the time it takes to launch them without any problems! Press the keys +R and voila, you can launch any executable file (exe, bat, cmd, com, msc) or control panel item (cpl) and even shortcut (lnk) by simply entering its name and, if required, the path to it. Below will be listed the main equipment necessary for a system administrator, sorted by frequency of use (4 me).

Equipment name Snap-in name
Active Directory AD Users and Computers dsa.msc
Terminal Services Manager tsadmin.msc
Computer Management compmgmt.msc
GPO Management Console gpmc.msc
Object editor local politics(Group Policy Object Editor) gpedit.msc
Resulting policy (the result of applying policies) rsop.msc
Local Security Settings secpol.msc
Setting up a terminal server (TS Configuration) tscc.msc
Routing and Remote Access rrasmgmt.msc
Services
Shared Folders fsmgmt.msc
Device Manager devmgmt.msc
Local users and groups (Local users and Groups) lusrmgr.msc
Local Security Settings secpol.msc
Disk Management diskmgmt.msc
Active Directory Domains and Trusts domain.msc
Active Directory Sites and Trusts dssite.msc
Domain Security Settings dompol.msc
DC Security Settings dсpol.msc
Distributed file system DFS (Distributed File System) dfsgui.msc

Run as administrator

The RunAs command will be very useful, allowing you to run a program as another user from the console. The syntax is simple: RUNAS [ ] /smartcard More details are described in the program help ("runas /?" in cmd). For example, you need to start/stop a service from a user session, of course, if the user does not have rights to these actions. Alternatively, you can launch cmd and run the command runas /user:domain\admin "mmc services.msc", or you can run cmd itself as an administrator and run it from there necessary programs, inheriting rights.

Similar to the equipment from command line You can launch Control Panel items and various system settings windows. For example: network settings, users, or, what is very relevant at the moment, the date and time settings window.

Control panel item name Team
Properties of the system sysdm.cpl
Installation and removal of programms appwiz.cpl
Accounts users nusrmgr.cpl
date and time timedate.cpl
Screen properties desk.cpl
Windows Firewall firewall.cpl
Hardware Installation Wizard hdwwiz.cpl
Internet Properties inetcpl.cpl
Special abilities access.cpl
Mouse properties control Main.cpl
Keyboard properties control Main.cpl,@1
Language and Regional Features intl.cpl
Gaming devices joy.cpl
Properties: Sounds and Audio Devices mmsys.cpl
Network Setup Wizard netsetup.cpl
Power management powercfg.cpl
Security Center wscui.cpl
Automatic update wuaucpl.cpl
Network connections ncpa.cpl

You can run most of the above control panel elements from the user's environment, as an administrator, but not all. The "Network Connections" panel and others that use explorer to display their functionality do not launch as another user. In one of the following notes we will look at setting up the system from the command line Windows strings, from there you can do anything!

Windows lets you do a lot of different things, with all sorts of tools and utilities, most of which can be easily accessed in . A similar, but more efficient and faster way is to use the “Run” function, which is available in all operating systems Windows.

Some users believe that this window is intended for geeks or nerds, but in fact this is not the case. It can be used by intermediate and beginners, but only if they know what they are doing and what commands to enter. In short, the tool allows you to become more productive while working on your computer. Therefore, if you are interested in this, or need to know about it, then here is a list of commands for the dialog box Execute.

We've brought you a list of 30 execute commands so you can bypass the endless clicks, thereby speeding up the process of launching utilities and tools in your daily routine. using Windows. It should be noted that in Windows 8 the Run window does not disappear. To open this window, simply press the “Win ​​+ R” key combination on your keyboard and it will appear.

Note: again, to bring up the Run dialog box use Win(Start) + R on the keyboard, then, in the input field, enter any command to access the corresponding tool and press Enter.

List of commands for the Run window

1. "\"

Most users usually open the C drive via Windows Explorer or the My Computer desktop icon. There's nothing wrong with that, there's just more quick way To do this, use the Run dialog box by entering a backslash (slash).

2. "."

The single dot command opens the current user's home folder.

3. ".."

The command of two dots opens the “Users” folder, which is located directly in the C drive.

4.ncpa.cpl

This command opens a folder network connections.

5.appwiz.cpl

Use this command if you want to quickly access Programs and components, where you can uninstall any installed program on your computer.

6.Calc

If you want to open the built-in Windows calculator, the fastest way to do this is to type the word calc in the Run dialog box.

7.CMD

Everyone Windows users sometimes you have to deal with the command line. Typing cmd will quickly open a command prompt without administrator privileges.

If Command Prompt is too old for you, try PowerShell instead. To do this, simply type (without a space) in the input line of the Run dialog box, and it will open without administrator privileges.

9.perfmon.msc

Enter this command into the Run dialog box and the utility will launch, which allows you to monitor Windows performance, the effectiveness of programs and gives access to many other useful data.

10. powercfg.cpl

Windows allows you to adjust your computer's power consumption by reducing screen brightness, computer power, etc. Using this command launches the window.

11.devmgmt.msc

This command opens Windows Device Manager, which allows you to manage all the computer hardware. You can also use the command for this hdwwiz.cpl.

12.Regedit

The regedit command opens a window. This is a hierarchical database that stores parameters for almost everything on your computer: program settings, drivers, user passwords, Windows settings And all the rest.

13. msconfig

Use this command to open Windows system configurations, where you can configure boot and startup settings. services, services, etc.

14.sysdm.cpl

Opens system properties

15. netplwiz

This command is useful for computers with multiple . Administrators can open any account and customize it however they want. And other users can open and edit only their personal user settings.

16.firewall.cpl

Want to quickly disable or enable Windows Firewall? - just enter firewal.cpl in the execute field, and the firewall settings window will appear right in front of you.

17. wuapp

If you want to check or adjust the settings Windows updates, then use this command.

18.services.msc

Type services.msc and press Enter, a window will open Services, where you can easily configure the settings for each service individually.

19. msinfo32

If you want to quickly get information about the system, then use the msinfo32 command and you will have access to all the information about the system, including hardware and software.

20.sdclt

33. utilman

Above we showed you how to open on-screen keyboard on Windows. But besides this there are other useful utilities Windows, such as Magnifier, Narrator, etc. You can access them using this command.

34. write

Last but not least is the write command, which opens the built-in Windows editor WordPad(Notebook).

The Windows Run tool, including its commands, is one of the best tools you can find in Windows. In addition to the commands listed above, there are hundreds of other commands that provide access to various operating system tools and utilities.

Sometimes you may need to take an executable file and register it as a Windows service. There are several ways to do this, I usually use two of them.

You can use the SC program (Sc.exe) to create and service from the command line. SC is a command line utility that makes calls to all management application programming interface (API) functions Windows services. With its help, you can perform any actions with services - view the status, manage (start, stop, etc.), change parameters, and also create new services.

When you create a service using SC, you do not have to manually create registry entries and then restart the computer to allow Service Manager to update the database. SC also allows you to specify a name remote computer, which makes it possible to manage services both on a local and on a remote computer.

To create a new service, run the Sc create command. It creates a service entry in the registry and in the Service Manager database. Sc create has the following syntax:

sc create<параметр1= > <параметр2= >

ServiceName - Specifies the name that will be assigned to the service key in the registry. Note that this name is different from the service's display name (the name that appears in the Services snap-in);
binPath - Specifies the path to the service executable file.

For example, let's create the MyService service, specify the display name My New Service, set the service type and set it to auto-start:

Sc create MyService binPath=C:\MyService\MyService.exe DisplayName=″My New Service″ type=own start=auto

Then open the “Services” snap-in and see the result.

You can change the parameters of an already created service using the Sc config command. For example, I didn't like the display name of the service and I want to change it:

Sc config MyService DisplayName=″My Service″

Well, you can completely remove the service like this:

Sc delete MyService

PowerShell

PowerShell can do almost everything 🙂, including managing Windows services. You can create a new service using the New-Service cmdlet. Let's create the same service as in the previous example, just add a Description to it:

New-Service -Name MyService -BinaryPathName C:\MyService\MyService.exe`
-DisplayName ″My New Service″ -Description ″Very Important Service !!!″

You can change service parameters using the Set-Service cmdlet:

Set-Service -Name MyService -Description ″Not Very Important Service″ -StartupType Manual

In principle, PowerShell has approximately the same functionality as Sc.exe, except that it allows you to add a description. But to remove services in PS simple way no, you will have to use this construction:

(Get-WmiObject win32_service -Filter ″name=′MyService′″).delete()

That's why I personally prefer to use Sc.exe.

Good afternoon, dear readers and blog subscribers, today we will talk to you about how to open msc windows snap-in via the command line, why you might need it and how it will help in the daily practice of a system administrator. Trust the knowledge gained in this article, in the future they will be able to save you a huge amount of time and nerve cells, not to mention the opportunity to show off your nerdy knowledge in front of your colleagues, just if you actively use linux systems and you know the basic commands in the console, then you will be interested in these too. Always, if possible, try to study beyond GUI interfaces, and also alternative methods settings, since when setting Windows Server, they are increasingly choosing the core mode with a minimalist interface.

What is msc snap-in

And so msc in Windows stands for Microsoft System Console; even simpler, these are windows, or as they are also called snap-ins, for managing certain functions of the operating system. Previously, I already introduced you to the method of creating a convenient mmc snap-in, in which we added everything we needed system administrator for daily administration.

And you’ll probably ask, what does the command line and all that have to do with it, but here’s what it has to do with it. Let's imagine a situation where in your organization there is Active domain Directory, ordinary users do not have rights local administrator on your workstations, everything goes and works like clockwork, a situation happens that, for example, you need to change some settings for the user, and you need to do it now, so look for these settings in group policy no time. What to do, logging in is not an option, since you need to make changes in another user profile, and how to open, for example, the Computer Management or System snap-in.

This is where knowing the names of msc windows snap-ins and the command line will help us. All you need to do is open the command line as an administrator and enter the desired name of the msc snap-in. Below is the list. As you can see, by opening the command line cmd.exe, for example, I entered the value that opens the control panel with system administrator rights.

MSC Management Console equipment elements

  • appwiz.cpl- Installation and removal of programms
  • certmgr.msc- Certificates
  • ciadv.msc- Indexing service
  • cliconfg- Program network client SQL
  • clipbrd- Clipboard
  • compmgmt.msc- Computer management
  • dcomcnfg- DCOM component management console
  • ddeshare- DDE Shares (does not work on Win7)
  • desk.cpl- Screen properties
  • devmgmt.msc- Device Manager
  • dfrg.msc- Disk defragmentation
  • diskmgmt.msc- Disk management
  • drwtsn32- Dr.Watson
  • dxdiag- DirectX Diagnostic Service
  • eudcedit- Personal symbol editor
  • eventvwr.msc- Event Viewer
  • firewall.cpl- Windows firewall settings
  • gpedit.msc- Group Policy
  • fsmgmt.msc - Shared folders
  • fsquirt- Bluetooth File Transfer Wizard
  • chkdsk- Disk check (usually launched with parameters drive_letter: /f /x /r)
  • control printers- Printers and faxes - does not always start
  • control admintools- Computer administration - does not always start
  • control scheduled tasks- Scheduled tasks (scheduler)
  • control userpasswords2 - Account Management
  • compmgmt.msc- Computer management ( compmgmt.msc /computer=pc - remote control PC computer)
  • lusrmgr.msc- Local users and groups
  • mmc- creating your own equipment
  • mrt.exe- Malware removal
  • msconfig- System setup (autostart, services)
  • mstsc- Remote Desktop Connection
  • ncpa.cpl- Network connections

  • ntmsmgr.msc- Removable memory
  • mmsys.cpl- Sound
  • ntmsoprq.msc- Removable RAM operator requests (for XP)
  • odbccp32.cpl- Data Source Administrator
  • perfmon.msc- Productivity
  • regedit- Registry editor
  • rsop.msc- Resulting policy
  • secpol.msc- Local Security Settings (Local Security Policy)
  • services.msc- Services
  • sfc /scannow- System file recovery
  • sigverif- File signature verification
  • sndvol- volume control
  • sysdm.cpl- Properties of the system
  • syskey - Account database protection
  • taskmgr- Task Manager
  • utilman Utility Manager
  • verifier Driver Verification Manager
  • wmimgmt.msc- WMI management infrastructure

List of msc snap-ins for Windows Server

Let's look at how to launch Windows Administrative Snap-ins from the command line cmd.exe

  • domain.msc - Active Directory domains and trust
  • dsa.msc - Active Directory Users and Computers
  • tsadmin.msc - Terminal Services Manager
  • gpmc.msc - GPO Management Console (Group Policy Management Console)
  • gpedit.msc - Group Policy Object Editor
  • tscc.msc - Setting up a terminal server (TS Configuration)
  • rrasmgmt.msc - Routing and Remote Access
  • dssite.msc - Active Directory Sites and Trusts
  • dompol.msc - Domain Security Settings
  • dсpol.msc - Domain controller security policy (DC Security Settings)
  • dfsgui.msc - DFS (Distributed File System)
  • dnsmgmt.msc - DNS
  • iscsicpl.exe - ISCSI Initiator
  • odbcad32.exe - ODBC 32-bit data source administrator
  • odbcad64.exe - ODBC 64-bit data source administrator
  • powershell.exe -noexit -command import-module ActiveDirectory - Powershell Active Directory module
  • dfrgui.exe - Disk optimization
  • taskschd.msc /s - Task Scheduler
  • dsac.exe - Active Directory Administrative Center
  • printmanagement.msc - Print management
  • vmw.exe - Volume Activation Tool
  • eventvwr.msc /s - Event Viewer
  • adsiedit.msc - ADSIedit Editor
  • wbadmin.msc - Archiving system Windows data Server
  • ServerManager.exe - Server Manager

As you can see, msc windows snap-ins are very useful system administration tools. I even find it faster to open some snap-ins than to click on a bunch of windows with the mouse, especially if the server or computer is slow or there is no mouse. And in any case, it is always useful to know such things. Most of everything we use is stored in c:\Windows\System32. If you go to this folder you can find a lot of interesting things.

nbtstat -a pc- username of the user working on the remote PC machine
net localgroup group user /add- Add user to the group group
net localgroupgroup user/delete- Remove user from group
net send pc ""text"" - send a message to a PC user
net sessions- a list of users
net session /delete- closes all network sessions
net use l: \\computer name\folder\- to plug network drive l: folder on the remote computer
net user name /active:no- block the user
net user name /active:yes- unblock the user
net user name /domain- information about the domain user
net user Name /add- add user
net user Name /delete- delete user
netstat -a- list of all connections to the computer
reg add- Add a parameter to the registry
reg compare- Compare parts of the registry.
reg copy- Copies from one partition to another
reg delete- Removes the specified parameter or section
reg export- Export part of the registry
reg import- Accordingly, import part of the registry
reg load- Loads the selected part of the registry
reg query- Displays the values ​​of a given registry branch
reg restore- Restores the selected part of the registry from a file
reg save- Saves the selected part of the registry
reg unload- Unloads the selected part of the registry
shutdown- shutting down a computer, you can turn off another one remotely.
SystemInfo /s machine- will show a lot of useful information about the remote machine

List of commands for Windows Control Panel items

  • control /name Microsoft.AutoPlay - Autoplay
  • control /name Microsoft.OfflineFiles - Offline files
  • control /name Microsoft.AdministrativeTools - Administration
  • control /name Microsoft.BackupAndRestore - Backup and restore
  • control /name Microsoft.WindowsFirewall - Windows Firewall Windows
  • control /name Microsoft.Recovery - Recovery
  • control /name Microsoft.DesktopGadgets - Desktop Gadgets
  • control /name Microsoft.DateAndTime - Date and Time
  • control /name Microsoft.DeviceManager - Device Manager
  • control /name Microsoft.CredentialManager - Credential Manager
  • control /name Microsoft.HomeGroup - Home group
  • Windowscontrol /name Microsoft.WindowsDefender - Windows Defender
  • control /name Microsoft.Sound - Sound
  • control /name Microsoft.NotificationAreaIcons - Notification area icons
  • control /name Microsoft.GameControllers - Gaming devices
  • Keyboardcontrol /name Microsoft.Keyboard - Keyboard
  • control /name Microsoft.Mouse - Mouse
  • control /name Microsoft.TaskbarAndStartMenu - Taskbar and Start menu
  • control - Control panel
  • control /name Microsoft.Fonts - “Fonts” folder
  • control /name Microsoft.IndexingOptions - Indexing options
  • control /name Microsoft.FolderOptions - Folder options
  • control /name Microsoft.PenAndTouch - Pen and touch devices
  • control /name Microsoft.Personalization - Personalization
  • control /name Microsoft.RemoteAppAndDesktopConnections - Remote desktop connections
  • control /name Microsoft.GetPrograms - Getting programs
  • control /name Microsoft.GettingStarted - Getting Started
  • control /name Microsoft.ProgramsAndFeatures - Programs and Features
  • сontrol /name Microsoft.DefaultPrograms - Default programs
  • control /name Microsoft.SpeechRecognition - Speech recognition
  • control /name Microsoft.ParentalControls - Parental Controls
  • control /name Microsoft.InternetOptions - Internet Options
  • control /name Microsoft.TextToSpeech - Speech Properties
  • control /name Microsoft.System - System
  • control /name Microsoft.ScannersAndCameras - Scanners and cameras
  • control /name Microsoft.PerformanceInformationAndTools - Performance counters and tools
  • control /name Microsoft.PhoneAndModem - Phone and modem
  • control /name Microsoft.ColorManagement - Color management
  • control /name Microsoft.Troubleshooting - Troubleshooting
  • control /name Microsoft.DevicesAndPrinters - Devices and Printers
  • control /name Microsoft.UserAccounts - User accounts
  • control /name Microsoft.MobilityCenter - Mobility Center
  • control /name Microsoft.WindowsUpdate - Update Center
  • control /name Microsoft.ActionCenter - Action Center
  • control /name Microsoft.SyncCenter - Synchronization Center
  • control /name Microsoft.EaseOfAccessCenter - Ease of Access Center
  • control /name Microsoft.NetworkAndSharingCenter - Network and Sharing Center
  • control /name Microsoft.BitLockerDriveEncryption - Drive encryption
  • control /name Microsoft.Display - Screen
  • control /name Microsoft.PowerOptions - Power Options
  • control /name Microsoft.RegionAndLanguage - Language and regional standards

If you have anything to add to the list of msc canonical names, please write in the comments and I will add them.

Windows services are programs that start automatically when the operating system starts. Services are used to ensure the normal operation of software and hardware. In most cases, services are responsible for functions that require constant monitoring and control. For example, update software, protection against network and virus attacks, etc.

In some situations, services can create problems and then they need to be disabled. In this article we will talk about how to disable a service in Windows 7 or Windows 8.

In order to disable a service in Windows 7 or Windows 8, you need to run the service management snap-in. This can be done in several ways. For example:

  • Open the Start menu or start screen(if you are using Windows 8) and search for services.msc. After that, launch the found application;
  • Open and go to the “System and Security – Administration – Services” section.
  • Open the Start menu or Start screen and search for “Computer management.” After that, launch the Computer Management application and go to the Services section.
  • Call context menu(right click) on the “My Computer” icon and select “Manage”. After this, the “Computer Management” window will open in front of you. In this window, go to the "Services" section
  • Open “ ” (key combination CTRL+ALT+DEL) and go to the “Services” tab. After that, click on the “Services” button (or “Open Services” in Windows 8), which will be located at the bottom of the window.

The service management snap-in looks something like the screenshot below.

To disable a service in Windows 7 or Windows 8, you need to find it in the list of services and open its properties. For example, let's demonstrate this using an example.

Call the context menu by clicking right click mice for the service we need. In the window that opens, select the “Properties” menu item.

After this, a window with the properties of the selected service will open in front of you. In order to disable a service in Windows 7 or Windows 8, you need to change the service startup type from “Automatic” to “Disabled”, and also click on the “Stop” button.

In order to save the changes made, close the service properties window by clicking on the “OK” button. These simple steps are enough to stop any service in operating rooms. Windows systems 7 and Windows 8.

How to disable services using the command line

In addition to the method of disabling services described above, you can. To disable the service using the command line, use the following commands.

  • net stop service_name – stops the specified service. This command performs the same function as the “Stop” button in the service properties.
  • net start service_name – the reverse command to the previous one. The net start command starts a user-specified service. This command performs the same function as the “Run” button in the service properties. To restart the service, use two commands in a row, net stop and net start.
  • – a command that changes the service startup type to “Disabled”. Instead of disabled, this command can accept other parameters. Among which:

    • auto (automatically);
    • demand (on demand, manually);
    • delayed-auto (delayed start);

Thus, in order to disable a service in Windows 7 or Windows 8 using the command line, you need to enter two commands:

  • net stop service_name
  • sc config service_name start= disabled

Where "service_name" is the short name of the service. You can find this short name in the service properties (service management snap-in).

In the screenshot (above) there is a place where a short name for the service is indicated, which can be used to net commands stop, net start and sc config.