{"id":76,"date":"2012-02-02T11:54:00","date_gmt":"2012-02-02T11:54:00","guid":{"rendered":"\/post\/2012\/02\/02\/Unable-to-create-exchange-test-user-using-new-TestCasConnectivityUserps1.aspx"},"modified":"2012-02-02T11:54:00","modified_gmt":"2012-02-02T11:54:00","slug":"unable-to-create-exchange-test-user-using-new-testcasconnectivityuser-ps1","status":"publish","type":"post","link":"https:\/\/www.vatland.no\/index.php\/unable-to-create-exchange-test-user-using-new-testcasconnectivityuser-ps1\/","title":{"rendered":"Unable to create exchange test user using &#8220;new-TestCasConnectivityUser.ps1&#8221;"},"content":{"rendered":"<p><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">[PS] C:\\Program Files\\Microsoft\\Exchange Server\\V14\\Scripts&gt;.\\new-TestCasConnectivityUser.ps1<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">Please enter a temporary secure password for creating test users. For security purposes, the password will be changed r<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">egularly and automatically by the system.<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">Enter password: **********************************<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">Create test user on: Server1.test.local<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">Click CTRL+Break to quit or click Enter to continue.:<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">CreateTestUser : Mailbox could not be created. Verify that OU ( Users ) exists and that password meets complexity requi<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">rements.<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">At C:\\Program Files\\Microsoft\\Exchange Server\\V14\\Scripts\\new-TestCasConnectivityUser.ps1:267 char:31<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $result = CreateTestUser &lt;&lt;&lt;&lt;&nbsp; $exchangeServer $mailboxServer $securePassword $OrganizationalUnit $UMDialPlan $<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">UMExtension $Prompt<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">&nbsp;&nbsp;&nbsp; + CategoryInfo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : NotSpecified: (:) [Write-Error], WriteErrorException<\/span><br \/><span style=\"background-color: #ffffff; color: #ff0000; font-size: xx-small;\">&nbsp;&nbsp;&nbsp; + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,CreateTestUser<\/span><\/p>\n<p><span style=\"font-size: small;\">This error is because you have several OU&#8217;s named &#8220;Users&#8221;. Edit the scrip to use a&nbsp;spesific OU, i.e &#8220;CN=Users,DC=test,DC=local&#8221;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[PS] C:\\Program Files\\Microsoft\\Exchange Server\\V14\\Scripts&gt;.\\new-TestCasConnectivityUser.ps1Please enter a temporary secure password for creating test users. For security purposes, the password will be changed regularly and automatically by the system.Enter password: **********************************Create test user on: Server1.test.localClick CTRL+Break to quit or click Enter to continue.:CreateTestUser : Mailbox could not be created. Verify that OU ( Users ) exists and &hellip; <a href=\"https:\/\/www.vatland.no\/index.php\/unable-to-create-exchange-test-user-using-new-testcasconnectivityuser-ps1\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Unable to create exchange test user using &#8220;new-TestCasConnectivityUser.ps1&#8221;<\/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":[5],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-exchange"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[{"id":553,"url":"https:\/\/www.vatland.no\/index.php\/imap-disabled-in-exchange-2013-servercomponentstate\/","url_meta":{"origin":76,"position":0},"title":"IMAP disabled in Exchange 2013 ServerComponentState.","author":"Atle","date":"September 15, 2015","format":false,"excerpt":"IMAP\u00a0was enabled on the Exchange\u00a0\u00a0server and had been used for a long time. One\u00a0day the Exchange\u00a0server's IP subnet\u00a0was placed in a Active Directory site without any Domain Controllers. Of course\u00a0 Exchange the services stopped\u00a0running after a while. When We managed to get it back to its original site and rebooted,\u2026","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/www.vatland.no\/index.php\/category\/exchange\/"},"img":{"alt_text":"imaptest","src":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2015\/09\/imaptest.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2015\/09\/imaptest.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2015\/09\/imaptest.png?resize=525%2C300 1.5x"},"classes":[]},{"id":920,"url":"https:\/\/www.vatland.no\/index.php\/get-secretserver-secret\/","url_meta":{"origin":76,"position":1},"title":"Get Secretserver secret","author":"Atle","date":"October 3, 2019","format":false,"excerpt":"Since we are using SecretServer as our credential store it is of great help to be able to get credentials directly from powershell. This is a small function that connects to secretserver webservices and retrieve a secret based on secred ID. The function will connect to the webservice as the\u2026","rel":"","context":"In &quot;Development&quot;","block_context":{"text":"Development","link":"https:\/\/www.vatland.no\/index.php\/category\/development\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":63,"url":"https:\/\/www.vatland.no\/index.php\/exchange-2012-management-shell-shortcut-missing\/","url_meta":{"origin":76,"position":2},"title":"Exchange 2012 Management Shell shortcut missing.","author":"Atle","date":"September 18, 2012","format":false,"excerpt":"Make sure the required files are present in exchange bin folder: (These can be copied from another Exchange or from install media - Version at the same servicepack level.) - CommonConnectFunctions.ps1 - CommonConnectFunctions.strings.psd1 - Connect-ExchangeServer-help.xml - ConnectFunctions.ps1 - ConnectFunctions.strings.psd1 - RemoteExchange.ps1 - RemoteExchange.strings.psd1 Create a New shortcut on desktop or\u2026","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/www.vatland.no\/index.php\/category\/exchange\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":950,"url":"https:\/\/www.vatland.no\/index.php\/secretservertycotic-plugin-for-powershell-secretsmanagement-module\/","url_meta":{"origin":76,"position":3},"title":"SecretServer(Thycotic) plugin for powershell SecretsManagement module.","author":"Atle","date":"February 18, 2020","format":false,"excerpt":"With the new powershell module SecretsManagement it is possible to add plugins. The new module is used to get\/add\/remove credentials. I created a plugin for secretserver to this module. To get started you will have to install secretsmanagement: Install-Module -Name Microsoft.Powershell.SecretsManagement -AllowPrerelease If -AllowPrerelase is not an option you would\u2026","rel":"","context":"In &quot;Powershell&quot;","block_context":{"text":"Powershell","link":"https:\/\/www.vatland.no\/index.php\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1010,"url":"https:\/\/www.vatland.no\/index.php\/add-tenant-licenses-from-csp-to-database\/","url_meta":{"origin":76,"position":4},"title":"Add tenant licenses from csp to database.","author":"Atle","date":"January 17, 2021","format":false,"excerpt":"This is a followup from previus post. In this post I will populate the database with what licenses a tenant has aquired. This will add records of what aquired skus and 'usage'. For me this is how many license are bought versus how many are assigned. This does not account\u2026","rel":"","context":"In &quot;Azure&quot;","block_context":{"text":"Azure","link":"https:\/\/www.vatland.no\/index.php\/category\/azure\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":262,"url":"https:\/\/www.vatland.no\/index.php\/how-to-reset-exchange-database-indexes\/","url_meta":{"origin":76,"position":5},"title":"How to reset Exchange database indexes","author":"Atle","date":"September 7, 2014","format":false,"excerpt":"I know the situation, Your are using OWA, ActiveSync or Outlook (in online mode) to search for an old email. Your search request only returns new emails even\u00a0though \u00a0you can browse\u00a0old emails. Now there is a good chance that mailbox database index has gone corrupt. You could do a check\u2026","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/www.vatland.no\/index.php\/category\/exchange\/"},"img":{"alt_text":"exchange","src":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2014\/09\/exchange.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/76","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=76"}],"version-history":[{"count":0,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}