General

SharePoint 2010: Powershell for deployment in large farm

param ($config) <################################################### # PS # ####################################################> ## Global params $NLB_CLASS=“MicrosoftNLB_Node” $NLB_NS=“root\MicrosoftNLB” $NLB_FileConfig = “c:\nlb.xml” # For testing purpose only ## ## Display Readable Status Node ## Params : (int) returnValue ## function DisplayNodeStatus($returnValue) { switch($returnValue) { 1000 {“ Success.”;break} 1001 {“ Cluster mode is already stopped/started, or traffic handling is already made.”;break} 1002 {“ Cluster mode stop or start operation interrupted connection draining process.”;break} 1003 {“ Cluster mode can not be started due to configuration problems on the target hosts.