Jump to content

IpPbxUser with FeatureProfile


iulian
 Share


Recommended Posts

Hello,

i'm trying to obtain a report with users in powershell. Get-IpPbxUser cmd works fine but i need besides UserID, Name, EmailAddresses, InternalNumbers and PublicNumbers, a new column with FeatureProfile(advanced, minimal, standard, etc) for each user. Is it possible with powershell?

i've tried to add a new NoteProperty to get-ippbxuser, $user = get-ippbxuser | ForEach-Object { Add-Member -MemberType Property -Name "FeatureProfile" -InputObject $_ -Value($feature.GetFeatureProfileEnum($_.UserID)) -PassThru }, but i recieve an error 

Es ist nicht möglich, eine Methode für einen Ausdruck aufzurufen, der den NULL hat.

I'am trying to add this NoteProperty, so that i can call the FeatureProfile values with get-ippbx cmd.

Thanks in advance!

Iulian

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.