{"id":215,"date":"2008-10-22T16:53:58","date_gmt":"2008-10-22T16:53:58","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?page_id=215"},"modified":"2008-10-22T17:11:12","modified_gmt":"2008-10-22T17:11:12","slug":"add_roomsps1","status":"publish","type":"page","link":"https:\/\/www.wapshere.com\/missmiis\/add_roomsps1","title":{"rendered":"add_rooms.ps1"},"content":{"rendered":"<pre>#\r\n# add_rooms.ps1\r\n#\r\n# Written by Carol Wapshere, September 2008\r\n#\r\n# Use to create one or more room accounts, which are created disabled, and must be\r\n# managed by other users.\r\n#\r\n# Instructions:\r\n#\r\n#\u00c2\u00a0\u00c2\u00a0 1. Modify the add_rooms.csv file to include information about the accounts to add.\r\n#\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 The file must have a header row and must include the following fields:\r\n#\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 dn,UID,displayName,surname,givenName,password,alias,description,UPN\r\n#\r\n#\u00c2\u00a0\u00c2\u00a0 2. Open the Exchange Management Shell\r\n#\r\n#\u00c2\u00a0\u00c2\u00a0 3. CD to C:\\scripts and run add_rooms.ps1.<\/pre>\n<pre>cat add_rooms.csv &gt; unicode.csv # make utf8<\/pre>\n<pre>import-csv unicode.csv | foreach {<\/pre>\n<pre>write-host $_.displayName\r\n$secureString = ConvertTo-SecureString $_.password -AsPlainText \u00e2\u20ac\u201cForce<\/pre>\n<pre>New-Mailbox -Room -Name $_.displayName -displayName $_.displayName -Alias $_.alias -OrganizationalUnit 'bbhfgg.local\/BBH\/Users' -UserPrincipalName $_.UPN -SamAccountName $_.UID -FirstName $_.givenName -Initials '' -LastName $_.surname -Database 'MEXBBH01\\First Storage Group\\Mailbox Database' -password $secureString -ResetPasswordOnNextLogon $false<\/pre>\n<pre>} | out-file -filepath \"c:\\scripts\\add_rooms.log\" -encoding \"UNICODE\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p># # add_rooms.ps1 # # Written by Carol Wapshere, September 2008 # # Use to create one or more room accounts, which are created disabled, and must be # managed by other users. # # Instructions: # #\u00c2\u00a0\u00c2\u00a0 1. Modify the add_rooms.csv file to include information about the accounts to add. #\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 The file must&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-215","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/Pkp1o-3t","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":3,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/215\/revisions"}],"predecessor-version":[{"id":219,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/215\/revisions\/219"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}