{"id":222,"date":"2012-11-05T18:42:32","date_gmt":"2012-11-05T17:42:32","guid":{"rendered":"http:\/\/www.andreazin.it\/solutions\/?p=222"},"modified":"2012-11-05T18:54:52","modified_gmt":"2012-11-05T17:54:52","slug":"activedirectory-update-extensionattribute-with-powershell","status":"publish","type":"post","link":"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html","title":{"rendered":"ActiveDirectory: Update ExtensionAttribute with PowerShell"},"content":{"rendered":"<p>Updating ExtensionAttribute with a single command and with ActiveRoles Management Shell for Active Directory&#8230; it&#8217;s very easy:<\/p>\n<p>Example:<br \/>\nGet-QADUser -SearchRoot &#8216;OU=Unit,DC=Domain&#8217; -objectAttributes @{extensionAttribute1=&#8221;value&#8221;} | Set-QADUser -objectAttributes @{extensionAttribute2=&#8221;newvalue&#8221;}<\/p>\n<p>Only users with email:<\/p>\n<p>Get-QADUser -SearchRoot &#8216;OU=Unit,DC=Domain&#8217; -objectAttributes @{extensionAttribute1=&#8221;value&#8221;} -LdapFilter &#8216;(mail=*)&#8217;\u00a0| Set-QADUser -objectAttributes @{extensionAttribute2=&#8221;newvalue&#8221;}<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Updating ExtensionAttribute with a single command and with ActiveRoles Management Shell for Active Directory&#8230; it&#8217;s very easy: Example: Get-QADUser -SearchRoot &#8216;OU=Unit,DC=Domain&#8217; -objectAttributes @{extensionAttribute1=&#8221;value&#8221;} | Set-QADUser -objectAttributes @{extensionAttribute2=&#8221;newvalue&#8221;} Only users with email: Get-QADUser -SearchRoot &#8216;OU=Unit,DC=Domain&#8217; -objectAttributes @{extensionAttribute1=&#8221;value&#8221;} -LdapFilter &#8216;(mail=*)&#8217;\u00a0| Set-QADUser -objectAttributes &hellip; <a href=\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html\">Continua a leggere<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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[47],"tags":[44,45,46],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-ad","tag-activedirectory","tag-extensionattribute","tag-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ActiveDirectory: Update ExtensionAttribute with PowerShell - Note book<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ActiveDirectory: Update ExtensionAttribute with PowerShell - Note book\" \/>\n<meta property=\"og:description\" content=\"Updating ExtensionAttribute with a single command and with ActiveRoles Management Shell for Active Directory&#8230; it&#8217;s very easy: Example: Get-QADUser -SearchRoot &#8216;OU=Unit,DC=Domain&#8217; -objectAttributes @{extensionAttribute1=&#8221;value&#8221;} | Set-QADUser -objectAttributes @{extensionAttribute2=&#8221;newvalue&#8221;} Only users with email: Get-QADUser -SearchRoot &#8216;OU=Unit,DC=Domain&#8217; -objectAttributes @{extensionAttribute1=&#8221;value&#8221;} -LdapFilter &#8216;(mail=*)&#8217;\u00a0| Set-QADUser -objectAttributes &hellip; Continua a leggere&rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html\" \/>\n<meta property=\"og:site_name\" content=\"Note book\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-05T17:42:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-11-05T17:54:52+00:00\" \/>\n<meta name=\"author\" content=\"Andrea\" \/>\n<meta name=\"twitter:label1\" content=\"Scritto da\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrea\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html\"},\"author\":{\"name\":\"Andrea\",\"@id\":\"https:\/\/www.andreazin.it\/solutions\/#\/schema\/person\/e47a2b851307c3b969373910264a37ef\"},\"headline\":\"ActiveDirectory: Update ExtensionAttribute with PowerShell\",\"datePublished\":\"2012-11-05T17:42:32+00:00\",\"dateModified\":\"2012-11-05T17:54:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html\"},\"wordCount\":57,\"commentCount\":0,\"keywords\":[\"ActiveDirectory\",\"ExtensionAttribute\",\"PowerShell\"],\"articleSection\":[\"ActiveDirectory\"],\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html\",\"url\":\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html\",\"name\":\"ActiveDirectory: Update ExtensionAttribute with PowerShell - Note book\",\"isPartOf\":{\"@id\":\"https:\/\/www.andreazin.it\/solutions\/#website\"},\"datePublished\":\"2012-11-05T17:42:32+00:00\",\"dateModified\":\"2012-11-05T17:54:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.andreazin.it\/solutions\/#\/schema\/person\/e47a2b851307c3b969373910264a37ef\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.andreazin.it\/solutions\/#website\",\"url\":\"https:\/\/www.andreazin.it\/solutions\/\",\"name\":\"Note book\",\"description\":\"Appunti di un ICT Manager\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.andreazin.it\/solutions\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.andreazin.it\/solutions\/#\/schema\/person\/e47a2b851307c3b969373910264a37ef\",\"name\":\"Andrea\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\/\/www.andreazin.it\/solutions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/14d0a0eb9347c19954bb41ace85b9bbe1cc906c8bf44a99f75896df0e81d154a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/14d0a0eb9347c19954bb41ace85b9bbe1cc906c8bf44a99f75896df0e81d154a?s=96&d=mm&r=g\",\"caption\":\"Andrea\"},\"sameAs\":[\"http:\/\/www.andreazin.it\"],\"url\":\"https:\/\/www.andreazin.it\/solutions\/author\/administrator\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ActiveDirectory: Update ExtensionAttribute with PowerShell - Note book","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":"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html","og_locale":"it_IT","og_type":"article","og_title":"ActiveDirectory: Update ExtensionAttribute with PowerShell - Note book","og_description":"Updating ExtensionAttribute with a single command and with ActiveRoles Management Shell for Active Directory&#8230; it&#8217;s very easy: Example: Get-QADUser -SearchRoot &#8216;OU=Unit,DC=Domain&#8217; -objectAttributes @{extensionAttribute1=&#8221;value&#8221;} | Set-QADUser -objectAttributes @{extensionAttribute2=&#8221;newvalue&#8221;} Only users with email: Get-QADUser -SearchRoot &#8216;OU=Unit,DC=Domain&#8217; -objectAttributes @{extensionAttribute1=&#8221;value&#8221;} -LdapFilter &#8216;(mail=*)&#8217;\u00a0| Set-QADUser -objectAttributes &hellip; Continua a leggere&rarr;","og_url":"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html","og_site_name":"Note book","article_published_time":"2012-11-05T17:42:32+00:00","article_modified_time":"2012-11-05T17:54:52+00:00","author":"Andrea","twitter_misc":{"Scritto da":"Andrea"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html#article","isPartOf":{"@id":"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html"},"author":{"name":"Andrea","@id":"https:\/\/www.andreazin.it\/solutions\/#\/schema\/person\/e47a2b851307c3b969373910264a37ef"},"headline":"ActiveDirectory: Update ExtensionAttribute with PowerShell","datePublished":"2012-11-05T17:42:32+00:00","dateModified":"2012-11-05T17:54:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html"},"wordCount":57,"commentCount":0,"keywords":["ActiveDirectory","ExtensionAttribute","PowerShell"],"articleSection":["ActiveDirectory"],"inLanguage":"it-IT","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html","url":"https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html","name":"ActiveDirectory: Update ExtensionAttribute with PowerShell - Note book","isPartOf":{"@id":"https:\/\/www.andreazin.it\/solutions\/#website"},"datePublished":"2012-11-05T17:42:32+00:00","dateModified":"2012-11-05T17:54:52+00:00","author":{"@id":"https:\/\/www.andreazin.it\/solutions\/#\/schema\/person\/e47a2b851307c3b969373910264a37ef"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.andreazin.it\/solutions\/activedirectory-update-extensionattribute-with-powershell.html"]}]},{"@type":"WebSite","@id":"https:\/\/www.andreazin.it\/solutions\/#website","url":"https:\/\/www.andreazin.it\/solutions\/","name":"Note book","description":"Appunti di un ICT Manager","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.andreazin.it\/solutions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Person","@id":"https:\/\/www.andreazin.it\/solutions\/#\/schema\/person\/e47a2b851307c3b969373910264a37ef","name":"Andrea","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.andreazin.it\/solutions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/14d0a0eb9347c19954bb41ace85b9bbe1cc906c8bf44a99f75896df0e81d154a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/14d0a0eb9347c19954bb41ace85b9bbe1cc906c8bf44a99f75896df0e81d154a?s=96&d=mm&r=g","caption":"Andrea"},"sameAs":["http:\/\/www.andreazin.it"],"url":"https:\/\/www.andreazin.it\/solutions\/author\/administrator"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6bwSK-3A","_links":{"self":[{"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":4,"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":244,"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/posts\/222\/revisions\/244"}],"wp:attachment":[{"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.andreazin.it\/solutions\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}