Enables the forwarding of the events to the Setup and Boot Event Collector in the AutoLogger settings.
PowerShell · Risk: High · Documentation Verified
Last verified: 2026-10-26
Microsoft BootEventCollector reference: Enables the forwarding of the events to the Setup and Boot Event Collector in the AutoLogger settings. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for Enable-SbecAutologger. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / BootEventCollector · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-ComputerName (required)
Specifies the names of the computers on which you want to perform the operation. You can specify a fully qualified domain name (FQDN), a NetBIOS name, or an IP address for each computer. For more information, see Invoke-CimMethod on TechNet.
-ControlSet
Specifies the control set key for the registry path.
-Credential
Specifies a user account that has permission to perform this action. The default is the current user.
-DismLogPath
Specifies the path of the file for the Deployment Image Servicing and Management (DISM) log when mounting images.
-ForceLogger
Forces the file-based AutoLogger sessions to real-time mode before enabling event forwading for them. Without this switch, they remain unchanged.
-Local (required)
Indicates to perform this operation on the local computer. This mode enables control over the registry path of where settings are applied.
-Logger
Specifies the AutoLogger sessions for which to enable forwarding. The forwarding for these sessions is automatically disabled after the operating system starts. Specifying a session explicitly in *Logger* or *PermLogger* overrides its defaults.
-NoDefaultLoggers
Indicates that this operation does not automatically add the default set of logger sessions.
-Path (required)
Specifies an array of full paths to the offline Windows image (WIM or VHD) files to which to apply the settings. If a WIM file contains multiple images, all of them are modified.
-PermLogger
Specifies the AutoLogger sessions for which to enable forwarding. The forwarding on these sessions remains enabled after the operating system starts. Specifying a session explicitly in *Logger* or *PermLogger* overrides the defaults for it.
-Session (required)
Specifies the PSSession objects connected to the remote target computers. Enter a session object, such as the output of Get-PSSession or New-PSSession, or an array of these objects.
-SystemHive
Specifies the full path to the system hive for the registry.
Prerequisites
Windows with the BootEventCollector module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This cmdlet changes system state. Review every target and parameter in the official reference, test outside production, and prepare an appropriate backup or rollback. Do not execute the example automatically.
Examples
Example 1: Enable AutoLogger on a computer
Enable-SbecAutologger -ComputerName "Server01"
This command enables AutoLogger settings on the computer named Server01. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.