Site icon TOSS

Restore-SbecBackupConfig

powershell

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

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

Synopsis

Synopsis

Restores a configuration from a backup file.

Restores a configuration from a backup file.

Description

Description

The Restore-SbecBackupConfig cmdlet restores a Boot Event Collector configuration from a backup file.

The Restore-SbecBackupConfig cmdlet restores a Boot Event Collector configuration from a backup file.

If the previous active configuration was not itself restored but set afresh (or checkpointed after restore), it is saved in a backup file. When doing multiple undo/redo/restore commands in a sequence, the intermediate configurations are not saved in the new backup files. A configuration from undo/redo/restore commands is automatically considered checkpointed if it was left unchanged for an hour.

If the previous active configuration was not itself restored but set afresh (or checkpointed after restore), it is saved in a backup file. When doing multiple undo/redo/restore commands in a sequence, the intermediate configurations are not saved in the new backup files. A configuration from undo/redo/restore commands is automatically considered checkpointed if it was left unchanged for an hour.

You can use the OldTimestamp parameter to modify the configuration atomically.

You can use the OldTimestamp parameter to modify the configuration atomically.

The restored configuration is re-checked for validity, and refused if it has become corrupted.

The restored configuration is re-checked for validity, and refused if it has become corrupted.

You must have Builtin Administrator privilege to run this cmdlet.

You must have Builtin Administrator privilege to run this cmdlet.

Parameters

Parameters

-At

-At

Specifies the timestamp of the configuration file to restore. The acceptable values for this parameter are:

Specifies the timestamp of the configuration file to restore. The acceptable values for this parameter are:

See Get-SbecBackupConfig for more information about timestamp formats and how to convert them.

See Get-SbecBackupConfig for more information about timestamp formats and how to convert them.

Type:Object
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-AtTimestamp

-AtTimestamp

Specifies a FILETIME timestamp of the configuration file to restore.

Specifies a FILETIME timestamp of the configuration file to restore.

See Get-SbecBackupConfig for more information about timestamp formats and how to convert them.

See Get-SbecBackupConfig for more information about timestamp formats and how to convert them.

Type:UInt64
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-CimSession

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

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

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

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

-Continue

-Continue

Specifies that this operation will not throw an exception if a failure occurs. Instead the caller should examine the output of the cmdlet for the error information.

Specifies that this operation will not throw an exception if a failure occurs. Instead the caller should examine the output of the cmdlet for the error information.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Name

-Name

Specifies the name of the configuration file to restore. To get the list of backup configuration files, use the Get-SbecBackupConfig cmdlet.

Specifies the name of the configuration file to restore. To get the list of backup configuration files, use the Get-SbecBackupConfig cmdlet.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-OldTimestamp

-OldTimestamp

Specifies the timestamp of the previous active configuration. This provides a way to perform the atomic changes of the configuration. Each configuration has a timestamp (the time when it was last set or restored) and an original timestamp (if the configuration was restored, the time when it was originally set, otherwise the same as the normal timestamp). This operation checks that the OldTimestamp value matches either the normal or original timestamp of the current active configuration, thus ensuring that the active configuration wasn’t changed since the last time you have looked at it. If the values do not match, an error is returned.

Specifies the timestamp of the previous active configuration. This provides a way to perform the atomic changes of the configuration. Each configuration has a timestamp (the time when it was last set or restored) and an original timestamp (if the configuration was restored, the time when it was originally set, otherwise the same as the normal timestamp). This operation checks that the OldTimestamp value matches either the normal or original timestamp of the current active configuration, thus ensuring that the active configuration wasn’t changed since the last time you have looked at it. If the values do not match, an error is returned.

Type:UInt64
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Syntax

Syntax

Restore-SbecBackupConfig -Name <String> [-OldTimestamp <UInt64>] [-Continue] [-ComputerName <String[]>] [-CimSession <CimSession[]>] [<CommonParameters>]

Restore-SbecBackupConfig -At <Object> [-OldTimestamp <UInt64>] [-Continue] [-ComputerName <String[]>] [-CimSession <CimSession[]>] [<CommonParameters>]

Restore-SbecBackupConfig -AtTimestamp <UInt64> [-OldTimestamp <UInt64>] [-Continue] [-ComputerName <String[]>] [-CimSession <CimSession[]>] [<CommonParameters>]

Restore-SbecBackupConfig -Name <String> [-OldTimestamp <UInt64>] [-Continue] [-ComputerName <String[]>] [-CimSession <CimSession[]>] [<CommonParameters>]

Restore-SbecBackupConfig -At <Object> [-OldTimestamp <UInt64>] [-Continue] [-ComputerName <String[]>] [-CimSession <CimSession[]>] [<CommonParameters>]

Restore-SbecBackupConfig -AtTimestamp <UInt64> [-OldTimestamp <UInt64>] [-Continue] [-ComputerName <String[]>] [-CimSession <CimSession[]>] [<CommonParameters>]

—————–Example 1—————–
Restore a backup configuration by name
PS C:\> Restore-SbecBackupConfig -Name “Active.xml.202003202002052542033.xml” | Format-List
This command restores the backup file named Active.xml.202003202002052542033.xml and uses the pipeline operator to pass it to Format-List, which formats the hash table returned by the operation.

—————–Example 1—————–
Restore a backup configuration by name
PS C:\> Restore-SbecBackupConfig -Name “Active.xml.202003202002052542033.xml” | Format-List
This command restores the backup file named Active.xml.202003202002052542033.xml and uses the pipeline operator to pass it to Format-List, which formats the hash table returned by the operation.

—————–Example 2—————–
Restore the most recent backup configuration
PS C:\> $res = Restore-SbecBackupConfig -Name ((Get-SbecBackupConfig).Files[0].Name)
This command restores the most recent backup file from the list of available ones, identifying it by name.

—————–Example 2—————–
Restore the most recent backup configuration
PS C:\> $res = Restore-SbecBackupConfig -Name ((Get-SbecBackupConfig).Files[0].Name)
This command restores the most recent backup file from the list of available ones, identifying it by name.

—————–Example 3—————–
Restore a backup based on its time
PS C:\> $res = Restore-SbecBackupConfig -At ((Get-SbecBackupConfig).Files[0].Time)
This command restores the most recent backup file from the list of available backups, and identifies it by its time.

—————–Example 3—————–
Restore a backup based on its time
PS C:\> $res = Restore-SbecBackupConfig -At ((Get-SbecBackupConfig).Files[0].Time)
This command restores the most recent backup file from the list of available backups, and identifies it by its time.

—————–Example 4—————–
Restore a backup based on its FILETIME timestamp
PS C:\> $Res = Restore-SbecBackupConfig -AtTimestamp ((Get-SbecBackupConfig).Files[0].Timestamp)
This command restores the most recent backup file from the list of available ones, identifying it by the FILETIME timestamp.

—————–Example 4—————–
Restore a backup based on its FILETIME timestamp
PS C:\> $Res = Restore-SbecBackupConfig -AtTimestamp ((Get-SbecBackupConfig).Files[0].Timestamp)
This command restores the most recent backup file from the list of available ones, identifying it by the FILETIME timestamp.

—————–Example 5—————–
Restore a configuration from a specified time
PS C:\> $res = Restore-SbecBackupConfig -At 20200519
This command restores the backup configuration that was active at midnight UTC of May 19 2020.

—————–Example 5—————–
Restore a configuration from a specified time
PS C:\> $res = Restore-SbecBackupConfig -At 20200519
This command restores the backup configuration that was active at midnight UTC of May 19 2020.

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

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

Get-Command Restore-SbecBackupConfig

Get-Command Restore-SbecBackupConfig

You can also read about

You can also read about

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

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.
Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.
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 PowerShell at link

You can also refer other blogs on PowerShell at link
You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link
You can also refer other blogs on Microsoft at link

You can also refer other blogs on Microsoft 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/
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/

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/
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.
Like our page in Facebook and follow us for New technical information.

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

References are taken from Microsoft
References are taken from Microsoft

References are taken from Microsoft
References are taken from Microsoft

Exit mobile version