Prev | Current Page 776 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

Notice that this command calls on Notepad with an undocumented /p
command line switch to perform the printing. The %1 after the command line switch is the name of
the file. Consequently, if you want to print a text file at the command line using Notepad, you simply
type Notepad /p filename and press Enter.
Figure 12.6
The file association
provides clues as to
how to use graphical
utilities at the
command line.
Managing Power Settings with the PowerCfg Utility
Some people associate the power configuration settings with how long their monitor stays on or
how their UPS reacts to a power failure. However, power configuration encompasses a lot more
ground that these simple configuration tasks. Even though you can change any power configuration
using the graphical interface, the settings appear in disparate locations. Using the PowerCfg
328 CHAPTER 12 MANAGING OTHER HARDWARE
utility to manage the power configuration puts everything in one place. Of course, given the enormous
job this utility has, it also has a complex command line. This utility uses the following syntax:
POWERCFG /LIST
POWERCFG /QUERY [GUID [SubGUID]] [/NUMERICAL]
POWERCFG /CHANGE GUID settings [/NUMERICAL]
POWERCFG /CHANGENAME GUID name [scheme_description]
POWERCFG /DUPLICATESCHEME GUID DESTINATION_GUID
POWERCFG /DELETE GUID [/NUMERICAL]
POWERCFG /DELETESETTING SUB_GUID SETTING_GUID
POWERCFG /SETACTIVE GUID [/NUMERICAL]
POWERCFG /GETACTIVESCHEME
POWERCFG /SETACVALUEINDEX SCHEME_GUID SUB_GUID SETTING_GUID
SettingIndex
POWERCFG /SETDCVALUEINDEX SCHEME_GUID SUB_GUID SETTING_GUID
SettingIndex
POWERCFG /HIBERNATE {ON|OFF}
POWERCFG /AVAILABLESLEEPSTATES
POWERCFG /DEVICEQUERY queryflags
POWERCFG /DEVICEENABLEWAKE devicename
POWERCFG /DEVICEDISABLEWAKE devicename
POWERCFG /EXPORT GUID [/FILE filename] [/NUMERICAL]
POWERCFG /IMPORT GUID [/FILE filename] [/NUMERICAL]
POWERCFG /LASTWAKE
POWERCFG /ALIASES
POWERCFG /SETSECURITYDESCRIPTOR {GUID | ACTION} SDDL
POWERCFG /GETSECURITYDESCRIPTOR {GUID | ACTION}
The following list describes each of the command line arguments.


Pages:
764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788
drukarki fiskalne kraków willa karmazyn międzyzdroje www.books61.hobbitstory.com terapia magnetyczna Informacje o hostingu