Obuka
Modul
Create and run scripts by using Windows PowerShell - Training
This module explains how to create and run scripts.
Ovaj pregledač više nije podržan.
Nadogradite na Microsoft Edge biste iskoristili najnovije funkcije, bezbednosne ispravke i tehničku podršku.
Napojnica
This CSP contains ADMX-backed policies which require a special SyncML format to enable or disable. You must specify the data type in the SyncML as <Format>chr</Format>
. For details, see Understanding ADMX-backed policies.
The payload of the SyncML must be XML-encoded; for this XML encoding, there are a variety of online encoders that you can use. To avoid encoding the payload, you can use CDATA if your MDM supports it. For more information, see CDATA Sections.
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ✅ User |
✅ Pro ✅ Enterprise ✅ Education ✅ Windows SE ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1803 [10.0.17134] and later |
./User/Vendor/MSFT/Policy/Config/WindowsPowerShell/TurnOnPowerShellScriptBlockLogging
./Device/Vendor/MSFT/Policy/Config/WindowsPowerShell/TurnOnPowerShellScriptBlockLogging
This policy setting enables logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log.
If you enable this policy setting, Windows PowerShell will log the processing of commands, script blocks, functions, and scripts - whether invoked interactively, or through automation.
If you disable this policy setting, logging of PowerShell script input is disabled.
If you enable the Script Block Invocation Logging, PowerShell additionally logs events when invocation of a command, script block, function, or script starts or stops. Enabling Invocation Logging generates a high volume of event logs.
Napomena
This policy setting exists under both Computer Configuration and User Configuration in the Group Policy Editor. The Computer Configuration policy setting takes precedence over the User Configuration policy setting.
Description framework properties:
Property name | Property value |
---|---|
Format | chr (string) |
Access Type | Add, Delete, Get, Replace |
Napojnica
This is an ADMX-backed policy and requires SyncML format for configuration. For an example of SyncML format, refer to Enabling a policy.
ADMX mapping:
Name | Value |
---|---|
Name | EnableScriptBlockLogging |
Friendly Name | Turn on PowerShell Script Block Logging |
Location | Computer and User Configuration |
Path | Windows Components > Windows PowerShell |
Registry Key Name | Software\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging |
Registry Value Name | EnableScriptBlockLogging |
ADMX File Name | PowerShellExecutionPolicy.admx |
Obuka
Modul
Create and run scripts by using Windows PowerShell - Training
This module explains how to create and run scripts.
Dokumentacija
WindowsConnectionManager Policy CSP
Learn more about the WindowsConnectionManager Area in Policy CSP.
Learn more about the WindowsAutopilot Area in Policy CSP.
Learn more about the Policy CSP.