Search code examples
powershellskype-for-business

How can I get the details (properties and/or methods) of object Microsoft.Rtc.Management.ADConnect.Schema.OCSADUser?


Some Camdlets for Skype for Business Online returns objects e.g. Get-CsOnlineUser returns Microsoft.Rtc.Management.ADConnect.Schema.OCSADUser but I haven’t found any place online where this object is described. Someone here knows how to get its documentation that describes its properties/methods?


Solution

  • You can use the Get-Member cmdlet to list the properties and methods of an object.

    For your purposes you would use it like so:

    Get-CsOnlineUser | Get-Member
    

    The console will then print out a list of properties and methods. Additionally you can get the overloads for a method by "running" the method without any given parameters like so:

    $x.Delete
    
    OverloadDefinitions
    -------------------
    void Delete()
    void Delete(bool recursive)