Pages

Sunday, June 19, 2011

Powershell: Start-SPAssignment

Hey readers, today while I was researching powershell cmdlets for a deployment script that I was writing, I came across Start-SPAssignment. Basically it allows you to assign a variable to a list of objects and provides you the ability dispose of those objects at any time in the script. You can assign a list of objects, like your SPSite, SPWeb objects and dispose of them when you no longer need them.  Pretty cool...I see this being very useful in memory intensive powerhsell applications..

No comments:

Post a Comment