Showing posts with label COM. Show all posts
Showing posts with label COM. Show all posts

29 December 2016

Dispose COM objects as it can cause memory leaks

# dispose COM objects as it can cause memory leaks
[System.Runtime.Interopservices.Marshal]::ReleaseComObject($VariableName) | Out-Null