{"id":16,"date":"2014-02-20T08:02:00","date_gmt":"2014-02-20T08:02:00","guid":{"rendered":"\/post\/2014\/02\/20\/getaduser-error-on-windows-2012-r2-when-you-want-all-properties.aspx"},"modified":"2014-07-13T15:43:46","modified_gmt":"2014-07-13T13:43:46","slug":"get-aduser-returns-an-error-on-windows-2012-r2-when-you-want-all-properties","status":"publish","type":"post","link":"https:\/\/www.vatland.no\/index.php\/get-aduser-returns-an-error-on-windows-2012-r2-when-you-want-all-properties\/","title":{"rendered":"Get-ADUser returns an error on windows 2012 R2  when you want all properties."},"content":{"rendered":"<p>When you try to get all properties of an ActiveDirectory Object using PowerShell you get an error.<\/p>\n<p>You would typically run some command like:<\/p>\n<p><span style=\"color: #33ff33; background-color: #000000;\">Get-ADUser -Identity someone -Properties *<\/span>\u00a0\u00a0 . This will return an unexpected\u00a0error.<\/p>\n<p><span style=\"font-family: Times New Roman; font-size: xx-small;\">Get-ADUser : One or more properties are invalid.<br \/>\nParameter name: msDS-AssignedAuthNPolicy<br \/>\nAt line:1 char:1<br \/>\n+ Get-ADUser pilot1 -Properties *<br \/>\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>\n+ CategoryInfo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : InvalidArgument: (pilot1:ADUser) [Get-ADUser], ArgumentException<br \/>\n+ FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.ArgumentException,Microsoft.ActiveDirectory.Management.Commands.GetADUser\u00a0<\/span><\/p>\n<p>The workaround is to pipe AD Object to GET-\u00a0ADObject like this:<\/p>\n<p><span style=\"color: #33ff33; background-color: #000000;\">Get-ADUser &#8211; identity someone | Get-ADObject -Properties *<\/span><\/p>\n<p>This is probably a\u00a0 bug in Windows 2012R2 and Windows 8.1<\/p>\n<p><a href=\"https:\/\/www.vatland.no\/wordpress\/wp-content\/uploads\/2014\/02\/MSDSERROR.jpg\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"143\" data-permalink=\"https:\/\/www.vatland.no\/index.php\/get-aduser-returns-an-error-on-windows-2012-r2-when-you-want-all-properties\/msdserror\/\" data-orig-file=\"https:\/\/www.vatland.no\/wp-content\/uploads\/2014\/02\/MSDSERROR.jpg\" data-orig-size=\"648,145\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"MSDSERROR\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.vatland.no\/wp-content\/uploads\/2014\/02\/MSDSERROR.jpg\" class=\"alignnone wp-image-143 size-full\" src=\"https:\/\/www.vatland.no\/wp-content\/uploads\/2014\/02\/MSDSERROR.jpg\" alt=\"MSDSERROR\" width=\"648\" height=\"145\" srcset=\"https:\/\/www.vatland.no\/wp-content\/uploads\/2014\/02\/MSDSERROR.jpg 648w, https:\/\/www.vatland.no\/wp-content\/uploads\/2014\/02\/MSDSERROR-300x67.jpg 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you try to get all properties of an ActiveDirectory Object using PowerShell you get an error. You would typically run some command like: Get-ADUser -Identity someone -Properties *\u00a0\u00a0 . This will return an unexpected\u00a0error. Get-ADUser : One or more properties are invalid. Parameter name: msDS-AssignedAuthNPolicy At line:1 char:1 + Get-ADUser pilot1 -Properties * + &hellip; <a href=\"https:\/\/www.vatland.no\/index.php\/get-aduser-returns-an-error-on-windows-2012-r2-when-you-want-all-properties\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Get-ADUser returns an error on windows 2012 R2  when you want all properties.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_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},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[{"id":458,"url":"https:\/\/www.vatland.no\/index.php\/o365-error-provisioningfailedexception-failed-to-update-one-of-the-recipient-properties\/","url_meta":{"origin":16,"position":0},"title":"O365 &#8211; Error  : ProvisioningFailedException: Failed to update one of the recipient properties.","author":"Atle","date":"April 14, 2015","format":false,"excerpt":"Trying to migrate exchange users to O365 using cutover migration. Most of mailboxes did ok, but som failed \"Error \u00a0: provisioningFailedException: Failed to update one of the recipient properties.\". It would help if the error messages explained what went wrong.?After some investigation we found the solution. We had\u00a0created a new\u00a0global\u00a0address\u2026","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/www.vatland.no\/index.php\/category\/exchange\/"},"img":{"alt_text":"office-logo_v3","src":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2015\/04\/office-logo_v3-300x167.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":61,"url":"https:\/\/www.vatland.no\/index.php\/exchange-2013-ecp-iis-error\/","url_meta":{"origin":16,"position":1},"title":"Exchange 2013 ecp iis error","author":"Atle","date":"October 17, 2012","format":false,"excerpt":"After installing Exchange 2013 I\u00a0got this \"Server Error in '\/ecp' Application\" when entering \"Exchange Admin Center\" web page. \"Could not load type 'Microsoft.Exchange.Managment.Security.AdfsFederationAuthModule'\" Solution: Exchange 2013 did not install the \"Windows Identity Foundation 3.5\" automatically. So all there is to it, add\u00a0this feature. \u00a0\u00a0","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/www.vatland.no\/index.php\/category\/exchange\/"},"img":{"alt_text":"","src":"\/image.axd?picture=2012%2f10%2fecp_error_e2013.JPG","width":350,"height":200,"srcset":"\/image.axd?picture=2012%2f10%2fecp_error_e2013.JPG 1x, \/image.axd?picture=2012%2f10%2fecp_error_e2013.JPG 1.5x"},"classes":[]},{"id":526,"url":"https:\/\/www.vatland.no\/index.php\/error-installing-skype-for-business-server-2015\/","url_meta":{"origin":16,"position":2},"title":"Error installing Skype for Business server 2015","author":"Atle","date":"September 3, 2015","format":false,"excerpt":"Tried to install S4B server 2015 in my lab. Tried this from a computer with no internet access, also I did not install any prerequisites. \"Error: Prerequisite installation failed: Prerequisite installation failed: SqlInstanceRtc For more information, check your SQL Server log files. Log files are in the folder C:\\Program Files\\Microsoft\u2026","rel":"","context":"In &quot;Lync&quot;","block_context":{"text":"Lync","link":"https:\/\/www.vatland.no\/index.php\/category\/lync\/"},"img":{"alt_text":"installerror","src":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2015\/09\/installerror.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2015\/09\/installerror.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2015\/09\/installerror.png?resize=525%2C300 1.5x"},"classes":[]},{"id":1134,"url":"https:\/\/www.vatland.no\/index.php\/windows-11-update-error-0x80070002\/","url_meta":{"origin":16,"position":3},"title":"Windows 11 update error 0x80070002","author":"Atle","date":"December 3, 2021","format":false,"excerpt":"Have been struggling with this error for some time. I was stuck with some old build in the developer channel. It was the CU updates that failed, almost all others installed ok. Hoping that a new build would manage to install, but no. I decided to finally to a inplace-upgrade\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.vatland.no\/index.php\/category\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78,"url":"https:\/\/www.vatland.no\/index.php\/error-replica-is-inconsistent-in-dpm-2012\/","url_meta":{"origin":16,"position":4},"title":"Error : Replica is inconsistent in DPM 2012","author":"Atle","date":"January 11, 2012","format":false,"excerpt":"Got this error on \"Computer\\System Protection\\Bare Metal Recovery\" and \"Computer\\System Protection\\System State\"\u00a0, turned out I had forgotten to install windows feature \"Windows\u00a0Server Backup Features\" on the client. \u00a0","rel":"","context":"In &quot;DPM 2012&quot;","block_context":{"text":"DPM 2012","link":"https:\/\/www.vatland.no\/index.php\/category\/dpm-2012\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":277,"url":"https:\/\/www.vatland.no\/index.php\/lync-server-2010-rtchost-exe-crashes-after-windows-update\/","url_meta":{"origin":16,"position":5},"title":"Lync server 2010 rtchost.exe crashes after Windows Update.","author":"Atle","date":"September 11, 2014","format":false,"excerpt":"\u00a0After running Windows update on a Lync 2010 edge server\u00a0I was unable to communicate with external contacts. I could see their presence but no\u00a0chat\/video or audio.\u00a0The eventlog contained lots of event 1001 \"Information\"(Why\u00a0not error\u00a0!!!!!) that RTCHOST.EXE crashed. Probably failed installation of KB2982385. Why are these only information events. Even more\u2026","rel":"","context":"In &quot;Lync&quot;","block_context":{"text":"Lync","link":"https:\/\/www.vatland.no\/index.php\/category\/lync\/"},"img":{"alt_text":"Lync2013","src":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2014\/05\/Lync2013.gif?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":3,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":229,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions\/229"}],"wp:attachment":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}