Microsoft BootEventCollector reference: Stops the Setup and Boot Event Collector. 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 Stop-SbecInstance. 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
-CimSession
Runs the cmdlet on the remote computers through a remote session. Enter a session object, such as the output of a New-CimSession or Get-CimSession cmdlet or an array of these objects. The default is to run the cmdlet on the local computer. For more information, see About_CimSession.
-ComputerName
Specifies the name 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 more information see Invoke-CimMethod on MSDN.
-Direct (required)
Stops the Setup and Boot Event Collector instance directly through the WMI/CIM interface. Specify this parameter to stop an instance of the Setup and Boot Event Collector that was started from a command prompt. If multiple instances are running (including the service), specifying this parameter stops a random instance, because WMI connects to a random instance. Do not use this parameter with the service, because the service controller interprets it as a service failure and restarts it.
-Force
With the *Service* parameter, this parameter acts as a pass-through parameter for Stop-Service, allowing the cmdlet to stop a service even if that service has dependent services. With *Direct*, requests the fast stopping, discarding the buffered but not yet fully processed data.
-Service (required)
Stops the Setup and Boot Event Collector service on the current computer.
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: Stop the Boot Event Collector service
Stop-SbecInstance -Service
This command stops the Boot Event Collector service. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.