CmdID / PowerShell / Cmdlets / Remove
Remove-PSSnapin
Removes Windows PowerShell snap-ins from the current session. PowerShell reference
From the PowerShell reference
4 parameters
Alias rsnp
What it does
Removes Windows PowerShell snap-ins from the current session. The Remove-PSSnapin cmdlet removes a Windows PowerShell snap-in from the current session. You can use it to remove snap-ins that you have added to Windows PowerShell You cannot use this cmdlet to remove the snap-ins that are installed with Windows PowerShell. After you remove a snap-in from the current session, the snap-in is still loaded, but the cmdlets and providers in the snap-in are no longer available in the session.
Remove-PSSnapin [-Name] <String[]> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove a snap-in
Remove-PSSnapin -Name Microsoft.ExchangeIdentifyRemove snap-ins by using names with the pipeline
Get-PSSnapin smp* | Remove-PSSnapinIdentifyRemove snap-ins by using names
Remove-PSSnapin -Name eventIdentifyIts page in the reference: Remove-PSSnapin.
Parameters
-NameSpecifies the names of Windows PowerShell snap-ins to remove from the current session. Wildcard characters (*) are permitted.-PassThruReturns an object that represents the snap-in. By default, this cmdlet does not generate any output.-ConfirmPrompts you for confirmation before running the cmdlet.-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.