Jump to content
Manny

Tastenbelegung vom Template auf alle User anwenden

Recommended Posts

Hallo zusammen,

ich versuche mit meinen rudimentären PS Kenntnissen die Tastaturbelegungen von einem Benutzer auf alle anzuwenen.

Vielleicht kann mir ja jemand unter die arme greifen ?

 

$user = "HansWurst"
$userDataTemplate = (Get-IpPbxUser -Name $user | Get-IpPbxUserData)
$userData = $userDataTemplate.m_PhoneSettings | Where-Object { $_.PhoneType -eq "OpenStage 40" -or $_.PhoneType -eq "OpenStage 60"}
Set-IpPbxUserData -UserEntry "$user" -UserData $userData 

 

Fehlermeldung:

PS C:\Users\Administrator.SCHNEIDER-DC> Set-IpPbxUserData -UserEntry "$user" -UserData $userData
Set-IpPbxUserData : Die Argumenttransformation für den Parameter "UserData" kann nicht verarbeitet werden. Der
Wert "System.Object[]" vom Typ "System.Object[]" kann nicht in den Typ "IpPbxBLOB.UserSettings" konvertiert
werden.
In Zeile:1 Zeichen:48
+ Set-IpPbxUserData -UserEntry "$user" -UserData $userData
+                                                ~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Set-IpPbxUserData], ParameterBindingArgumentTransformationExcepti
   on
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-IpPbxUserData

 

 

Mit freundlichen Grüßen

Manny

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.