{"id":223,"date":"2010-09-23T13:42:02","date_gmt":"2010-09-23T11:42:02","guid":{"rendered":"http:\/\/marwin.e-blog.cz\/?p=223"},"modified":"2010-10-04T10:38:56","modified_gmt":"2010-10-04T08:38:56","slug":"jak-vytvorit-ad-uzivatele-i-s-mailboxem-na-serveru-exchange-2007","status":"publish","type":"post","link":"https:\/\/svobodma.cz\/?p=223","title":{"rendered":"Jak hromadn\u011b vytvo\u0159it AD u\u017eivatele i  s Mailboxem na serveru Exchange  2007"},"content":{"rendered":"<p>Pohodln\u00fd zp\u016fsob jak vytv\u00e1\u0159et \u00fa\u010dtyv AD \u00a0i s Mailboxem<\/p>\n<p>M\u016f\u017eete prov\u00e1d\u011bt na serveru exchange 2007 , kde m\u00e1te powershell pro exchange a pr\u00e1vo &#8222;domain admina&#8220; + pr\u00e1vo exchange pro vytvo\u0159en\u00ed mailboxu .<\/p>\n<p>P\u0159ipravte si v notepadu p\u0159.<\/p>\n<div id=\"_mcePaste\"><strong>Alias, Name, FirstName, LastName, UPN<\/strong><\/div>\n<div id=\"_mcePaste\"><strong>User21, User21, User, 21, user21@domain.com<\/strong><\/div>\n<div><strong>User1, User1, User, 1, user1@domain.com<\/strong><\/div>\n<div>ulo\u017ete s p\u0159\u00edponou <strong>.csv<\/strong> ( ulo\u017eil jsem si na c:\\newusers.csv )<\/div>\n<div>Nyn\u00ed v powershellu<\/div>\n<div>prvn\u00edm p\u0159\u00edkazem vytvo\u0159\u00edme default-n\u00ed heslo pro v\u0161echny nov\u00e9 u\u017eivatele.<\/div>\n<div>\n<div><strong>$password = Read-Host \u201cdefault password:\u201d -AsSecureString<\/strong><\/div>\n<div>nyn\u00ed je \u010das na p\u0159\u00edkaz pro import .csv<\/div>\n<\/div>\n<div>\n<div><strong>import-csv c:\\newusers.csv | foreach { New-Mailbox \u2013alias $_.Alias \u2013name $_.Name -FirstNAme $_.FirstName -LastName $_.LastName \u2013UserPrincipalName $_.UPN \u2013Database \u201cxxxxxxx\u201d \u2013OrganizationalUnit xxxx \u2013Password $password \u2013ResetPasswordOnNextLogon:$true }<\/strong><\/div>\n<div><em>$password &#8211; 1 p\u0159\u00edkaz<\/em><\/div>\n<div><em>pohodln\u00e9 \ud83d\ude42 p\u0159i zakl\u00e1d\u00e1n\u00ed v\u00edce u\u017eivatel\u016f<\/em><\/div>\n<\/div>\n<div><strong><br \/>\n<\/strong><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Pohodln\u00fd zp\u016fsob jak vytv\u00e1\u0159et \u00fa\u010dtyv AD \u00a0i s Mailboxem M\u016f\u017eete prov\u00e1d\u011bt na serveru exchange 2007 , kde m\u00e1te powershell pro exchange a pr\u00e1vo &#8222;domain admina&#8220; + pr\u00e1vo exchange pro vytvo\u0159en\u00ed mailboxu . P\u0159ipravte si v notepadu p\u0159. Alias, Name, FirstName, &hellip; <a href=\"https:\/\/svobodma.cz\/?p=223\">Cel\u00fd p\u0159\u00edsp\u011bvek <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-exchange-server"],"_links":{"self":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=223"}],"version-history":[{"count":5,"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":225,"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions\/225"}],"wp:attachment":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}