{"id":3184,"date":"2011-07-08T09:51:34","date_gmt":"2011-07-08T17:51:34","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=3184"},"modified":"2011-07-25T12:02:46","modified_gmt":"2011-07-25T20:02:46","slug":"you-cannot-install-exchange-server-2010-sp1-if-the-netbios-domain-name-of-the-dc-contains-an-ampersand-character","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/you-cannot-install-exchange-server-2010-sp1-if-the-netbios-domain-name-of-the-dc-contains-an-ampersand-character\/","title":{"rendered":"You Cannot Install Exchange Server 2010 SP1 if the NetBIOS Domain Name of the DC Contains an Ampersand (&#038;) Character"},"content":{"rendered":"<p>If you try to install Exchange Server 2010 Service Pack 1 (SP1) on a server in the environment where the NetBIOS domain name of a domain controller contains an ampersand (&amp;) character, the server installation will fail and you are likely to see the following error.<\/p>\n<blockquote><p>An error occurred while parsing EntityName.  Line7, position 12.<\/p><\/blockquote>\n<p>This issue occurs because the &#8220;&amp;&#8221; character is a reserved character  in XML. Therefore, the character causes the parsing for current logon  user to fail. Here&#8217;s how you can solve the problem. The solution used to be documented in KB article <a href=\"http:\/\/support.microsoft.com\/kb\/2491951\/\">2491951<\/a> but recently when I tried to find the article on the Internet I was unsuccessful. Luckily, I have documented the solution for you in the following steps.<\/p>\n<ol>\n<li>Copy all the installation files from the CD to a hard disk, and then  open the ManageScheduledTask.ps1 file in the\u00a0scripts folder.<\/li>\n<li>Locate the following lines.<br \/>\n<span style=\"color: #008000;\">function Get-CurrentUserName<br \/>\n{<br \/>\n[System.Security.Principal.WindowsIdentity]$id = [System.Security.Principal.WindowsIdentity]::GetCurrent()<br \/>\n$id.Name<br \/>\n}<\/span><\/li>\n<li>Change the lines as below.<br \/>\n<span style=\"color: #008000;\">function Get-CurrentUserName<br \/>\n{<br \/>\n[System.Security.Principal.WindowsIdentity]$id = [System.Security.Principal.WindowsIdentity]::GetCurrent()<br \/>\n[System.String]$fixedName = $id.Name.Replace(&#8216;&amp;&#8217;,&#8217;`&amp;amp;&#8217;)<br \/>\nreturn $fixedName<br \/>\n}<\/span><\/li>\n<li>Save the file, and then try to install Exchange Server 2010 SP1 from the hard disk.<\/li>\n<li>Install <a href=\"http:\/\/support.microsoft.com\/kb\/2509910\">Update Rollup 4 for Exchange Server 2010 Service Pack 1<\/a>.<\/li>\n<\/ol>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a92011 Zubair Alexander. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you try to install Exchange Server 2010 Service Pack 1 (SP1) on a server in the environment where the NetBIOS domain name of a domain controller contains an ampersand (&amp;) character, the server installation will fail and you are likely to see the following error. An error occurred while parsing EntityName. Line7, position 12. [&hellip;]<\/p>\n","protected":false},"author":7,"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":[6,43,3,11],"tags":[],"class_list":["post-3184","post","type-post","status-publish","format-standard","hentry","category-active-directory","category-articles","category-exchange-outlook","category-tips-tricks"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/3184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=3184"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/3184\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=3184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=3184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=3184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}