Powershell Clean Memory
Commands
Function Opschonen-geheugen { Get-PSSession | Remove-PSSession [System.GC]::Collect() [GC]::Collect() [GC]::WaitForPendingFinalizers() Get-Variable | #Where-Object { $startupVariables -notcontains $_.Name } | ForEach-Object { try { Clear-Variable -Name "$($_.Name)" -Force -ErrorAction SilentlyContinue -WarningAction SilentlyContinue Remove-Variable -Name "$($_.Name)" -Force -Scope "global" -ErrorAction SilentlyContinue -WarningAction SilentlyContinue Remove-Variable -Name...
