Scripts/Disconnect-PoshWSUSServer.ps1
function Disconnect-PoshWSUSServer { <# .SYNOPSIS Disconnects session against WSUS server. .DESCRIPTION Disconnects session against WSUS server. .NOTES Name: Disconnect-PoshWSUSServer Author: Boe Prox DateCreated: 27Oct2010 .LINK https://learn-powershell.net .EXAMPLE Disconnect-PoshWSUSServer Description ----------- This command will disconnect the session to the WSUS server. #> [cmdletbinding()] Param () Process { #Disconnect WSUS session by removing the variable Remove-Variable -Name wsus -Force -Scope Global } } |