How to protect your PowerShell Functions

Tuesday, April 17, 2012

Creating functions in PowerShell is relatively a simple operation. You declare the function’s name and value, press the Enter key and you’re good to go. It is also very simple to override the function just by re-creating it; that’s all it takes, simple and easy. What if you need to prevent that from happening? You don’t want to allow someone or something from overriding your functions? PowerShell gives us the option to do that via a dynamic parameter. Dynamic parameters are cmdlet parameters that are added by a Windows PowerShell provider and are available only when...
one comment