Highlight a phrase and click this icon to search it on Swyx-Forum    Highlight a phrase and click this icon to search it within the Swyx Knowledgebase    Highlight a phrase and click this icon to search it using Goolge    Highlight a phrase and click this icon to search it using Wikipedia

Highlight a phrase and click this icon to search it on Swyx-Forum    Highlight a phrase and click this icon to search it within the Swyx Knowledgebase    Highlight a phrase and click this icon to search it using Goolge    Highlight a phrase and click this icon to search it using Wikipedia

Forum

Bookmark and Share

Forum

Bookmark and Share

 
  Forums  Project - IpPbx...  Using IpPbx Pow...  Leitungstaste importieren
Previous Previous
 
Next Next
New Post 1/30/2012 10:43 AM
Unresolved
User is offline SvenW
2 posts
10th Level Poster


Leitungstaste importieren  (Germany)
Modified By SvenW  on 1/30/2012 12:50:14 PM)

Hallo zusammen,

versuche einmal mein Problem zu erklären:

Wir haben jedem Benutzer aktuell bis zu 29 Leitungstasten zugeordnet. Die Einrichtung eines Benutzers nimmt so etwa 20 Minuten in Anspruch. Änderungen der Reihenfolge sind ähnlich aufwendig.

Ist es möglich per Powershell die Leitungstasten eines anderen Users zu importieren?

Wenn dies nicht der Fall sein sollte, hat jemand eine Idee wie ich dies sonst lösen könnte?

Bin noch relativ neu im Umgang mit der Powershell, hoffe dennoch das Ihr mir bei diesem problem weiter helfen könnt :-)

Gruß

Sven

 
New Post 1/30/2012 5:16 PM
User is offline Chris
114 posts
4th Level Poster


Re: Leitungstaste importieren  (Germany)

Versuch mal folgendes, "benutzername spezifiziert den Benutzer von dem Kopiert wird. "Script-Gruppe" ist eine Swyx-Gruppe mit allen Usern denen du die Namenstaste setzen möchtest: Bitte beachte, dass ich keine Rücksicht auf vorhandene Einträge nehme, alle einträge werden angehängt.  Das Script ist ungetestet:

Import-Module IpPbx
Connect-IpPbx -ServerName SERVER
$ReferenzUser = Get-IpPbxUser -Name "benutzername"
$ReferenzUserData = Get-IpPbxUserData -User $ReferenzUser
$ReferenzUserDataSpeedDials = Get-IpPbxSpeedDialKey -UserData $ReferenzUserData
Get-IpPbxGroupMember -GroupName "Script-Gruppe" | ForEach-Object {$u = Get-IpPbxUser -ID $_.UserID$u.Name$ud = Get-IpPbxUserData -User $uforeach ($SpeedDial in $ReferenzUserDataSpeedDials) {Set-IpPbxSpeedDialKey -UserData $ud -SpeedDialKey $SpeedDial	}Set-IpPbxUserData -User $u -UserData $ud
}

 
New Post 1/31/2012 8:40 AM
User is offline SvenW
2 posts
10th Level Poster


Re: Leitungstaste importieren  (Germany)
Modified By SvenW  on 1/31/2012 9:42:24 AM)

Guten Morgen

erstmal vielen Dank für die Mühe :-)

Leider funktioniert das noch nicht so ganz, ich bekomme folgende Meldung:

Unerwartetes Token "in" im Ausdruck oder in der Anweisung.
Bei Zeile:1 Zeichen:160
+ Get-IpPbxGroupMember -GroupName "Testgruppe" | ForEach-Object {$u = Get-IpPbxUser -ID $_.UserID $u.Name $ud = Get-IpP
bxUserData -User $u foreach ($SpeedDial in <<<<  $ReferenzUserDataSpeedDials) {Set-IpPbxSpeedDialKey -UserData $ud -Spe
edDialKey $SpeedDial  } Set-IpPbxUserData -User $u -UserData $ud
    + CategoryInfo          : ParserError: (in:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

Weiterhin ist mir aufgefallen das in dem Code von SpeedDialKey die Rede ist, das sind die Namenstasten, oder?

Kann ich dies einfach durch LineKeySettings ersetzen, da ich ja die Leitungstasten brauche.

Gruß

Sven

 
New Post 1/31/2012 11:56 AM
User is offline Chris
114 posts
4th Level Poster


Re: Leitungstaste importieren  (Germany)

bzgl des "in" hab ich mich vertan, müsste dann mit forEach-Object gehen, passe ich aber erstmal nicht an weil du recht hast - es handelt isch um die namenstasten.

Ich bin von Namenstasten ausgegangen, weil ich nicht mit 20 Leitungstasten gerechnet habe....

wozu benutzt du so viele leitungstasten wenn ich fragen darf?

 
New Post 2/2/2012 10:56 AM
User is offline Chris
114 posts
4th Level Poster


Re: Leitungstaste importieren  (Germany)
Import-Module IpPbx
Connect-IpPbx -ServerName 192.168.100.50
$r_u = Get-IpPbxUser -Name "C. Goebel 122"
$r_ud = Get-IpPbxUserData -User $r_u
Get-IpPbxGroupMember -GroupName "Test" | ForEach-Object {$c_u = Get-IpPbxUser -ID $_.UserID$c_ud = Get-IpPbxUserData -User $c_u$c_ud.m_LineKeySettings = $r_ud.m_LineKeySettingsSet-IpPbxUserData -User $c_u -UserData $c_ud
}

bitte beachte, das dies nur funktioniert, wenn ensprende leitungseinstellungen auch auf für den User verfügbar sind. dh das der Benutzer mitglied in den entsprechenden Gruppen ist und ggf die gleichen alternativen Rufnummern konfiguriert hat.
Auch durchwahlen eines Users werden nicht berücksichtigt.

 
Previous Previous
 
Next Next
  Forums  Project - IpPbx...  Using IpPbx Pow...  Leitungstaste importieren

 

 

 

Forum Policy

The discussion forums at Swyx Forum are dedicated to the discussion of Swyx, SwyxWare and related topics.

For the benefit of the community and to protect the integrity of swyx-form, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial products and non-commercial products which are not directly related to SwyxWare, it's OEM versions.
  2. No Flaming or Trolling.
  3. No Profanity, Racism, or Prejudice.
  4. Furthermore, make sure your posts comply to our Terms of Use.
  5. Newest development in German law defines online forums as journalistic content, making the forum owner and all posters to journalists. With this statement the forum owner declares that neither he nor his users are journalists with all legal consequences.
  6. The German Jugendmedienschutz-Staatsvertrag (JMStV) (Protection of Minors) defines a disclosure of online medias which are not suitable for minors below the age of 18. The Swyx Forum webseite does not provide any such content and underlies therefore not this disclosure. Please see further details including the responsible person for the protection of minors and direct contact data in the Imprint.
  7. The forums are currently unmoderated, meaning all postings will appear immediately after submission. If this turns out not working due to massive abuse all forums will switch to moderated mode, meaning a posting must be approved after submission my a moderator before appearing.
  8. You can use any language you like (except for the project forums) but keep in mind that by using english you will reach the largest audience.
  9. Within the project forums english language is mandatory.

 

Forum Policy

The discussion forums at Swyx Forum are dedicated to the discussion of Swyx, SwyxWare and related topics.

For the benefit of the community and to protect the integrity of swyx-form, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial products and non-commercial products which are not directly related to SwyxWare, it's OEM versions.
  2. No Flaming or Trolling.
  3. No Profanity, Racism, or Prejudice.
  4. Furthermore, make sure your posts comply to our Terms of Use.
  5. Newest development in German law defines online forums as journalistic content, making the forum owner and all posters to journalists. With this statement the forum owner declares that neither he nor his users are journalists with all legal consequences.
  6. The German Jugendmedienschutz-Staatsvertrag (JMStV) (Protection of Minors) defines a disclosure of online medias which are not suitable for minors below the age of 18. The Swyx Forum webseite does not provide any such content and underlies therefore not this disclosure. Please see further details including the responsible person for the protection of minors and direct contact data in the Imprint.
  7. The forums are currently unmoderated, meaning all postings will appear immediately after submission. If this turns out not working due to massive abuse all forums will switch to moderated mode, meaning a posting must be approved after submission my a moderator before appearing.
  8. You can use any language you like (except for the project forums) but keep in mind that by using english you will reach the largest audience.
  9. Within the project forums english language is mandatory.

 

Forum Help

Stay up-to-date
Forum Icons
Image Usage
Report Abuse

 

The default language in the forums is english, but feel free to use your mother tongue. Just keep in mind that by using english you will reach the largest audience.

Stay up-to-date
Forum Icons
Image Usage
Report Abuse

 

The default language in the forums is english, but feel free to use your mother tongue. Just keep in mind that by using english you will reach the largest audience.

Sponsors