Control Windows presentation settings using the command line

  
        

On Windows 7, Microsoft introduced a program called Windows Mobility Center, where you can centrally control the main settings of your notebook, such as power schemes, screen brightness, and more. In Windows 8, this program is preserved, but the hotkey that calls it out is no longer Win+X, because now Win+X will call out the shortcut menu at the hotspot in the lower left corner of the screen. Now to open the mobile center, you need to press Win+X and continue to click on the selection "Mobile Center (B)".
After opening, we can see the familiar mobile center interface. One feature here is actually very useful, but it may be little known because I didn't find out how many of my friends are using it. It is called "demo setting". Www.2cto.com We can open the demo settings icon, you can set it: You can find out from here that the demo settings exist to facilitate business people to open the demo scene mode with one click. You can think of the demo mode as a special scene mode of the computer, just like the different scene modes on the phone correspond to the system schemes such as ringtones in different occasions. By turning on the demo settings, Windows can automatically turn off the screen saver for you, set the system volume to a predetermined value, temporarily change the desktop background, and also mask various system notifications and bubble messages that will appear during the block. When you have finished the demo, disconnect the computer from the projector and turn off the demo settings, all temporary settings will be restored and you will return to the familiar desktop environment and return to the familiar personalization settings.

Since the Windows demo setup is so useful, you might want to try it before you do the next demo.
In fact, in some companies, there may be some large-scale conferences or demonstrations, for example, regular project demonstrations for research institutions, or some large conferences will use a computer to play PPT+ program demonstrations. In these scenarios, everyone will worry about whether Windows will pop up a prompt, or pop up an update request, or pop up something else that might interrupt the meeting. Then the IT department might use the Windows demo settings when preparing these demo public notebooks. This is a real user demand. For some large enterprises, the IT department may want to use automated scripts to meet these customer needs, because the demonstration of using the demo with a public notebook may not know how to control these settings. Then, after IT deploys the system, it may be necessary to automatically implement the required settings through scripts or programs. Ok, now there is a question, how to automate the opening and closing of some buttons in the mobile center like this? The demo setup in this example is a good example. In fact, the demo setup is implemented by a separate program. The file name of the program executable is "PresentationSettings.exe", but when you call it from the command line, God will not display it. Without the help file, only a configuration dialog for the demo settings will pop up. There is no explanation for consulting Microsoft's documentation. Is there really no trick to control its opening and closing? I am not too reconciled because, if not, why can a button in the mobile center directly switch between its enabled and disabled states? Through the task manager to observe the command line it called, I found that when I clicked the "Enable" button, he called PresentationSettings.exe, followed by a parameter /start. When the demo settings were closed, the parameters were followed/Stop. So, we can set the command line parameters and descriptions in this way. The implementation of the demo setup PresentationSettings.exe starts to demonstrate the command line arguments /start Stop the demo command line arguments /stop Open the UI configuration dialog without parameters Running


Knowing these two key parameters, IT can control the opening and closing of the demo settings through script automation without user intervention. Speaking of this, the point I can vomit is that Windows has developed to the present day, and even this practical function can not be controlled by the command line and script, or the official has not broken the command line parameter usage help, or burst The control parameters are very limited, and the controllable content is not as good as the UI. Features such as demo settings, since they have been implemented in a modular small program, should provide automated control or a programmable, scriptable approach.

Copyright © Windows knowledge All Rights Reserved