Powershell – Pass Value By Reference

Background Wanted to provide a quick example on how to pass by Reference in Powershell. Outline Function Function Definition Parameter Block Type is Ref ( System.Management.Automation.PSReference ) Function Module To change the value of the parameter Reference the value property Example => var.value Calling Module Cast the variable as a ref Example => ( [ref]¬† … Continue reading Powershell – Pass Value By Reference