I am just getting started in Powershell scripting. I have experience in VB and am aware of the importance of "cleaning up" object variables (set objVar = Nothing) when I'm done with them to free up system memory.
My question is, do I need to do the same thing in my Powershell scripts?
For instance, for a line like:
$conn = new-object ('System.Data.SqlClient.SqlConnection')
At some point later should I "Remove-variable" this?
If so, do I only need to do this for object variables?
P.S. I can't believe EE doesn't have a "Powershell" zone. It's still called "MSH/Monad" here. They need to fix that.