{"id":801,"date":"2013-06-19T22:51:39","date_gmt":"2013-06-19T20:51:39","guid":{"rendered":"http:\/\/sccmfaq.wordpress.com\/?p=801"},"modified":"2013-06-19T22:51:39","modified_gmt":"2013-06-19T20:51:39","slug":"sccm-2012-sp1-windows-phone-8-portal-app-and-azure-active-directory-allowed-characters","status":"publish","type":"post","link":"https:\/\/blog.hosebei.ch\/?p=801","title":{"rendered":"SCCM 2012 SP1 &#8211; Windows Phone 8 Portal App and Azure Active Directory allowed characters"},"content":{"rendered":"<p>Hey, here&#8217;s Martin again.<\/p>\n<p>I faced the Problem, that I could not Rollout the Company Portal app to a Windows Phone 8 Device. Well, I thought that this might be the Problem, but later more&#8230;<br \/>\nEverything started with my new Windows Phone 8 Device, and the possibility to manage this Device through System Center 2012 Configuration Manager. The requirements for the Installation of this Company App is not easy, because you need the \u201eSymantec Code Signing Certificates for Windows Phone\u201d and to get this you&#8217;ll need a Windows Phone 8 Developer Account, unfortunately both of them cost some bucks.<br \/>\n<!--more--><br \/>\nYou can sign-up fo the Microsoft Developer Account for 99$ here: http:\/\/dev.windowsphone.com\/en-us\/join<br \/>\nFor the Code signing, 299$, go to this Symantec Page: https:\/\/products.websecurity.symantec.com\/orders\/enrollment\/microsoftCert.do<br \/>\n<strong>\/Update:<\/strong>For LAB purposes you can use a Free possibility: http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=39079 (Thanks to Torsten for the link!)<\/p>\n<p>When you both have created, it&#8217;s time to sign you app, for this, you will have to download the following pieces of Software:<br \/>\nThe Windows Phone 8 SDK: https:\/\/dev.windowsphone.com\/en-us\/downloadsdk<br \/>\nAnd the Windows Phone 8 Company Portal App: http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=36060 (be sure Using Version 2.0, in Version 1.0 there was a Problem with the Application Name)<\/p>\n<p>Install the downloaded Company Portal App, mind the Installation Path (on x64 &#8220;C:\\Program Files (x86)\\Microsoft Corporation\\Windows Intune Company Portal for Windows Phone 8&#8221;), because there you will find the file &#8220;SSP.xap&#8221;, this you will now sign with your code signing certificate. Now start &#8220;VS2012 x86 Native Tools Command Prompt&#8221; and make sure that your current Directory is &#8220;%ProgramFiles(x86)%\\Microsoft SDKs\\Windows Phone\\v8.0\\Tools\\XapSignTool&#8221; where the <strong>XapSignTool.exe<\/strong> resides. Then you can start to sign your App:<br \/>\n<code>XapSignTool.exe sign \/f {Certificate File} \/p {Password to Certificate} {Full Path to your app file}SSP.xap<\/code><\/p>\n<p>You can Change the Name &#8220;SPP&#8221; to something you like, it doesn&#8217;t matter. Refer to this MSDN library: http:\/\/msdn.microsoft.com\/en-us\/library\/windowsphone\/develop\/jj681686(v=vs.105)<\/p>\n<p>With that, you have not yet everything, you will need an Intune Subscription, and fortunately there is a 30-day free subscription: http:\/\/www.microsoft.com\/en-us\/windows\/windowsintune\/try.aspx<\/p>\n<p>I will not Point out the process of integrate Intune to SCCM, there are many guides available and in my experience it&#8217;s a robust and well working step.<\/p>\n<p>When SCCM has uploaded the Company Portal App to the newly created DP manage.microsoft.com, you can start with you Intune experience!<\/p>\n<p>You have now 3 (and very soon 4) Options to Login at the devices:<\/p>\n<ol>\n<li>Manually Created Users in Intune with same UPN as a User from On-Premise and manually handled Password for Intune Accounts<\/li>\n<li>With DirSync created Users from your On-Premise AD and manually handled Password for Intune Accounts<\/li>\n<li>With DirSync created Users from your On-Premise AD and an ADFS Authentication process to use same Password in On-Premise AD and Azure AD<\/li>\n<li>This was announced at TechEd that in the Next Wave (same release Date as R2 Wave for 2012) the synchronization of the Password will also be supported.<\/li>\n<\/ol>\n<p>Which Option you want to deploy depends on your size and other depencies. For my big Lab Environment with 1 User, I truly can not manage the Password for this user manually, and so I implemented ADFS. This process is well documented and the most important thing is, that you use a public SSL certificate on your ADFS Servers!<\/p>\n<p>Lot of work is done until here, but now the fun part begins \ud83d\ude42<\/p>\n<p>On your Windows Phone 8 Device go to Settings and open &#8220;Company apps&#8221;:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-806\" alt=\"Windows Phone 8 Company App_01\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_01.jpg?w=180\" width=\"180\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_01.jpg 480w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_01-180x300.jpg 180w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a>Read the upcoming message carefully and go on &#8220;add account&#8221;:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-807\" alt=\"Windows Phone 8 Company App_02\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_02.png?w=180\" width=\"180\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_02.png 480w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_02-180x300.png 180w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a>Insert your UPN and your Password and tap on sign in:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-808\" alt=\"Windows Phone 8 Company App_03\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_03.png?w=180\" width=\"180\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_03.png 480w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_03-180x300.png 180w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a>After a short shivering time you will see this Screen:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-809\" alt=\"Windows Phone 8 Company App_04\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_04.png?w=180\" width=\"180\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_04.png 480w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_04-180x300.png 180w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a>Don&#8217;t\u00a0uncheck the &#8220;Install Company app or Hub&#8221;. The last Screen Shows the success of the Enrollment, but not about installing the app.<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-810\" alt=\"Windows Phone 8 Company App_05\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_05.png?w=180\" width=\"180\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_05.png 480w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_05-180x300.png 180w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a>From this Moment, you can check the SCCM Console to get the Status from the Installation of the Company app, go to Monitoring -&gt; Deployments and choose the Company Portal App deployment which is on your Collection that was added in the Intune Subscription:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-812\" alt=\"Windows Phone 8 Company App Deployment Status\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_06.png?w=300\" width=\"300\" height=\"236\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_06.png 879w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_06-300x237.png 300w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_06-768x606.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>And W000H000:<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-814\" alt=\"Windows Phone 8 Company App\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_07.png?w=180\" width=\"180\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_07.png 480w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_07-180x300.png 180w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a>When you start the app, you will be asked to provide your credentials, and your App will be loaded:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_081.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-827\" alt=\"Windows Phone 8 Company App Login\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_081.png?w=180\" width=\"180\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_081.png 480w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_081-180x300.png 180w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a>\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_09.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-816\" alt=\"Windows Phone 8 Company App Logged In\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_09.png?w=180\" width=\"180\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_09.png 480w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_09-180x300.png 180w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a><\/p>\n<p>That seemed easy huh? But I will be honest, I had some Problems on my way to get this&#8230;<\/p>\n<p>First:<br \/>\nDirSync does not Support IPv6, that means, if your DirSync Server is in DualStack mode, the synchronization will fail.<\/p>\n<p>The second and biggest Problem was to Login with my On-Premise Account with ADFS. Everything else worked really fine. One Point to search when using ADFS is the Office 365 Single Sign on test: <a href=\"https:\/\/www.testexchangeconnectivity.com\/?tabid=1\">https:\/\/www.testexchangeconnectivity.com\/?tabid=1<\/a><\/p>\n<p>Everything was green, and it also worked perfectly on the Webbrowser, but not with Windows Phone 8, I was always getting the error: &#8220;We weren&#8217;t able to set up this Company account on your phone. Try again later. If you still can&#8217;t add it, contact your company&#8217;s Support Person for help.&#8221;:<br \/>\n<a href=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-818\" alt=\"Windows Phone 8 Company App Login failed\" src=\"http:\/\/hosebei.wordpress.com\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_10.png?w=180\" width=\"180\" height=\"300\" srcset=\"https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_10.png 480w, https:\/\/blog.hosebei.ch\/wp-content\/uploads\/2013\/06\/windows-phone-8-company-app_10-180x300.png 180w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a>So, who should I contact&#8230;? I decided to use the Intune Support, which was a very good experience. We was getting closer to the Problem, and found it: The Azure Active Directory got some restrictions to the character set allowed for a Password. Refer to this &#8220;Password policy in Windows Azure AD&#8221;:<br \/>\n<a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/jj943764.aspx\">http:\/\/technet.microsoft.com\/en-us\/library\/jj943764.aspx<\/a><br \/>\nAfter changing the Password which follows the restrictions, the Login process worked like a charm \ud83d\ude42<\/p>\n<p>And now, I was asking myself, is it possible to restrict the character set in Active Directory, and yes it is. I don&#8217;t know if I really would apply this, but it seems to be possible:<br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms722439.aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/ms722439.aspx<\/a><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms721766.aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/ms721766.aspx<\/a><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms721884.aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/ms721884.aspx<\/a><br \/>\n(From: http:\/\/social.technet.microsoft.com\/Forums\/windowsserver\/en-US\/e74a9c7e-1635-4766-a95d-cb9ca3c70b1c\/limiting-special-characters-in-a-Password)<\/p>\n<p>Now having fun with Intune \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey, here&#8217;s Martin again. I faced the Problem, that I could not Rollout the Company Portal app to a Windows Phone 8 Device. Well, I thought that this might be the Problem, but later more&#8230; Everything started with my new Windows Phone 8 Device, and the possibility to manage this Device through System Center 2012 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-801","post","type-post","status-publish","format-standard","hentry","category-sccm-2012"],"_links":{"self":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/posts\/801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=801"}],"version-history":[{"count":0,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=\/wp\/v2\/posts\/801\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hosebei.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}