Powershell scripts for Sharepoint 2010
use e. g. following code in Execute(...) method
int i=0
int loginsCount = logins.Count;
foreach(... in logins)
{
...
i++;
int progress = Convert.ToInt32(Math.Ceiling((double)i / (double)loginsCount * 100));
this.UpdateProgress(progress);
}
© 2012 All rights reserved.