This is the built-in help made by Microsoft for the command 'Restore-NetworkSwitchConfiguration', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Restores configuration for a network switch.
Restore-NetworkSwitchConfiguration [-CimSession] <CimSession> [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
[<System.String>]] [<CommonParameters>]
The Restore-NetworkSwitchConfiguration cmdlet restores configuration for a network switch to the last saved startup configuration.
<
Save-NetworkSwitchConfiguration
<
Example 1: Restore the configuration for a network switch
PS C:\>$Session = New-CimSession -ComputerName "NetworkSwitch08"
PS C:\> Restore-NetworkSwitchConfiguration -CimSession $Session
The first command creates a CimSession for a network switch, and then stores it in the $Session variable. For more information about CimSession objects, type Get-Help
New-CimSession.
The second command restores the configuration from the last saved configuration for NetworkSwitch08 by using the $Session object.