mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-16 02:43:43 +00:00
Acrolinx
This commit is contained in:
@ -11,7 +11,7 @@ ms.topic: reference
|
||||
|
||||
[!INCLUDE [supported-os-enterprise-plus](../../../includes/iot/supported-os-enterprise-plus.md)]
|
||||
|
||||
The following sample Windows PowerShell script uses the WMI providers to disable all blocked key combinations for Keyboard Filter by using the Windows Management Instrumentation (WMI) providers for Keyboard Filter. The key combination configurations are not removed, but Keyboard Filter stops blocking any keys.
|
||||
The following sample Windows PowerShell script uses the WMI providers to disable all blocked key combinations for Keyboard Filter by using the Windows Management Instrumentation (WMI) providers for Keyboard Filter. The key combination configurations aren't removed, but Keyboard Filter stops blocking any keys.
|
||||
|
||||
## Disable-all-rules.ps1
|
||||
|
||||
@ -69,10 +69,8 @@ Get-WMIObject -class WEKF_Scancode @CommonParams |
|
||||
}
|
||||
```
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
[Windows PowerShell script samples for keyboard filter](keyboardfilter-powershell-script-samples.md)
|
||||
|
||||
[Keyboard filter WMI provider reference](keyboardfilter-wmi-provider-reference.md)
|
||||
|
||||
[Keyboard filter](index.md)
|
||||
- [Windows PowerShell script samples for keyboard filter](keyboardfilter-powershell-script-samples.md)
|
||||
- [Keyboard filter WMI provider reference](keyboardfilter-wmi-provider-reference.md)
|
||||
- [Keyboard filter](index.md)
|
||||
|
@ -64,7 +64,7 @@ Get-WMIObject -class WEKF_Scancode @CommonParams |
|
||||
}
|
||||
```
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
[Windows PowerShell script samples for keyboard filter](keyboardfilter-powershell-script-samples.md)
|
||||
|
||||
|
@ -21,7 +21,7 @@ The list below describes sample Windows PowerShell scripts that demonstrate how
|
||||
| [Modify global settings](modify-global-settings.md) | Demonstrates how to modify global settings for Keyboard Filter. |
|
||||
| [Remove key combination configurations](remove-key-combination-configurations.md) | Demonstrates how to remove a custom defined key combination configuration for Keyboard Filter. |
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
[Keyboard Filter WMI provider reference](keyboardfilter-wmi-provider-reference.md)
|
||||
|
||||
|
@ -17,7 +17,7 @@ The first function, **Remove-Custom-Key**, removes custom key combination config
|
||||
|
||||
The second function, **Remove-Scancode**, removes custom scan code configurations.
|
||||
|
||||
You cannot remove the predefined key combination configurations for Keyboard Filter, but you can disable them.
|
||||
You can't remove the predefined key combination configurations for Keyboard Filter, but you can disable them.
|
||||
|
||||
## Remove-rules.ps1
|
||||
|
||||
@ -99,7 +99,7 @@ Remove-Custom-Key "%"
|
||||
Remove-Scancode "Ctrl" 37
|
||||
```
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
[Windows PowerShell script samples for keyboard filter](keyboardfilter-powershell-script-samples.md)
|
||||
|
||||
|
@ -46,19 +46,19 @@ The following tables list any methods and properties that belong to this class.
|
||||
| Property | Data type | Qualifiers | Description |
|
||||
|----------|----------------|------------|--------------|
|
||||
| **Id** | string | [key] | The name of the custom key combination. |
|
||||
| **Enabled** | Boolean | [read, write] | Indicates if the key is blocked or unblocked. This property can be one of the following values </br>- **true** Indicates that the key is blocked.</br>- **false** Indicates that the key is not blocked. |
|
||||
| **Enabled** | Boolean | [read, write] | Indicates if the key is blocked or unblocked. This property can be one of the following values </br>- **true** Indicates that the key is blocked.</br>- **false** Indicates that the key isn't blocked. |
|
||||
|
||||
### Remarks
|
||||
|
||||
You can specify key combinations by including the modifier keys in the name. The most common modifier names are "Ctrl", "Shift", "Alt", and "Win". You cannot block a combination of non-modifier keys. For example, you can block a key combination of "Ctrl+Shift+F", but you cannot block a key combination of "A+D".
|
||||
You can specify key combinations by including the modifier keys in the name. The most common modifier names are <kbd>>Ctrl</kbd>, <kbd>>Shift</kbd>, <kbd>>Alt</kbd>, and <kbd>>Win</kbd>. You can't block a combination of non-modifier keys. For example, you can block a key combination of <kbd>>Ctrl</kbd>+<kbd>>Shift</kbd>+<kbd>>F</kbd>, but you can't block a key combination of <kbd>>A</kbd>+<kbd>>D</kbd>.
|
||||
|
||||
When you block a shift-modified key, you must enter the key as "Shift" + the unmodified key. For example, to block the % key on an English keyboard layout, you must specify the key as "Shift+5". Attempting to block "%", results in Keyboard Filter blocking "5" instead.
|
||||
When you block a <kbd>>Shift</kbd>-modified key, you must enter the key as <kbd>>Shift</kbd> + the unmodified key. For example, to block the <kbd>>%</kbd> key on an English keyboard layout, you must specify the key as <kbd>>Shift</kbd>+<kbd>>5</kbd>. Attempting to block <kbd>>%</kbd>, results in Keyboard Filter blocking <kbd>>5</kbd> instead.
|
||||
|
||||
When you specify the key combination to block, you must use the English names for the keys. For a list of the key names you can specify, see Keyboard Filter key names.
|
||||
|
||||
## Example
|
||||
|
||||
The following code demonstrates how to add or enable a custom key combination that Keyboard Filter will block by using the Windows Management Instrumentation (WMI) providers for Keyboard Filter. This example modifies the properties directly and does not call any of the methods defined in **WEKF_CustomKey**.
|
||||
The following code demonstrates how to add or enable a custom key combination that Keyboard Filter will block by using the Windows Management Instrumentation (WMI) providers for Keyboard Filter. This example modifies the properties directly and doesn't call any of the methods defined in **WEKF_CustomKey**.
|
||||
|
||||
```powershell
|
||||
<#
|
||||
@ -123,17 +123,7 @@ Enable-Custom-Key "Numpad0"
|
||||
Enable-Custom-Key "Shift+Numpad1"
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
[Keyboard Filter WMI provider reference](keyboardfilter-wmi-provider-reference.md)
|
||||
|
||||
|
@ -33,7 +33,7 @@ Returns an HRESULT value that indicates a [WMI Non-Error Constant](/windows/win3
|
||||
|
||||
**WEKF_CustomKey.Add** creates a new **WEKF_CustomKey** object and sets the **Enabled** property of the new object to **true**, and the **Id** property to *CustomKey*.
|
||||
|
||||
If a **WEKF_CustomKey** object already exists with the **Id** property equal to *CustomKey*, then **WEKF_CustomKey.Add** returns an error code and does not create a new object or modify any properties of the existing object. If the existing **WEKF_CustomKey** object has the **Enabled** property set to **false**, Keyboard Filter does not block the custom key combination.
|
||||
If a **WEKF_CustomKey** object already exists with the **Id** property equal to *CustomKey*, then **WEKF_CustomKey.Add** returns an error code and doesn't create a new object or modify any properties of the existing object. If the existing **WEKF_CustomKey** object has the **Enabled** property set to **false**, Keyboard Filter does not block the custom key combination.
|
||||
|
||||
## Example
|
||||
|
||||
@ -90,17 +90,7 @@ foreach ($objCustomKeyItem in $objCustomKeyList) {
|
||||
}
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
- [WEKF_CustomKey](wekf-customkey.md)
|
||||
- [Keyboard Filter](index.md)
|
||||
|
@ -31,13 +31,13 @@ Returns an HRESULT value that indicates [WMI status](/windows/win32/wmisdk/wmi-n
|
||||
|
||||
## Remarks
|
||||
|
||||
**WEKF_CustomKey.Remove** removes an existing **WEKF_CustomKey** object. If the object does not exist, **WEKF_CustomKey.Remove** returns an error with the value 0x8007007B.
|
||||
**WEKF_CustomKey.Remove** removes an existing **WEKF_CustomKey** object. If the object doesn't exist, **WEKF_CustomKey.Remove** returns an error with the value 0x8007007B.
|
||||
|
||||
Because this method is static, you cannot call it on an object instance, but must instead call it at the class level.
|
||||
Because this method is static, you can't call it on an object instance, but must instead call it at the class level.
|
||||
|
||||
## Example
|
||||
|
||||
The following code demonstrates how to remove a custom key from Keyboard Filter so it is no longer blocked by using the Windows Management Instrumentation (WMI) providers for Keyboard Filter.
|
||||
The following code demonstrates how to remove a custom key from Keyboard Filter so it's no longer blocked by using the Windows Management Instrumentation (WMI) providers for Keyboard Filter.
|
||||
|
||||
```powershell
|
||||
$COMPUTER = "localhost"
|
||||
@ -82,16 +82,6 @@ foreach ($objCustomKey in $objDisabledCustomKeys) {
|
||||
}
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
|
||||
- [WEKF_CustomKey](wekf-customkey.md)
|
||||
|
@ -45,7 +45,7 @@ The following tables list any constructors, methods, fields, and properties that
|
||||
| Property | Data type | Qualifiers | Description |
|
||||
|:------------|:----------|:--------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **Id** | string | [key] | The name of the predefined key combination. |
|
||||
| **Enabled** | Boolean | [read, write] | Indicates whether the key is blocked or unblocked. To indicate that the key is blocked, specify **true**. To indicate that the key is not blocked, specify **false**. |
|
||||
| **Enabled** | Boolean | [read, write] | Indicates whether the key is blocked or unblocked. To indicate that the key is blocked, specify **true**. To indicate that the key isn't blocked, specify **false**. |
|
||||
|
||||
### Remarks
|
||||
|
||||
@ -108,18 +108,7 @@ Enable-Predefined-Key "Ctrl+Alt+Delete"
|
||||
Enable-Predefined-Key "Ctrl+Esc"
|
||||
```
|
||||
|
||||
## Requirements
|
||||
## Related articles
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
|
||||
[Keyboard Filter WMI provider reference](keyboardfilter-wmi-provider-reference.md)
|
||||
|
||||
[Keyboard Filter](index.md)
|
||||
- [Keyboard Filter WMI provider reference](keyboardfilter-wmi-provider-reference.md)
|
||||
- [Keyboard Filter](index.md)
|
||||
|
@ -29,17 +29,8 @@ Unblocks the specified predefined key combination.
|
||||
|
||||
Returns an HRESULT value that indicates [WMI Non-error constant](/windows/win32/wmisdk/wmi-non-error-constants) or a [WMI error constant](/windows/win32/wmisdk/wmi-error-constants).
|
||||
|
||||
## Requirements
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
- [WEKF_PredefinedKey](wekf-predefinedkey.md)
|
||||
- [Keyboard Filter](index.md)
|
||||
|
@ -29,17 +29,7 @@ This method blocks the specified predefined key combination.
|
||||
|
||||
Returns an HRESULT value that indicates [WMI non-error constant](/windows/win32/wmisdk/wmi-non-error-constants) or a [WMI error constant](/windows/win32/wmisdk/wmi-error-constants).
|
||||
|
||||
## Requirements
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
- [WEKF_PredefinedKey](wekf-predefinedkey.md)
|
||||
- [Keyboard Filter](index.md)
|
||||
|
@ -49,17 +49,17 @@ The following tables list any constructors, methods, fields, and properties that
|
||||
|----------|----------------|------------|-------------|
|
||||
| **Modifiers** | string | [key] | The modifier keys that are part of the key combination to block. |
|
||||
| **Scancode** | uint16 | [key] | The scan code part of the key combination to block. |
|
||||
| **Enabled** | Boolean | [read, write] | Indicates whether the scan code is blocked or unblocked. This property can be one of the following values:</br>- **true** Indicates that the scan code is blocked.</br>- **false** Indicates that the scan code is not blocked. |
|
||||
| **Enabled** | Boolean | [read, write] | Indicates whether the scan code is blocked or unblocked. This property can be one of the following values:</br>- **true** Indicates that the scan code is blocked.</br>- **false** Indicates that the scan code isn't blocked. |
|
||||
|
||||
### Remarks
|
||||
|
||||
Scan codes are generated by the keyboard whenever a key is pressed. The same physical key will always generate the same scan code, regardless of which keyboard layout is currently being used by the system.
|
||||
|
||||
You can specify key combinations by including the modifier keys in the *Modifiers* parameter of the **Add** method or by modifying the **Modifiers** property. The most common modifier names are "Ctrl", "Shift", "Alt", and "Win".
|
||||
You can specify key combinations by including the modifier keys in the *Modifiers* parameter of the **Add** method or by modifying the **Modifiers** property. The most common modifier names are <kbd>>Ctrl</kbd>, <kbd>>Shift</kbd>, <kbd>>Alt</kbd>, and <kbd>>Win</kbd>.
|
||||
|
||||
## Example
|
||||
|
||||
The following code demonstrates how to add or enable a keyboard scan code that Keyboard Filter will block by using the Windows Management Instrumentation (WMI) providers for Keyboard Filter. This example modifies the properties directly, and does not call any of the methods defined in **WEKF_Scancode**.
|
||||
The following code demonstrates how to add or enable a keyboard scan code that Keyboard Filter will block by using the Windows Management Instrumentation (WMI) providers for Keyboard Filter. This example modifies the properties directly, and doesn't call any of the methods defined in **WEKF_Scancode**.
|
||||
|
||||
```powershell
|
||||
<#
|
||||
@ -121,17 +121,7 @@ function Enable-Scancode($Modifiers, [int]$Code) {
|
||||
Enable-Scancode "Ctrl" 37
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
[Keyboard Filter WMI provider reference](keyboardfilter-wmi-provider-reference.md)
|
||||
|
||||
|
@ -36,19 +36,9 @@ Returns an HRESULT value that indicates [WMI non-error constant](/windows/win32/
|
||||
|
||||
**WEKF_Scancode.Add** creates a new **WEKF_Scancode** object and sets the **Enabled** property of the new object to **true**.
|
||||
|
||||
If a **WEKF_Scancode** object already exists with same *Modifiers* and *Scancode* properties, then **WEKF_Scancode.Add** returns an error code and does not create a new object or modify any properties of the existing object. If the existing **WEKF_Scancode** object has the **Enabled** property set to **false**, Keyboard Filter does not block the scan code.
|
||||
If a **WEKF_Scancode** object already exists with same *Modifiers* and *Scancode* properties, then **WEKF_Scancode.Add** returns an error code and doesn't create a new object or modify any properties of the existing object. If the existing **WEKF_Scancode** object has the **Enabled** property set to **false**, Keyboard Filter does not block the scan code.
|
||||
|
||||
## Requirements
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
- [WEKF_Scancode](wekf-scancode.md)
|
||||
- [Keyboard Filter](index.md)
|
||||
|
@ -34,21 +34,11 @@ Returns an HRESULT value that indicates [WMI non-error constant](/windows/win32/
|
||||
|
||||
## Remarks
|
||||
|
||||
**WEKF_Scancode.Remove** removes an existing **WEKF_Scancode** object. If the object does not exist, **WEKF_Scancode.Remove** returns an error with the value 0x8007007B.
|
||||
**WEKF_Scancode.Remove** removes an existing **WEKF_Scancode** object. If the object doesn't exist, **WEKF_Scancode.Remove** returns an error with the value 0x8007007B.
|
||||
|
||||
Because this method is static, you cannot call it on an object instance, but must instead call it at the class level.
|
||||
Because this method is static, you can't call it on an object instance, but must instead call it at the class level.
|
||||
|
||||
## Requirements
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
- [WEKF_Scancode](wekf-scancode.md)
|
||||
- [Keyboard Filter](index.md)
|
||||
|
@ -31,7 +31,7 @@ The following tables list any methods and properties that belong to this class.
|
||||
| Property | Data type | Qualifiers | Description |
|
||||
|----------|----------------|------------|-------------|
|
||||
| **Name** | string | [key] | Indicates the name of the Keyboard Filter setting that this object represents. See the Remarks section for a list of valid setting names. |
|
||||
| **Value** | string | [read, write] | Represents the value of the **Name** setting. The value is not case-sensitive. </br> See the Remarks section for a list of valid values for each setting. |
|
||||
| **Value** | string | [read, write] | Represents the value of the **Name** setting. The value isn't case-sensitive. </br> See the Remarks section for a list of valid values for each setting. |
|
||||
|
||||
### Remarks
|
||||
|
||||
@ -44,18 +44,18 @@ The following table lists all settings available for Keyboard Filter.
|
||||
| Setting name | Description |
|
||||
|--------------|-------------|
|
||||
| **DisableKeyboardFilterForAdministrators** | This setting specifies whether Keyboard Filter is enabled or disabled for administrator accounts. Set to **true** to disable Keyboard Filter for administrator accounts; otherwise, set to **false**. Set to **true** by default. |
|
||||
| **ForceOffAccessibility** | This setting specifies whether Keyboard Filter blocks users from enabling Ease of Access features. Set to **true** to force disabling the Ease of Access features. Set to **false** to allow enabling the Ease of Access features. Set to **false** by default.</br>Changing this setting to **false** does not automatically enable Ease of Access features; you must manually enable them. |
|
||||
| **ForceOffAccessibility** | This setting specifies whether Keyboard Filter blocks users from enabling Ease of Access features. Set to **true** to force disabling the Ease of Access features. Set to **false** to allow enabling the Ease of Access features. Set to **false** by default.</br>Changing this setting to **false** doesn't automatically enable Ease of Access features; you must manually enable them. |
|
||||
| **BreakoutKeyScanCode** | This setting specifies the scan code of the key that enables a user to break out of an account that is locked down with Keyboard Filter. A user can press this key consecutively five times to switch to the Welcome screen.</br>By default, the BreakoutKeyScanCode is set to the scan code for the left Windows logo key. |
|
||||
|
||||
One instance of the **WEKF_Settings** class exists for each valid setting.
|
||||
|
||||
Changes to the **DisableKeyboardFilterForAdministrator** setting are applied when an administrator account signs in, and applies to all applications run during the user session. If a user without an administrator account runs an application as an administrator, Keyboard Filter is still enabled, regardless of the **DisableKeyboardFilterForAdministrator** setting.
|
||||
|
||||
Changes to the **BreakoutKeyScanCode** setting do not take effect until you restart the device.
|
||||
Changes to the **BreakoutKeyScanCode** setting don't take effect until you restart the device.
|
||||
|
||||
If the **BreakoutKeyScanCode** is set to the scan code for either the left Windows logo key or the right Windows logo key, both Windows Logo keys will work as the breakout key.
|
||||
|
||||
The **BreakoutKeyScanCode** setting only applies to accounts where Keyboard Filter is active. If the scan code is set to a value that does not map to any key, such as 0 (zero), then you must use another method to access the Welcome screen if you need to service the device, such as remotely connecting, or restarting the device if automatic sign-in is not enabled.
|
||||
The **BreakoutKeyScanCode** setting only applies to accounts where Keyboard Filter is active. If the scan code is set to a value that doesn't map to any key, such as 0 (zero), then you must use another method to access the Welcome screen if you need to service the device, such as remotely connecting, or restarting the device if automatic sign-in isn't enabled.
|
||||
|
||||
> [!IMPORTANT]
|
||||
> On some devices, if the breakout key is pressed too rapidly, the key presses may not register. We recommend that you include a slight pause between each breakout key press.
|
||||
@ -90,17 +90,7 @@ $BreakoutMode.value = $HomeKeyScanCode
|
||||
$BreakoutMode.put()
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
| Windows Edition | Supported |
|
||||
|:-----------------------|:---------:|
|
||||
| Windows Home | No |
|
||||
| Windows Pro | No |
|
||||
| Windows Enterprise | Yes |
|
||||
| Windows Education | Yes |
|
||||
| Windows IoT Enterprise | Yes |
|
||||
|
||||
## Related topics
|
||||
## Related articles
|
||||
|
||||
[Keyboard Filter WMI provider reference](keyboardfilter-wmi-provider-reference.md)
|
||||
|
||||
|
Reference in New Issue
Block a user