You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# PowerToys running with administrator elevated permissions
10
+
# PowerToys running with administrator permissions
11
11
12
12
If you're running any application as an administrator (also referred to as elevated permissions), PowerToys may not work correctly when the elevated applications are in focus or trying to interact with a PowerToys feature like FancyZones. This can be addressed by also running PowerToys as an administrator.
13
13
14
+
14
15
## Options
15
16
16
17
There are two options for PowerToys to support applications running as administrator (with elevated permissions):
17
18
18
-
-**[Recommended]**: PowerToys will display a prompt when an elevated process is detected. Open PowerToys Settings. Inside the General page, select <kbd>Restart as administrator</kbd>.
19
-
- Enable **Always run as administrator** in the PowerToys Settings.
20
-
21
-
## Run as administrator elevated processes explained
22
-
23
-
Windows applications run in _User mode_ by default. To run an application in _Administrative mode_ or as an _elevated process_ means that app will run with additional access to the operating system.
24
-
25
-
The simplest way to run an app or program in administrative mode is to right-click the program and select <kbd>Run as administrator</kbd>. If the current user is not an administrator, Windows will ask for the administrator username and password.
26
-
27
-
Most apps do not need to run with elevated permission. A common scenario, however, for requiring administrator permission would be to run certain PowerShell commands or edit the registry.
28
-
29
-
If you see this User Account Control prompt, the application is requesting administrator level elevated permission:
19
+
1.**Recommended**: PowerToys will display a prompt when an elevated process is detected. Open PowerToys Settings. Inside the General page, select <kbd>Restart as administrator</kbd>.
20
+
2. Enable **Always run as administrator** in the PowerToys Settings.
In the case of an elevated command line, typically the text "Administrator" will be included in the title bar.
34
-
35
-

36
22
37
23
## Support for admin mode with PowerToys
38
24
39
25
PowerToys only needs elevated administrator permission when interacting with other applications that are running in administrator mode. If those applications are in focus, PowerToys may not function unless it is elevated as well.
40
26
41
-
These are the two scenarios we will not work in:
27
+
These are the two scenarios PowerToys will not work in:
42
28
43
29
- Intercepting certain types of keyboard strokes
44
-
- Resizing / Moving windows
30
+
- Resizing / moving windows
45
31
46
32
### Affected PowerToys utilities
47
33
48
34
Admin mode permissions may be required in the following scenarios:
49
35
50
36
- FancyZones
51
-
- Snapping an elevated window (e.g. command prompt) into a Fancy Zone
37
+
- Snapping an elevated window (e.g. Task Manager) into a Fancy Zone
52
38
- Moving the elevated window to a different zone
53
39
- Shortcut guide
54
40
- Display shortcut
@@ -58,3 +44,21 @@ Admin mode permissions may be required in the following scenarios:
58
44
- App-targeted shortcuts remapping
59
45
- PowerToys Run
60
46
- Display shortcut
47
+
48
+
49
+
## Run as administrator: elevated processes explained
50
+
51
+
Windows applications run in _User mode_ by default. To run an application in _Administrative mode_ or as an _elevated process_ means that app will run with additional access to the operating system.
52
+
53
+
The simplest way to run an app or program in administrative mode is to right-click the program and select <kbd>Run as administrator</kbd>. If the current user is not an administrator, Windows will ask for the administrator username and password.
54
+
55
+
Most apps do not need to run with elevated permission. A common scenario, however, for requiring administrator permission would be to run certain PowerShell commands or edit the registry.
56
+
57
+
If you see this User Account Control prompt, the application is requesting administrator level elevated permission:
With the activation / deactivation shortcut (default: <kbd>⊞ Win</kbd>+<kbd>Ctrl</kbd>+<kbd>T</kbd>), the window will be toggled on top.
17
+
With the activation / deactivation shortcut (default: <kbd>⊞ Win</kbd>+<kbd>Ctrl</kbd>+<kbd>T</kbd>), the targeted window will be placed above all non-topmost windows and should stay above them, even when the window is deactivated.
18
18
19
-
## PowerToys settings
19
+
## Settings
20
20
21
-
From the settings menu, the following options can be configured:
21
+
From the Settings menu, the following options can be configured:
22
22
23
23
| Setting | Description |
24
-
| --- | --- |
25
-
| Activation shortcut | The customizable keyboard command to turn on or off always on top for that window |
26
-
| Do not activate when Game Mode is on | Prevents the feature from being activated when actively playing a game on the system |
27
-
| Color | The color of the highlight border |
28
-
| Border thickness (px)| The thickness of the highlight border - Measured in pixels |
29
-
| Play a sound | A small alert chirp is played to make you aware. Activating and deactivating are different so you can tell. |
30
-
| Excluded apps | Add the application's name, or part of the name, one per line (e.g. adding `Notepad` will match both `Notepad.exe` and `Notepad++.exe`; to match only `Notepad.exe` add the `.exe` extension) |
24
+
|:--- |:--- |
25
+
| Activation shortcut | The customizable keyboard command to turn on or off always on top for that window.|
26
+
| Do not activate when Game Mode is on | Prevents the feature from being activated when actively playing a game on the system.|
27
+
| Color | The custom color of the highlight border.|
28
+
| Border thickness (px)| The thickness of the highlight border. Measured in pixels |
29
+
| Play a sound | A short alert chirp is played. Activating and deactivating use different sounds. |
30
+
| Excluded apps | Add an application's name, or part of the name, one per line. (e.g. adding `Notepad` will match both `Notepad.exe` and `Notepad++.exe`; to match only `Notepad.exe` add the `.exe` extension) |
Copy file name to clipboardExpand all lines: hub/powertoys/awake.md
+17-13Lines changed: 17 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: PowerToys Awake utility for Windows
3
3
description: A tool for a Windows computer to stay awake.
4
-
ms.date: 06/28/2021
4
+
ms.date: 04/27/2022
5
5
ms.topic: article
6
6
ms.localizationpriority: medium
7
7
---
@@ -10,45 +10,49 @@ ms.localizationpriority: medium
10
10
11
11
PowerToys Awake is a utility tool for Windows designed to keep a computer awake without having to manage its [power & sleep settings](https://support.microsoft.com/windows/how-to-adjust-power-and-sleep-settings-26f623b5-4fcc-4194-863d-b824e5ea7679). This behavior can be helpful when running time-consuming tasks, ensuring that the computer does not go to sleep or turn off its screens.
12
12
13
-
## Get started
13
+
## Getting started
14
14
15
-
PowerToys Awake can be used directly from PowerToys settings or as a standalone executable. When the tool is running from PowerToys, it can be managed from PowerToys settings or the system tray.
15
+
PowerToys Awake can be used directly from PowerToys Settings or as a standalone executable. When the tool is running from PowerToys, it can be managed from PowerToys Settings or the system tray.
16
16
17
17
> [!NOTE]
18
18
> PowerToys Awake does not modify any of the Windows power plan settings, and does not depend on a custom power plan configuration. Instead, it spawns background threads that tell Windows that they require a specific state of the machine.
19
19
20
-
## PowerToys settings
21
20
22
-
<!-- [Jay] GUI text needs to be updated to "PowerToys Awake", then change following text and images accordingly -->
23
-
In the PowerToys settings view, start PowerToys Awake by using the **Enable Awake** toggle. Once enabled, the application will manage the awakeness state of the computer.
21
+
## Settings
24
22
25
-

23
+
In the PowerToys Settings view, start PowerToys Awake by using the **Enable Awake** toggle. Once enabled, the application will manage the awakeness state of the computer.
24
+
25
+

26
26
27
27
The following Awake states can be selected:
28
28
29
-
-**Off (Passive)** - The computer awakeness state is unaffected. The application is waiting for user input.
30
-
-**Keep awake indefinitely** - The computer stays awake indefinitely, until the user explicitly puts the machine to sleep or exits/disables the application.
31
-
-**Keep awake temporarily** - Keep machine awake for a pre-defined limited time. Once the time elapses, computer resumes its previous awakeness state.
29
+
| Setting | Description |
30
+
| :-- | :-- |
31
+
| Keep using the selected power plan | The computer awakeness state is unaffected. The application is waiting for user input. |
32
+
| Keep awake indefinitely | The computer stays awake indefinitely, until you explicitly put the machine to sleep or exits/disables the application. |
33
+
| Keep awake temporarily | Keep machine awake for a pre-defined limited time. Once the time elapses, the computer resumes its previous awakeness state. |
32
34
33
35
> [!NOTE]
34
36
> Changing the hours or minutes while the computer is kept awake temporarily will reset the timer.
35
37
36
-
## Keep screen on
38
+
###Keep screen on
37
39
38
40
While PowerToys Awake can keep the computer awake indefinitely or temporarily, in its default state the displays connected to the machine will turn off, even though the computer won't go to sleep. If you need the displays to be available, use the **Keep screen on** switch, which will ensure that all monitors remain on.
39
41
42
+
40
43
## System tray
41
44
42
45
To manage the execution of the tool from the system tray, right-click on the PowerToys Awake icon.
43
46
44
-

47
+

48
+
45
49
46
50
## Command Line Interface (CLI)
47
51
48
52
PowerToys Awake can also be executed as a standalone application, directly from the PowerToys folder. The following command line arguments can be used when running `PowerToys.Awake.exe` from the terminal or via a `.lnk` shortcut file:
49
53
50
54
| Argument | Description |
51
-
|:------------------|:------------|
55
+
|:----------------|:----------|
52
56
|`--use-pt-config`| Use the PowerToys configuration file to manage the settings. This assumes that there is a `settings.json` file for Awake, generated by PowerToys, that contains all required runtime information. This includes the Behavior Mode (indefinite or timed), whether screens should be kept on, and what the values for hours and minutes are for a temporary keep-awake.<br/>When this argument is used, all other arguments are ignored. Awake will look for changes in the `settings.json` file to update its state. |
53
57
|`--display-on`| Determines whether the screens should be kept on or off while the machine is kept awake. Expected values are `true` or `false`. |
54
58
|`--time-limit`| Duration, in seconds, during which Awake keeps the computer awake. Can be used in combination with `--display-on`. |
description: A system-wide color picking utility for Windows that enables you to pick colors from the screen and automatically copies the default value to your clipboard.
4
-
ms.date: 05/28/2021
3
+
description: A system-wide color picking utility for Windows that enables you to pick colors from the screen and automatically copies the default value to your clipboard.
A system-wide color picking utility for Windows that enables you to pick colors from any currently running application and can copy it in a configurable format to your clipboard.
To start using Color Picker, make sure it is enabled in the PowerToys settings (Color Picker section).
20
+
To start using Color Picker, enable it in the PowerToys Settings (Color Picker section).
21
21
22
22
### Activate
23
23
24
24
Once enabled, you can choose one of the following three behaviors to be executed when launching Color Picker with the activation shortcut (default: <kbd>Win</kbd>+<kbd>Shift</kbd>+<kbd>C</kbd>).
-**Color Picker with editor mode enabled** - Opens Color Picker. After selecting a color, the editor is opened and the selected color is copied to the clipboard (in the default format - configurable in the settings dialog).
29
-
-**Editor** - Opens editor directly, from here you can choose a color from the history, finetune a selected color, or capture a new color with by opening the color picker.
28
+
-**Color Picker with editor mode enabled** - Opens Color Picker. After selecting a color, the editor is opened and the selected color is copied to the clipboard (in the default format - configurable in the Settings dialog).
29
+
-**Editor** - Opens editor directly, from here you can choose a color from the history, fine-tune a selected color, or capture a new color by opening the color picker.
30
30
-**Color Picker only** - Opens Color Picker only and the selected color will be copied to the clipboard.
31
31
32
32
### Select color
@@ -35,39 +35,39 @@ After the Color Picker is activated, hover your mouse cursor over the color you
35
35
36
36
The copied color will be stored in your clipboard in the format that is configured in the settings (default: HEX).
37
37
38
-

38
+

39
39
40
40
> [!TIP]
41
41
> To select the color of the non-hover state of a element:
42
+
>
42
43
> - Move the mouse pointer close, but not over the element
43
44
> - Zoom in by scrolling the mouse wheel up (image will be frozen)
44
45
> - In the enlarged area, you can pick the color of the element
45
46
46
47
## Editor usage
47
48
48
-
The editor lets you see the history of picked colors (up to 20) and copy their representation in any predefined string format. You can configure which color formats are visible in the editor, and in what order that they appear. This configuration can be found in PowerToys Settings.
49
+
The editor lets you see the history of picked colors (up to 20) and copy their representation in any predefined string format. You can configure which color formats are visible in the editor and in what order that they appear. This configuration can be found in PowerToys Settings.
49
50
50
-
The editor also allows you to finetune any picked color or get a new similar color. Editor previews different shades of currently selected color: 2 lighter and 2 darker ones.
51
+
The editor also allows you to fine-tune any picked color or get a new similar color. Editor suggests two lighter and two darker shades of the currently selected color. Clicking on any of those alternative color shades will add the selection to the history of picked colors. It will appear at the top of the colors history list.
51
52
52
-
Clicking on any of those alternative color shades will add the selection to the history of picked colors (it will appear at the top of the colors history list). The color in the middle represents your currently selected color from the colors history. By clicking on it, the finetuning configuration control will appear, where you can change HUE or RGB values of the current color. Pressing <kbd>Select</kbd> will add newly configured color into the colors history.
53
+
The color in the middle represents your currently selected color from the colors history. By clicking on it, the fine-tuning configuration control will appear, where you can change HSV or RGB values of the current color. Pressing <kbd>Select</kbd> will add newly configured color into the colors history.
- Color picker can't be displayed on top of the start menu or action center (you can still pick a color).
72
73
- If the currently focused application was started with an administrator elevation (Run as administrator), the Color Picker activation shortcut will not work, unless PowerToys was also started with an administrator elevation.
73
-
- Currently, there is a "blind spot" in the bottom right corner of the desktop.
0 commit comments