About 36,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. about_Functions - PowerShell | Microsoft Learn

    Jul 16, 2025 · If you don't use one of the keywords (begin, process, end, clean) in a function definition, PowerShell puts the statements in the end block. For more information about the …

  3. about_Functions_Advanced_Parameters - PowerShell | Microsoft …

    You can add parameters to the advanced functions that you write, and use parameter attributes and arguments to limit the parameter values that function users submit with the parameter.

  4. about_Function_Provider - PowerShell | Microsoft Learn

    Sep 29, 2025 · The PowerShell Function provider lets you get, add, change, clear, and delete the functions and filters in PowerShell. A function is a named block of code that performs an action.

  5. about_Functions_Advanced - PowerShell | Microsoft Learn

    Sep 29, 2025 · Advanced functions allow you create cmdlets that are written as a PowerShell function. Advanced functions make it easier to create cmdlets without having to write and …

  6. about_Built-in_Functions - PowerShell | Microsoft Learn

    Sep 29, 2025 · Long description PowerShell includes a set of functions that are loaded into every PowerShell session. These functions are similar to cmdlets but they're not included in any …

  7. about_Return - PowerShell | Microsoft Learn

    Sep 29, 2025 · When you return a collection from your script block or function, PowerShell automatically unrolls the members and passes them one at a time through the pipeline.

  8. about_Ref - PowerShell | Microsoft Learn

    Sep 29, 2025 · The primary purpose of [ref] is to enable passing PowerShell variables by reference to .NET method parameters marked as ref, out, or in. You can also define your own …

  9. Everything you wanted to know about ShouldProcess - PowerShell

    PowerShell functions have several features that greatly improve the way users interact with them. One important feature that is often overlooked is -WhatIf and -Confirm support and it's easy to …

  10. Everything you wanted to know about PSCustomObject - PowerShell

    Jun 20, 2024 · PSCustomObject is a great tool to add into your PowerShell tool belt. Let's start with the basics and work our way into the more advanced features. The idea behind using a …