About 571,000 results
Open links in new tab
  1. Functions - PowerShell | Microsoft Learn

    Jan 23, 2025 · Learn how to create reusable PowerShell functions, implement best practices, and avoid common pitfalls in function design, error handling, and parameter validation.

  2. How to create a PowerShell Function - LazyAdmin

    Mar 22, 2024 · Learn how to create your own PowerShell function, use parameters, return values and make advanced functions

  3. PowerShell Functions: Return Values and Multiple Values

    Jun 30, 2024 · In this PowerShell tutorial, I have explained the PowerShell function with return values and shown some examples of PowerShell functions that take parameters and return …

  4. The PowerShell function – Parameters, data types, return values

    Feb 12, 2015 · Functions in PowerShell allow you to combine multiple statements and improve the reusability of your code. In this post, you will learn how to scope functions, define …

  5. Mastering PowerShell Functions: A Step-by-Step Guide - ATA …

    Jan 31, 2021 · In this tutorial, you’ll learn to write functions, add and manage your functions’ parameters, and set up functions to accept pipeline input. But first, let’s look at a bit of …

  6. PowerShell Functions [Create and Use Functions] - SPGuides

    May 5, 2025 · In this tutorial, I will explain how to work with PowerShell functions with examples. What is a PowerShell Function? A PowerShell function is a named block of code that performs …

  7. Powershell Functions

    Functions With a Return Value Sometimes you want your function to return a value back to where the call was made. This is possible by using the return statement. When using the return …

  8. Use PowerShell Functions to Quickly Simplify Your Scripts

    Apr 17, 2023 · PowerShell functions are very useful for three main reasons: reusability, modularization, and abstraction. Functions allow you to encapsulate a specific piece of code …

  9. Functions | PowerShell By Example

    Functions are not required in PowerShell, but when your code becomes repetitive you should consider using functions. Also when creating PowerShell modules you should really consider …

  10. PowerShell Functions: Creating, Calling, and Returning

    Here is an example of a function that returns a value: In this example, we created a function called Add-Numbers that takes two parameters, Number1 and Number2, both of which are …

Refresh