Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:34:36+00:00 2026-06-18T05:34:36+00:00

I am using PowerShell 2.0 and trying to get the possible methods from Win32_ShadowCopy.

  • 0

I am using PowerShell 2.0 and trying to get the possible methods from Win32_ShadowCopy.

Now, when I use Get-WmiObject -list Win32_ShadowCopy | Get-Member I get:

   TypeName: System.Management.ManagementClass#ROOT\cimv2\Win32_ShadowCopy

Name                MemberType    Definition
----                ----------    ----------
Name                AliasProperty Name = __Class
Create              Method        System.Management.ManagementBaseObject Cre...
...

But if I use Get-WmiObject Win32_ShadowCopy | Get-Member i get:

   TypeName: System.Management.ManagementObject#root\cimv2\Win32_ShadowCopy

Name                MemberType   Definition
----                ----------   ----------
Revert              Method       System.Management.ManagementBaseObject Reve...
Caption             Property     System.String Caption {get;set;}
...

Now I don’t understand. Why do I get 2 seemingly different classes? I expect the same result with both commands. I can find what -list does in the documentation, but not what the default behavior is without the -list switch. Anyone care to clarify?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:34:37+00:00Added an answer on June 18, 2026 at 5:34 am

    This is from get-help about list.

    -List []
    Specifies whether to retrieve and display the names of the WMI classes
    in the WMI repository namespace that is specified in the Namespace para
    meter. The Default Namespace registry entry in the HKEY_LOCAL_MACHINE\
    SOFTWARE\Microsoft\WBEM\Scripting registry key is not used by this cmdl
    et to determine the default namespace. If you specify the List paramete
    r but not the Namespace parameter, the root\CIMV2 namespace is used by
    default.

    Required?                    false
    Position?                    named
    Default value
    Accept pipeline input?       false
    Accept wildcard characters?  false
    

    for your script

    Get-WmiObject -list Win32_ShadowCopy
    

    equals:

    Get-WmiObject -list -class Win32_ShadowCopy
    

    which means you’re listing classes with name Win32_ShadowCopy.

    And the

    Get-WmiObject Win32_ShadowCopy
    

    equals:

    Get-WmiObject -Class Win32_ShadowCopy
    

    which returns the objects of the specified class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get the ipaddress from a hostname using Powershell, but I
I am trying to download a file using PowerShell 3.0 from my TeamCity build
I'm trying to grab out some information from Active Directory using Powershell, but I
I'm trying to run an MSI install command from Powershell by using a cmd
I'm trying to run a program from PowerShell, wait for the exit, then get
I am trying to create a new web application using PowerShell. I keep getting
I am trying to run a PS1 script using Exchange 2010 remote powershell and
Trying to execute powershell script in my C# code. Using .NET Framework v. 4.0.30319
I'm using PowerShell v1.0 (It is a requirement that I cannot use 2.0) and
I'm using powershell script to run a few *.sql file. I can get the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.