{"id":355,"date":"2015-11-04T10:32:47","date_gmt":"2015-11-04T09:32:47","guid":{"rendered":"http:\/\/www.michael.tassati.at\/?p=355"},"modified":"2015-11-04T10:32:47","modified_gmt":"2015-11-04T09:32:47","slug":"kalenderberechtigungen-fuer-eine-gruppe-anzeigen","status":"publish","type":"post","link":"https:\/\/www.michael.tassati.at\/?p=355","title":{"rendered":"Kalenderberechtigungen f\u00fcr eine Gruppe anzeigen"},"content":{"rendered":"<p>$groupmembers = Get-ADGroupMember -Identity Groupname<br \/>\n$result=@()<br \/>\nForeach ($member in $groupmembers){<br \/>\n$user = get-aduser $member.samaccountname -Properties *<br \/>\n$sam = $member.samaccountname<br \/>\n$email = $user.EmailAddress<br \/>\n$name = $user.DisplayName<br \/>\n$right = Get-MailboxFolderPermission $email&#8220;:\\Kalender&#8220; -User Default -ErrorAction SilentlyContinue | select AccessRights<br \/>\nif ($right -eq $null){$right =\u00a0 Get-MailboxFolderPermission $email&#8220;:\\Calendar&#8220; -User Default -ErrorAction SilentlyContinue | select AccessRights}<br \/>\nif ($right -eq $null){$right = &#8222;nix&#8220;}else{$right = $right.AccessRights[0]}<br \/>\n$exserver = $user.msExchHomeServerName<br \/>\nif ($exserver -eq $null){$exserver = &#8222;&#8220;}<br \/>\n$dings = new-Object PSObject -Property @{<br \/>\nuser = $email<br \/>\nhomeserver = $exserver<br \/>\nright = $right<br \/>\nsam = $sam<br \/>\nname = $name}<br \/>\n$result += $dings<br \/>\n}<br \/>\n$result | Out-GridView<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$groupmembers = Get-ADGroupMember -Identity Groupname $result=@() Foreach ($member in $groupmembers){ $user = get-aduser $member.samaccountname -Properties * $sam = $member.samaccountname $email = $user.EmailAddress $name = $user.DisplayName $right = Get-MailboxFolderPermission $email&#8220;:\\Kalender&#8220; -User Default -ErrorAction SilentlyContinue | select AccessRights if ($right -eq $null){$right =\u00a0 Get-MailboxFolderPermission $email&#8220;:\\Calendar&#8220; -User Default -ErrorAction SilentlyContinue | select AccessRights} if ($right -eq $null){$right = &hellip; <a href=\"https:\/\/www.michael.tassati.at\/?p=355\" class=\"more-link\"><span class=\"screen-reader-text\">Kalenderberechtigungen f\u00fcr eine Gruppe anzeigen<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[114,12,113,112,17],"_links":{"self":[{"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=\/wp\/v2\/posts\/355"}],"collection":[{"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=355"}],"version-history":[{"count":1,"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=\/wp\/v2\/posts\/355\/revisions"}],"predecessor-version":[{"id":356,"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=\/wp\/v2\/posts\/355\/revisions\/356"}],"wp:attachment":[{"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.michael.tassati.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}