{"id":266,"date":"2016-11-17T15:52:25","date_gmt":"2016-11-17T21:52:25","guid":{"rendered":"https:\/\/sysadminnightmare.com\/?p=266"},"modified":"2016-11-17T15:52:25","modified_gmt":"2016-11-17T21:52:25","slug":"powershell-search-all-of-the-forest","status":"publish","type":"post","link":"https:\/\/sysadminnightmare.com\/index.php\/2016\/11\/17\/powershell-search-all-of-the-forest\/","title":{"rendered":"Powershell &#8211; Search all of the forest"},"content":{"rendered":"<p>This one keeps getting me and I thought if I wrote it down maybe .. just maybe next time I would remember.<\/p>\n<p>In your current session if you are searching for an Object .. A users mailbox in my case, and you are only getting results from one of the exchange servers run the following:<\/p>\n<p><code><br \/>\nSet-AdServerSettings -ViewEntireForest $true<br \/>\n<\/code><\/p>\n<p>This will set your commands to search all of the exchange servers. Just so you don&#8217;t have to mess with the -server variables.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This one keeps getting me and I thought if I wrote it down maybe .. just maybe next time I would remember. In your current session if you are searching for an Object .. A users mailbox in my case, and you are only getting results from one of the&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/sysadminnightmare.com\/index.php\/2016\/11\/17\/powershell-search-all-of-the-forest\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2,4,7,8],"tags":[],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-admin","category-exchange","category-powershell-2","category-tech-tips-101"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2bgeE-4i","_links":{"self":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/comments?post=266"}],"version-history":[{"count":1,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/266\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/266\/revisions\/267"}],"wp:attachment":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/media?parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/categories?post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/tags?post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}