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

    Sep 29, 2025 · Explains how to create objects in PowerShell. You can create objects in PowerShell and use the objects that you create in commands and scripts. There are many …

  2. New-Object Cheat Sheet - New-Object Command Line Guide

    Mar 1, 2025 · PowerShell’s New-Object cmdlet is a foundational tool for instantiating .NET objects directly within your scripts. This guide delves into the purpose of New-Object, outlines its key …

  3. PowerShell Tutorial => Creating a new object

    Creating an object is simple. Most objects you create will be custom objects in PowerShell, and the type to use for that is PSObject. PowerShell will also allow you to create any object you …

  4. Creating Custom Objects in PowerShell from Scratch

    Aug 31, 2012 · This function creates an entirely new object that pulls information from a variety of sources on a remote computer.

  5. Creating objects using New-Object in Powershell - Sean Lloyd

    Mar 26, 2021 · Since Powershell is an object-based scripting language, it is important to know how to create objects to store, modify and return information. The New-Object cmdlet simply …

  6. Custom Objects | PowerShell By Example

    Custom objects are a powerful feature of PowerShell and can be leveraged to make your function/commands even more suitable for advanced use cases. It is an easy way to create …

  7. PowerShell: When to use Add-Type and New-Object

    Aug 6, 2024 · In this blog post, I will discuss when you need to add classes with Add-Type and when you can provide classes with New-Object. I would say, let’s get started.

  8. Mastering PowerShell New-Object PSObject: A Swift Guide

    The `New-Object` cmdlet in PowerShell is used to create a new instance of a .NET object, and `PSObject` is commonly utilized to create a custom object that can hold various properties and …

  9. Creating a new object - Programming Books

    Creating an object is simple. Most objects you create will be custom objects in PowerShell, and the type to use for that is PSObject. PowerShell will also allow you to create any object you …

  10. New-Object PSObject vs. PSCustomObject - GitHub

    There’s often some confusion in regards to the differences between using New-Object PSObject and PSCustomObject, as well as how the two work. Either approach can be used to take a set …