{"id":621,"date":"2018-03-21T14:34:57","date_gmt":"2018-03-21T12:34:57","guid":{"rendered":"https:\/\/itblogwildi.wordpress.com\/?p=621"},"modified":"2018-03-21T14:34:57","modified_gmt":"2018-03-21T12:34:57","slug":"azure-ad-connect-powershell-befehle-zur-einrichtung","status":"publish","type":"post","link":"https:\/\/itblog.wildi.dk\/?p=621","title":{"rendered":"Azure AD Connect: Powershell-Befehle zur Einrichtung"},"content":{"rendered":"<p>Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\u00fctzliche Befehle:<\/p>\n<p>Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen:<\/p>\n<pre style=\"margin:0;font-family:'Trebuchet MS';\"><span style=\"font-size:10pt;\">Get-ADUser -Filter {Enabled -eq $true} -SearchBase \"OU=Users,DC=DOMAIN,DC=local\" -Properties * | <\/span><span style=\"font-size:10.5pt;color:#660066;background:white;\">Where <\/span><span style=\"font-size:10.5pt;color:#666600;background:white;\">{<\/span><span style=\"font-size:10.5pt;color:black;background:white;\">$_<\/span><span style=\"font-size:10.5pt;color:#666600;background:white;\">.<\/span><span style=\"font-size:10.5pt;color:black;background:white;\">proxyAddresses<\/span><span style=\"font-size:10.5pt;color:#666600;background:white;\">} |<\/span><span style=\"font-size:10pt;\"> select SAMAccountname,UserPrincipalName, @{L='ProxyAddress_1'; E={$_.proxyaddresses[0]}},@{L='ProxyAddress_2';E={$_.ProxyAddresses[1]}},@{L='ProxyAddress_3';E={$_.ProxyAddresses[2]}},@{L='ProxyAddress_4';E={$_.ProxyAddresses[3]}},@{L='ProxyAddress_5';E={$_.ProxyAddresses[4]}},@{L='ProxyAddress_6';E={$_.ProxyAddresses[5]}} | export-csv C:\\Temp\\ExportV1.csv<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>Anpassen s\u00e4mtlicher UPN Anmeldenamen:<\/p>\n<pre>Import-Module ActiveDirectory\n$oldSuffix = \"DOMAIN.local\"\n$newSuffix = \"URI.ch\"\n$ou = \"OU=Users,DC=DOMAIN,DC=local\"\n$server = \"SERVER\"\nGet-ADUser -SearchBase $ou -filter * | ForEach-Object {\n$newUpn = $_.UserPrincipalName.Replace($oldSuffix,$newSuffix)\n$_ | Set-ADUser -server $server -UserPrincipalName $newUpn\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\u00fctzliche Befehle: Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen: Get-ADUser&#8230; <a class=\"read-more\" href=\"https:\/\/itblog.wildi.dk\/?p=621\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,8,29],"tags":[53],"class_list":["post-621","post","type-post","status-publish","format-standard","hentry","category-active-directory","category-azure","category-powershell","tag-azure-ad-sync"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\u00fctzliche Befehle: Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen: Get-ADUser -Filter {Enabled -eq $true} -SearchBase &quot;OU=Users,DC=DOMAIN,DC=local&quot; -Properties * | Where {$_.proxyAddresses} | select SAMAccountname,UserPrincipalName, @{L=&#039;ProxyAddress_1&#039;; E={$_.proxyaddresses[0]}},@{L=&#039;ProxyAddress_2&#039;;E={$_.ProxyAddresses[1]}},@{L=&#039;ProxyAddress_3&#039;;E={$_.ProxyAddresses[2]}},@{L=&#039;ProxyAddress_4&#039;;E={$_.ProxyAddresses[3]}},@{L=&#039;ProxyAddress_5&#039;;E={$_.ProxyAddresses[4]}},@{L=&#039;ProxyAddress_6&#039;;E={$_.ProxyAddresses[5]}} | export-csv C:\\Temp\\ExportV1.csv Anpassen s\u00e4mtlicher UPN Anmeldenamen: Import-Module ActiveDirectory $oldSuffix = &quot;DOMAIN.local&quot; $newSuffix = &quot;URI.ch&quot; $ou = &quot;OU=Users,DC=DOMAIN,DC=local&quot;\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Martin Wildi\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/itblog.wildi.dk\/?p=621\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"IT Blog Wildi - Blog \u00fcber IT und anderes.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Azure AD Connect: Powershell-Befehle zur Einrichtung - IT Blog Wildi\" \/>\n\t\t<meta property=\"og:description\" content=\"Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\u00fctzliche Befehle: Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen: Get-ADUser -Filter {Enabled -eq $true} -SearchBase &quot;OU=Users,DC=DOMAIN,DC=local&quot; -Properties * | Where {$_.proxyAddresses} | select SAMAccountname,UserPrincipalName, @{L=&#039;ProxyAddress_1&#039;; E={$_.proxyaddresses[0]}},@{L=&#039;ProxyAddress_2&#039;;E={$_.ProxyAddresses[1]}},@{L=&#039;ProxyAddress_3&#039;;E={$_.ProxyAddresses[2]}},@{L=&#039;ProxyAddress_4&#039;;E={$_.ProxyAddresses[3]}},@{L=&#039;ProxyAddress_5&#039;;E={$_.ProxyAddresses[4]}},@{L=&#039;ProxyAddress_6&#039;;E={$_.ProxyAddresses[5]}} | export-csv C:\\Temp\\ExportV1.csv Anpassen s\u00e4mtlicher UPN Anmeldenamen: Import-Module ActiveDirectory $oldSuffix = &quot;DOMAIN.local&quot; $newSuffix = &quot;URI.ch&quot; $ou = &quot;OU=Users,DC=DOMAIN,DC=local&quot;\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/itblog.wildi.dk\/?p=621\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2018-03-21T12:34:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2018-03-21T12:34:57+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Azure AD Connect: Powershell-Befehle zur Einrichtung - IT Blog Wildi\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\u00fctzliche Befehle: Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen: Get-ADUser -Filter {Enabled -eq $true} -SearchBase &quot;OU=Users,DC=DOMAIN,DC=local&quot; -Properties * | Where {$_.proxyAddresses} | select SAMAccountname,UserPrincipalName, @{L=&#039;ProxyAddress_1&#039;; E={$_.proxyaddresses[0]}},@{L=&#039;ProxyAddress_2&#039;;E={$_.ProxyAddresses[1]}},@{L=&#039;ProxyAddress_3&#039;;E={$_.ProxyAddresses[2]}},@{L=&#039;ProxyAddress_4&#039;;E={$_.ProxyAddresses[3]}},@{L=&#039;ProxyAddress_5&#039;;E={$_.ProxyAddresses[4]}},@{L=&#039;ProxyAddress_6&#039;;E={$_.ProxyAddresses[5]}} | export-csv C:\\Temp\\ExportV1.csv Anpassen s\u00e4mtlicher UPN Anmeldenamen: Import-Module ActiveDirectory $oldSuffix = &quot;DOMAIN.local&quot; $newSuffix = &quot;URI.ch&quot; $ou = &quot;OU=Users,DC=DOMAIN,DC=local&quot;\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#blogposting\",\"name\":\"Azure AD Connect: Powershell-Befehle zur Einrichtung - IT Blog Wildi\",\"headline\":\"Azure AD Connect: Powershell-Befehle zur Einrichtung\",\"author\":{\"@id\":\"##author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1c8a3ca3a2a4720206887f0ccc4f80bf521e8af2cef394783141b99318bcca4?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Martin Wildi\"},\"datePublished\":\"2018-03-21T14:34:57+02:00\",\"dateModified\":\"2018-03-21T14:34:57+02:00\",\"inLanguage\":\"de-CH-informal\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#webpage\"},\"articleSection\":\"Active Directory, Azure, PowerShell, Azure AD Sync\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/itblog.wildi.dk\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?cat=3#listItem\",\"name\":\"Active Directory\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?cat=3#listItem\",\"position\":2,\"name\":\"Active Directory\",\"item\":\"https:\\\/\\\/itblog.wildi.dk\\\/?cat=3\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#listItem\",\"name\":\"Azure AD Connect: Powershell-Befehle zur Einrichtung\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#listItem\",\"position\":3,\"name\":\"Azure AD Connect: Powershell-Befehle zur Einrichtung\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?cat=3#listItem\",\"name\":\"Active Directory\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/#person\",\"name\":\"Martin Wildi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1c8a3ca3a2a4720206887f0ccc4f80bf521e8af2cef394783141b99318bcca4?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Martin Wildi\"}},{\"@type\":\"Person\",\"@id\":\"##author\",\"url\":\"#\",\"name\":\"Martin Wildi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1c8a3ca3a2a4720206887f0ccc4f80bf521e8af2cef394783141b99318bcca4?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Martin Wildi\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#webpage\",\"url\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621\",\"name\":\"Azure AD Connect: Powershell-Befehle zur Einrichtung - IT Blog Wildi\",\"description\":\"Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\\u00fctzliche Befehle: Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen: Get-ADUser -Filter {Enabled -eq $true} -SearchBase \\\"OU=Users,DC=DOMAIN,DC=local\\\" -Properties * | Where {$_.proxyAddresses} | select SAMAccountname,UserPrincipalName, @{L='ProxyAddress_1'; E={$_.proxyaddresses[0]}},@{L='ProxyAddress_2';E={$_.ProxyAddresses[1]}},@{L='ProxyAddress_3';E={$_.ProxyAddresses[2]}},@{L='ProxyAddress_4';E={$_.ProxyAddresses[3]}},@{L='ProxyAddress_5';E={$_.ProxyAddresses[4]}},@{L='ProxyAddress_6';E={$_.ProxyAddresses[5]}} | export-csv C:\\\\Temp\\\\ExportV1.csv Anpassen s\\u00e4mtlicher UPN Anmeldenamen: Import-Module ActiveDirectory $oldSuffix = \\\"DOMAIN.local\\\" $newSuffix = \\\"URI.ch\\\" $ou = \\\"OU=Users,DC=DOMAIN,DC=local\\\"\",\"inLanguage\":\"de-CH-informal\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/?p=621#breadcrumblist\"},\"author\":{\"@id\":\"##author\"},\"creator\":{\"@id\":\"##author\"},\"datePublished\":\"2018-03-21T14:34:57+02:00\",\"dateModified\":\"2018-03-21T14:34:57+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/#website\",\"url\":\"https:\\\/\\\/itblog.wildi.dk\\\/\",\"name\":\"IT Blog Wildi\",\"description\":\"Blog \\u00fcber IT und anderes.\",\"inLanguage\":\"de-CH-informal\",\"publisher\":{\"@id\":\"https:\\\/\\\/itblog.wildi.dk\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Azure AD Connect: Powershell-Befehle zur Einrichtung - IT Blog Wildi","description":"Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\u00fctzliche Befehle: Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen: Get-ADUser -Filter {Enabled -eq $true} -SearchBase \"OU=Users,DC=DOMAIN,DC=local\" -Properties * | Where {$_.proxyAddresses} | select SAMAccountname,UserPrincipalName, @{L='ProxyAddress_1'; E={$_.proxyaddresses[0]}},@{L='ProxyAddress_2';E={$_.ProxyAddresses[1]}},@{L='ProxyAddress_3';E={$_.ProxyAddresses[2]}},@{L='ProxyAddress_4';E={$_.ProxyAddresses[3]}},@{L='ProxyAddress_5';E={$_.ProxyAddresses[4]}},@{L='ProxyAddress_6';E={$_.ProxyAddresses[5]}} | export-csv C:\\Temp\\ExportV1.csv Anpassen s\u00e4mtlicher UPN Anmeldenamen: Import-Module ActiveDirectory $oldSuffix = \"DOMAIN.local\" $newSuffix = \"URI.ch\" $ou = \"OU=Users,DC=DOMAIN,DC=local\"","canonical_url":"https:\/\/itblog.wildi.dk\/?p=621","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/itblog.wildi.dk\/?p=621#blogposting","name":"Azure AD Connect: Powershell-Befehle zur Einrichtung - IT Blog Wildi","headline":"Azure AD Connect: Powershell-Befehle zur Einrichtung","author":{"@id":"##author"},"publisher":{"@id":"https:\/\/itblog.wildi.dk\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/itblog.wildi.dk\/?p=621#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/a1c8a3ca3a2a4720206887f0ccc4f80bf521e8af2cef394783141b99318bcca4?s=96&d=mm&r=g","width":96,"height":96,"caption":"Martin Wildi"},"datePublished":"2018-03-21T14:34:57+02:00","dateModified":"2018-03-21T14:34:57+02:00","inLanguage":"de-CH-informal","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/itblog.wildi.dk\/?p=621#webpage"},"isPartOf":{"@id":"https:\/\/itblog.wildi.dk\/?p=621#webpage"},"articleSection":"Active Directory, Azure, PowerShell, Azure AD Sync"},{"@type":"BreadcrumbList","@id":"https:\/\/itblog.wildi.dk\/?p=621#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/itblog.wildi.dk#listItem","position":1,"name":"Home","item":"https:\/\/itblog.wildi.dk","nextItem":{"@type":"ListItem","@id":"https:\/\/itblog.wildi.dk\/?cat=3#listItem","name":"Active Directory"}},{"@type":"ListItem","@id":"https:\/\/itblog.wildi.dk\/?cat=3#listItem","position":2,"name":"Active Directory","item":"https:\/\/itblog.wildi.dk\/?cat=3","nextItem":{"@type":"ListItem","@id":"https:\/\/itblog.wildi.dk\/?p=621#listItem","name":"Azure AD Connect: Powershell-Befehle zur Einrichtung"},"previousItem":{"@type":"ListItem","@id":"https:\/\/itblog.wildi.dk#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/itblog.wildi.dk\/?p=621#listItem","position":3,"name":"Azure AD Connect: Powershell-Befehle zur Einrichtung","previousItem":{"@type":"ListItem","@id":"https:\/\/itblog.wildi.dk\/?cat=3#listItem","name":"Active Directory"}}]},{"@type":"Person","@id":"https:\/\/itblog.wildi.dk\/#person","name":"Martin Wildi","image":{"@type":"ImageObject","@id":"https:\/\/itblog.wildi.dk\/?p=621#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/a1c8a3ca3a2a4720206887f0ccc4f80bf521e8af2cef394783141b99318bcca4?s=96&d=mm&r=g","width":96,"height":96,"caption":"Martin Wildi"}},{"@type":"Person","@id":"##author","url":"#","name":"Martin Wildi","image":{"@type":"ImageObject","@id":"https:\/\/itblog.wildi.dk\/?p=621#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a1c8a3ca3a2a4720206887f0ccc4f80bf521e8af2cef394783141b99318bcca4?s=96&d=mm&r=g","width":96,"height":96,"caption":"Martin Wildi"}},{"@type":"WebPage","@id":"https:\/\/itblog.wildi.dk\/?p=621#webpage","url":"https:\/\/itblog.wildi.dk\/?p=621","name":"Azure AD Connect: Powershell-Befehle zur Einrichtung - IT Blog Wildi","description":"Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\u00fctzliche Befehle: Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen: Get-ADUser -Filter {Enabled -eq $true} -SearchBase \"OU=Users,DC=DOMAIN,DC=local\" -Properties * | Where {$_.proxyAddresses} | select SAMAccountname,UserPrincipalName, @{L='ProxyAddress_1'; E={$_.proxyaddresses[0]}},@{L='ProxyAddress_2';E={$_.ProxyAddresses[1]}},@{L='ProxyAddress_3';E={$_.ProxyAddresses[2]}},@{L='ProxyAddress_4';E={$_.ProxyAddresses[3]}},@{L='ProxyAddress_5';E={$_.ProxyAddresses[4]}},@{L='ProxyAddress_6';E={$_.ProxyAddresses[5]}} | export-csv C:\\Temp\\ExportV1.csv Anpassen s\u00e4mtlicher UPN Anmeldenamen: Import-Module ActiveDirectory $oldSuffix = \"DOMAIN.local\" $newSuffix = \"URI.ch\" $ou = \"OU=Users,DC=DOMAIN,DC=local\"","inLanguage":"de-CH-informal","isPartOf":{"@id":"https:\/\/itblog.wildi.dk\/#website"},"breadcrumb":{"@id":"https:\/\/itblog.wildi.dk\/?p=621#breadcrumblist"},"author":{"@id":"##author"},"creator":{"@id":"##author"},"datePublished":"2018-03-21T14:34:57+02:00","dateModified":"2018-03-21T14:34:57+02:00"},{"@type":"WebSite","@id":"https:\/\/itblog.wildi.dk\/#website","url":"https:\/\/itblog.wildi.dk\/","name":"IT Blog Wildi","description":"Blog \u00fcber IT und anderes.","inLanguage":"de-CH-informal","publisher":{"@id":"https:\/\/itblog.wildi.dk\/#person"}}]},"og:locale":"de_DE","og:site_name":"IT Blog Wildi - Blog \u00fcber IT und anderes.","og:type":"article","og:title":"Azure AD Connect: Powershell-Befehle zur Einrichtung - IT Blog Wildi","og:description":"Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\u00fctzliche Befehle: Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen: Get-ADUser -Filter {Enabled -eq $true} -SearchBase &quot;OU=Users,DC=DOMAIN,DC=local&quot; -Properties * | Where {$_.proxyAddresses} | select SAMAccountname,UserPrincipalName, @{L='ProxyAddress_1'; E={$_.proxyaddresses[0]}},@{L='ProxyAddress_2';E={$_.ProxyAddresses[1]}},@{L='ProxyAddress_3';E={$_.ProxyAddresses[2]}},@{L='ProxyAddress_4';E={$_.ProxyAddresses[3]}},@{L='ProxyAddress_5';E={$_.ProxyAddresses[4]}},@{L='ProxyAddress_6';E={$_.ProxyAddresses[5]}} | export-csv C:\\Temp\\ExportV1.csv Anpassen s\u00e4mtlicher UPN Anmeldenamen: Import-Module ActiveDirectory $oldSuffix = &quot;DOMAIN.local&quot; $newSuffix = &quot;URI.ch&quot; $ou = &quot;OU=Users,DC=DOMAIN,DC=local&quot;","og:url":"https:\/\/itblog.wildi.dk\/?p=621","article:published_time":"2018-03-21T12:34:57+00:00","article:modified_time":"2018-03-21T12:34:57+00:00","twitter:card":"summary_large_image","twitter:title":"Azure AD Connect: Powershell-Befehle zur Einrichtung - IT Blog Wildi","twitter:description":"Bei weiteren Azure AD Connect Einrichtungen stiess ich auf folgende, n\u00fctzliche Befehle: Export aller aktuellen UPN Anmeldenamen, und Proxy-Adressen: Get-ADUser -Filter {Enabled -eq $true} -SearchBase &quot;OU=Users,DC=DOMAIN,DC=local&quot; -Properties * | Where {$_.proxyAddresses} | select SAMAccountname,UserPrincipalName, @{L='ProxyAddress_1'; E={$_.proxyaddresses[0]}},@{L='ProxyAddress_2';E={$_.ProxyAddresses[1]}},@{L='ProxyAddress_3';E={$_.ProxyAddresses[2]}},@{L='ProxyAddress_4';E={$_.ProxyAddresses[3]}},@{L='ProxyAddress_5';E={$_.ProxyAddresses[4]}},@{L='ProxyAddress_6';E={$_.ProxyAddresses[5]}} | export-csv C:\\Temp\\ExportV1.csv Anpassen s\u00e4mtlicher UPN Anmeldenamen: Import-Module ActiveDirectory $oldSuffix = &quot;DOMAIN.local&quot; $newSuffix = &quot;URI.ch&quot; $ou = &quot;OU=Users,DC=DOMAIN,DC=local&quot;"},"aioseo_meta_data":{"post_id":"621","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-05-16 01:47:24","updated":"2026-05-16 01:47:24"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/itblog.wildi.dk\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/itblog.wildi.dk\/?cat=3\" title=\"Active Directory\">Active Directory<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAzure AD Connect: Powershell-Befehle zur Einrichtung\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/itblog.wildi.dk"},{"label":"Active Directory","link":"https:\/\/itblog.wildi.dk\/?cat=3"},{"label":"Azure AD Connect: Powershell-Befehle zur Einrichtung","link":"https:\/\/itblog.wildi.dk\/?p=621"}],"_links":{"self":[{"href":"https:\/\/itblog.wildi.dk\/index.php?rest_route=\/wp\/v2\/posts\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itblog.wildi.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itblog.wildi.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itblog.wildi.dk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itblog.wildi.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=621"}],"version-history":[{"count":0,"href":"https:\/\/itblog.wildi.dk\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions"}],"wp:attachment":[{"href":"https:\/\/itblog.wildi.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itblog.wildi.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itblog.wildi.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}