Get-SbecHistory

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

Synopsis

Gets the recent history of changes in connection status.

Description

The Get-SbecHistory cmdlet gets the recent history of changes in connection status from the Setup and Boot Event Collector.

The length of the history kept in the Collector and returned by this command is limited by an absolute number. After the history grows beyond this size, new events cause the older events to disappear. Because of this, the returned history is not full but only recent. Reading the history doesn’t erase it.

The similar information, in a reduced form, can be written by the Collector into the status log file. The reduction is in the sense that the status log only shows the points when a new ETL file is opened for a connection. The information from the status log file can be obtained with Get-SbecDestination.

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:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ComputerName

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 MSDN.

Type:String[]
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Syntax

Get-SbecHistory [[-ComputerName] <String[]>] [[-CimSession] <CimSession[]>] [<CommonParameters>]

—————–Example 1—————–
Get the connection history
PS C:\> $x = @(Get-SbecHistory)
This command gets the connection history.

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

Get-Command Get-SbecHistory

Get-Command Get-SbecHistory powershell script command cmdlet

You can also read about

  • Get-SbecDestination
  • Get-SbecForwarding

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 *