locked
Find any class RRS feed

  • Question

  • running this command gives me many namespaces

    Get-CimInstance –Namespace root –ClassName __Namespace

    DEFAULT
    Cylance
    cimv2
    Cli
    Nap
    SECURITY
    SmsDm
    CCMVDI
    SecurityCenter2
    RSOP
    PEH
    ccm
    WMI
    directory
    Policy
    Interop
    ServiceModel
    SecurityCenter
    Microsoft
    aspnet

    It seems that Get-WMIObject pulls from \CIMV2.  what if I want to get -class information from WMI or RSOP?  how do you do that with PowerShell

    I tried running this command:    Get-CimInstance –Namespace root\cylance    and it is asking me for a Class Name.  How do I list all class names for Cylance?   

    Friday, September 8, 2017 5:31 PM

All replies

  • help get-wmiobject -full

    Get-WmiObject -list __NameSpace -Recurse -Namespace root|select -expand __Namespace


    \_(ツ)_/

    Friday, September 8, 2017 5:46 PM
  • Hi Bellmonster

    you could use 

    Get-CimClass * 
    NameSpace: ROOT/Cylance

    or you can just use just press tab after class and it will go through the diffrent classes. 

    Get-CimInstance -Namespace ROOT/Cylance -ClassName 


    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.



    Friday, September 8, 2017 5:49 PM
  • Get-CimClass -class * -Namespace root |
        select select -ExpandProperty CimSystemProperties|
        Select ClassName, Namespace


    \_(ツ)_/


    • Edited by jrv Friday, September 8, 2017 5:53 PM
    Friday, September 8, 2017 5:52 PM
  • Get-WmiObject -list * -Namespace root -rec | 
         select __class, __Namespace


    \_(ツ)_/

    Friday, September 8, 2017 5:54 PM
  • Find a class and its namespace

    Get-WmiObject -list Win32_BIOS -ns root -rec | select __class,__namespace


    \_(ツ)_/

    Friday, September 8, 2017 5:57 PM