Most Valued User SvenS Posted April 6, 2017 Most Valued User #1 Share Posted April 6, 2017 Hallo, ich versuche gerade eine Telefonbuchdatei für das DECT500 zu erstellen mit Hilfe von Powershell. Prinzipiell funktioniert das auch, aber ich habe immer die BuiltIn-User wie z.B. MEM und alle Gruppen in der csv-Datei enthalten. Gibt es eine Möglichkeit diese beim Export auszuklammen ? Mit folgendem Befehl exportiere ich die Datei. import-module ippbx connect-ippbx Get-IpPbxPhonebookEntry -All | Export-IpPbxPhonebook -Path \\TESTSWYX\Directory\phonebook.csv Den -All Parameter verwende ich um die User und das Globale Telefonbuch zu bekommen. Gruß Sven Link to comment Share on other sites More sharing options...
Most Valued User Sebastian Dreier Posted April 6, 2017 Most Valued User #2 Share Posted April 6, 2017 Hallo Sven, eine Filterung vor dem Export ist leicht möglich wie das folgende Beispiel zeigt: Get-IpPbxPhonebookEntry -All | ForEach-Object { # Remove all groups if ($_.EntityID.m_eQualifiedEntityType.ToString() -eq "Group") { return } # Remove MEM user if ($_.Name -eq "MobileExtensionManager") { return } # Output to pipe $_ } | Export-IpPbxPhonebook -Path phonebook.csv Kind regards Sebastian Dreier Link to comment Share on other sites More sharing options...
Most Valued User SvenS Posted April 7, 2017 Author Most Valued User #3 Share Posted April 7, 2017 Danke funktioniert super. Schönes Wochenende Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.