Stop-SbecInstance

Stop-SbecInstance is accessible with the help of BootEventCollector module. To configure BootEventCollector, go through this link.

Synopsis

Stops the Setup and Boot Event Collector.

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.

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
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
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
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
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
Accept pipeline input:False
Accept wildcard characters:False

Syntax

Stop-SbecInstance [-Service] [-Force] [<CommonParameters>]

Stop-SbecInstance [-Direct] [-ComputerName <String[]>] [-CimSession <CimSession[]>] [-Force] [<CommonParameters>]

—————–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.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Stop-SbecInstance

Get-Command Stop-SbecInstance powershell script command cmdlet

You can also read about

  • Get-SbecActiveConfig
  • Save-SbecInstance
  • Set-SbecActiveConfig
  • Start-SbecInstance
  • Test-SbecActiveConfig

To know more PowerShell cmdlets(Commands) on BootEventCollector click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *