Stop-SbecInstance
Stops the Setup and Boot Event Collector.
Syntax
Stop-SbecInstance
[-Service]
[-Force]
[<CommonParameters>]
Stop-SbecInstance
[-Direct]
[-ComputerName <String[]>]
[-CimSession <CimSession[]>]
[-Force]
[<CommonParameters>]
Description
The Stop-SbecInstance cmdlet stops an instance of the Setup and Boot Event Collector.
You must have the Builtin Administrator privilege to run this cmdlet.
Examples
Example 1: Stop the Boot Event Collector service
PS C:\> Stop-SbecInstance -Service
This command stops the Boot Event Collector service.
Example 2: Stop a Boot Event Collector instance
PS C:\> Stop-SbecInstance -Direct
This command stops an instance of Boot Event Collector that was started from the command line.
Example 3: Immediately stop a Boot Event Collector instance
PS C:\> Stop-SbecInstance -Direct -Force
This command stops an instance of Boot Event Collector that was started from the command line, and discards any buffered but not-yet processed data.
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.
Type: | CimSession[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Direct
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.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Service
Stops the Setup and Boot Event Collector service on the current computer.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None.
Outputs
None.