Warning: Declaration of WPSDAdminConfigAction::render() should be compatible with WPSDWPPlugin::render($ug_name, $ug_vars = Array, $action = NULL) in /var/www/web680/html/wp-content/plugins/wp-stats-dashboard/classes/action/WPSDAdminConfigAction.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web680/html/wp-content/plugins/wp-stats-dashboard/classes/action/WPSDAdminConfigAction.php:42) in /var/www/web680/html/wp-includes/rest-api/class-wp-rest-server.php on line 1719

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web680/html/wp-content/plugins/wp-stats-dashboard/classes/action/WPSDAdminConfigAction.php:42) in /var/www/web680/html/wp-includes/rest-api/class-wp-rest-server.php on line 1719

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web680/html/wp-content/plugins/wp-stats-dashboard/classes/action/WPSDAdminConfigAction.php:42) in /var/www/web680/html/wp-includes/rest-api/class-wp-rest-server.php on line 1719

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web680/html/wp-content/plugins/wp-stats-dashboard/classes/action/WPSDAdminConfigAction.php:42) in /var/www/web680/html/wp-includes/rest-api/class-wp-rest-server.php on line 1719

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web680/html/wp-content/plugins/wp-stats-dashboard/classes/action/WPSDAdminConfigAction.php:42) in /var/www/web680/html/wp-includes/rest-api/class-wp-rest-server.php on line 1719

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web680/html/wp-content/plugins/wp-stats-dashboard/classes/action/WPSDAdminConfigAction.php:42) in /var/www/web680/html/wp-includes/rest-api/class-wp-rest-server.php on line 1719

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web680/html/wp-content/plugins/wp-stats-dashboard/classes/action/WPSDAdminConfigAction.php:42) in /var/www/web680/html/wp-includes/rest-api/class-wp-rest-server.php on line 1719

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web680/html/wp-content/plugins/wp-stats-dashboard/classes/action/WPSDAdminConfigAction.php:42) in /var/www/web680/html/wp-includes/rest-api/class-wp-rest-server.php on line 1719
{"id":3227,"date":"2018-11-29T15:36:06","date_gmt":"2018-11-29T13:36:06","guid":{"rendered":"http:\/\/securitynetwork.de\/?p=3227"},"modified":"2018-11-29T15:36:06","modified_gmt":"2018-11-29T13:36:06","slug":"remove-delegate-from-sql-database","status":"publish","type":"post","link":"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/","title":{"rendered":"Remove Delegate from SQL Database"},"content":{"rendered":"

Remove all Delegate from Skype SQL Database „RTCLocal“<\/p>\n

We know that we have sometimes Problem with Delegates, we can\u00b4t read \/ Change \/ remove with sefautil.exe.<\/p>\n

I create a Script for this issue, this is very helpful<\/p>\n

If you have more delegate under „Manage Calls from:“ and no other Chance to remove it, you can use this small script.<\/p>\n

 <\/p>\n

Example: Get-SFBDelegate -DelegatorSip test1@contoso.com -DelegateSIP Test2@contoso.com<\/p>\n

\"SFBDelegate\"<\/p>\n

<\/p>\n


\nfunction Get-SfBDelegate {
\nParam([Parameter(Mandatory=$True,Position=0)][string]$delegateSIP,
\n[Parameter(Mandatory=$True,Position=1)][string]$delegatorSIP)<\/code><\/p>\n

$SFBPools = Get-CsService | sort identity |select identity
\n$table =@()
\nforeach ($SFBPool in $SFBPools.identity)
\n{
\n$split = $SFBPool.Split(„:“)
\n$table += @{‚Function‘ = $split[0];’FQDN’=$split[1]}
\n}
\n$out = $table.ForEach({[PSCustomObject]$}) | ?{$<\/em>.Function -match „registrar“} | Group-Object -Property Function<\/p>\n

$menu = @{}
\n$Fqdn = ($out.group | ?{$_.FQDN -match „pool“} | select fqdn -Unique).FQDN
\nif ($fqdn.Count -gt „1“){
\nfor ($i=1;$i -le $FQDN.count; $i++) {
\nWrite-Host “ $i. $($FQDN[$i-1])“
\n$menu.Add($i,($FQDN[$i]))
\n}
\n}
\nelse{
\nfor ($i=1;$i -le $FQDN.count; $i++) {
\nWrite-Host “ $i. $($FQDN)“
\n$menu.Add($i,($FQDN[$i]))
\n}
\n}
\n[int]$ans = Read-Host ‚Enter selection‘
\n$selection = $menu.Item($ans)
\n$servers = (Get-CsComputer -Pool $selection).identity<\/p>\n

###################################################################
\n#$Servers = (Get-CsComputer | Where-Object -Property Pool -Match $pool | Select-Object identity).identity<\/p>\n

$array =@()<\/p>\n

foreach ($server in $Servers){<\/p>\n

$DelegateQuery = „Select * From rtc.dbo.Resource Where UserAtHost='$delegateSIP<\/code>‚“
\n$DelegateResult= (Invoke-Sqlcmd -ServerInstance $Server\\rtclocal -Query $DelegateQuery)
\n$DelegatorQuery= „Select * From rtc.dbo.Resource Where UserAtHost='$delegatorSIP<\/code>‚“
\n$DelegatorResult= (Invoke-Sqlcmd -ServerInstance $Server\\rtclocal -Query $DelegatorQuery)<\/p>\n

$resourceID = $DelegatorResult.ResourceId
\n$DelegationQuery = „select * From [rtc].[dbo].[Delegate] Where DelegatorId = '$resourceID<\/code>‚“
\n$DelegationResult =(Invoke-Sqlcmd -ServerInstance $Server\\rtclocal -Query $DelegationQuery)<\/p>\n

foreach ($Delegation in $DelegationResult){
\n$search = $Delegation.DelegateId
\n$SQLscript = „select * From rtc.dbo.Resource where ResourceId = '$search<\/code>‚“
\n$return= (Invoke-Sqlcmd -ServerInstance $Server\\rtclocal -Query $SQLscript)<\/p>\n

if ($DelegateResult.ResourceId -notmatch $search){$toRemove = „yes“} else {$toRemove = „no“}<\/p>\n

$Subscribs = New-Object psobject -Property @{DelegatorId = $Delegation.DelegatorId;
\nDelegatorSIP =$DelegatorResult.UserAtHost;
\nDelegateId = $Delegation.DelegateId;
\nDelegateSIP =$return.UserAtHost;
\nFrontendServer = $server;
\ntoRemove = $toRemove}
\n$array += $Subscribs
\n}
\n}<\/p>\n

($Global:array = $array)| sort toRemove | ft -a Delegator*, Delegate*, Front*, to*<\/p>\n

if (!([string]::IsNullOrEmpty($Global:array))){<\/p>\n

$n = „n“
\n$n = Read-Host -Prompt „Do you like to remove all with property toRemove = yes? Press y = yes, n = no“<\/p>\n

if ($n -eq ‚y‘){
\nforeach ($arr in $array){
\nif ($arr -match „yes“) {
\n$removeDelegator = $arr.DelegatorId
\n$removeDelegate = $arr.DelegateId
\n$DeleteQuery =“Delete From [rtc].[dbo].[PromptedSubscriber] Where PublisherId = '$removeDelegator<\/code>‚ AND SubscriberId = '$removeDelegate<\/code>‚
\nDelete From [rtc].[dbo].[Delegate] Where DelegatorId = '$removeDelegator<\/code>‚AND DelegateId = '$removeDelegate<\/code>‚“<\/p>\n

$server = $arr.FrontendServer+“\\rtclocal“
\nInvoke-Sqlcmd -ServerInstance $server -Query $DeleteQuery -ErrorAction SilentlyContinue
\nWrite-Output „DELETED !!“
\n$arr | ft -a
\n}<\/p>\n

$SubscriberId | ft -a
\n}
\n}
\n}
\nelse {Write-Host „we dont found Entrys for the delegator: $delegatorSIP and delegate: $delegateSIP „}<\/p>\n

}# Remove Delegator in SQL DATABASE end<\/p>\n","protected":false},"excerpt":{"rendered":"

Remove all Delegate from Skype SQL Database „RTCLocal“ We know that we have sometimes Problem with Delegates, we can\u00b4t read \/ Change \/ remove with sefautil.exe. I create a Script for this issue, this is very helpful If you have more delegate under „Manage Calls from:“ and no other Chance to remove it, you can […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[2],"tags":[50,47,48,51,34,30,49],"yoast_head":"\nRemove Delegate from SQL Database -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Remove Delegate from SQL Database -\" \/>\n<meta property=\"og:description\" content=\"Remove all Delegate from Skype SQL Database „RTCLocal“ We know that we have sometimes Problem with Delegates, we can\u00b4t read \/ Change \/ remove with sefautil.exe. I create a Script for this issue, this is very helpful If you have more delegate under „Manage Calls from:“ and no other Chance to remove it, you can […]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-29T13:36:06+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/securitynetwork.de\/wp-content\/uploads\/sites\/6\/2018\/11\/SFBDelegate-2.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stefan Planer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/securitynetwork.de\/#website\",\"url\":\"http:\/\/securitynetwork.de\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/securitynetwork.de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/securitynetwork.de\/wp-content\/uploads\/sites\/6\/2018\/11\/SFBDelegate-2.jpg?fit=842%2C230\",\"contentUrl\":\"https:\/\/i0.wp.com\/securitynetwork.de\/wp-content\/uploads\/sites\/6\/2018\/11\/SFBDelegate-2.jpg?fit=842%2C230\",\"width\":842,\"height\":230},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#webpage\",\"url\":\"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/\",\"name\":\"Remove Delegate from SQL Database -\",\"isPartOf\":{\"@id\":\"http:\/\/securitynetwork.de\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#primaryimage\"},\"datePublished\":\"2018-11-29T13:36:06+00:00\",\"dateModified\":\"2018-11-29T13:36:06+00:00\",\"author\":{\"@id\":\"http:\/\/securitynetwork.de\/#\/schema\/person\/0e3d05729c96d02f5efa6ebf24bcbcdb\"},\"breadcrumb\":{\"@id\":\"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"http:\/\/securitynetwork.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Remove Delegate from SQL Database\"}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/securitynetwork.de\/#\/schema\/person\/0e3d05729c96d02f5efa6ebf24bcbcdb\",\"name\":\"Stefan Planer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"http:\/\/securitynetwork.de\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/0cc85541e881f4098c39526919d21872?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/0cc85541e881f4098c39526919d21872?s=96&d=mm&r=g\",\"caption\":\"Stefan Planer\"},\"url\":\"http:\/\/securitynetwork.de\/blog\/author\/web680\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Remove Delegate from SQL Database -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/","og_locale":"de_DE","og_type":"article","og_title":"Remove Delegate from SQL Database -","og_description":"Remove all Delegate from Skype SQL Database „RTCLocal“ We know that we have sometimes Problem with Delegates, we can\u00b4t read \/ Change \/ remove with sefautil.exe. I create a Script for this issue, this is very helpful If you have more delegate under „Manage Calls from:“ and no other Chance to remove it, you can […]","og_url":"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/","article_published_time":"2018-11-29T13:36:06+00:00","og_image":[{"url":"http:\/\/securitynetwork.de\/wp-content\/uploads\/sites\/6\/2018\/11\/SFBDelegate-2.jpg"}],"twitter_card":"summary","twitter_misc":{"Verfasst von":"Stefan Planer","Gesch\u00e4tzte Lesezeit":"2 Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/securitynetwork.de\/#website","url":"http:\/\/securitynetwork.de\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/securitynetwork.de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"ImageObject","inLanguage":"de","@id":"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#primaryimage","url":"https:\/\/i0.wp.com\/securitynetwork.de\/wp-content\/uploads\/sites\/6\/2018\/11\/SFBDelegate-2.jpg?fit=842%2C230","contentUrl":"https:\/\/i0.wp.com\/securitynetwork.de\/wp-content\/uploads\/sites\/6\/2018\/11\/SFBDelegate-2.jpg?fit=842%2C230","width":842,"height":230},{"@type":"WebPage","@id":"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#webpage","url":"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/","name":"Remove Delegate from SQL Database -","isPartOf":{"@id":"http:\/\/securitynetwork.de\/#website"},"primaryImageOfPage":{"@id":"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#primaryimage"},"datePublished":"2018-11-29T13:36:06+00:00","dateModified":"2018-11-29T13:36:06+00:00","author":{"@id":"http:\/\/securitynetwork.de\/#\/schema\/person\/0e3d05729c96d02f5efa6ebf24bcbcdb"},"breadcrumb":{"@id":"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/securitynetwork.de\/blog\/2018\/11\/29\/remove-delegate-from-sql-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"http:\/\/securitynetwork.de\/"},{"@type":"ListItem","position":2,"name":"Remove Delegate from SQL Database"}]},{"@type":"Person","@id":"http:\/\/securitynetwork.de\/#\/schema\/person\/0e3d05729c96d02f5efa6ebf24bcbcdb","name":"Stefan Planer","image":{"@type":"ImageObject","inLanguage":"de","@id":"http:\/\/securitynetwork.de\/#\/schema\/person\/image\/","url":"http:\/\/0.gravatar.com\/avatar\/0cc85541e881f4098c39526919d21872?s=96&d=mm&r=g","contentUrl":"http:\/\/0.gravatar.com\/avatar\/0cc85541e881f4098c39526919d21872?s=96&d=mm&r=g","caption":"Stefan Planer"},"url":"http:\/\/securitynetwork.de\/blog\/author\/web680\/"}]}},"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5cZKo-Q3","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":219,"url":"http:\/\/securitynetwork.de\/blog\/2013\/11\/21\/219\/","url_meta":{"origin":3227,"position":0},"title":"Lync Powershell auf lokalen Computer\/Server \u00f6ffnen!","date":"2013\/11\/21","format":false,"excerpt":"Wenn du ein Script haben m\u00f6chtest was dich remote auf deine Lync Server mit der Powershell verbindet dann ist dies eins f\u00fcr dich!\u00a0 hier kannst Du alle Lync Server eintragen, mit den Du Dich verbinden m\u00f6chtest. \u00a0 #So kannst du mit Credentials in einem PS-Script arbeiten. Achtung das PW wird\u2026","rel":"","context":"In "Script"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1598,"url":"http:\/\/securitynetwork.de\/blog\/2014\/10\/14\/check-your-lync-environment\/","url_meta":{"origin":3227,"position":1},"title":"check your Lync environment","date":"2014\/10\/14","format":false,"excerpt":"Heute habe ich mal ein neues Modul f\u00fcr euch erstellt. Damit k\u00f6nnt ihr eure Lync Umgebung Testen! \u00a0Im ersten Teil des Scriptes m\u00fcsst ihr die Variable eintragen ######################################################################################### # Set Credential and Variable $Global:UserName1 =\"TestUser1\"\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 # TestUser1 SamAccountName $Global:UserName2 =\"TestUser2\"\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 # TestUser2\u2026","rel":"","context":"In "Script"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3060,"url":"http:\/\/securitynetwork.de\/blog\/2015\/04\/04\/remote-call-control-mit-skype-for-business\/","url_meta":{"origin":3227,"position":2},"title":"Remote Call Control mit Skype for Business","date":"2015\/04\/04","format":false,"excerpt":"Remote Call Control mit Skype for Business Client Nach der Installation f\u00e4llt auf dass der Skype for Business Client das Branding von Skype hat. Eine Funktion die in diesem Skype Branding wegf\u00e4llt ist \"RemoteCallControl\". Es ist dennoch m\u00f6glich mit Skype for Business \"Remote Call Control\" zu betreiben. Dazu muss in\u2026","rel":"","context":"In "Allgemein"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/securitynetwork.de\/wp-json\/wp\/v2\/posts\/3227"}],"collection":[{"href":"http:\/\/securitynetwork.de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/securitynetwork.de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/securitynetwork.de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/securitynetwork.de\/wp-json\/wp\/v2\/comments?post=3227"}],"version-history":[{"count":0,"href":"http:\/\/securitynetwork.de\/wp-json\/wp\/v2\/posts\/3227\/revisions"}],"wp:attachment":[{"href":"http:\/\/securitynetwork.de\/wp-json\/wp\/v2\/media?parent=3227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/securitynetwork.de\/wp-json\/wp\/v2\/categories?post=3227"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/securitynetwork.de\/wp-json\/wp\/v2\/tags?post=3227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}