Windows/exchange: Unterschied zwischen den Versionen

Aus SchnallIchNet
Wechseln zu: Navigation, Suche
Zeile 3: Zeile 3:
  
 
powershell commands
 
powershell commands
 +
 +
 +
=== create mailbox ===
 +
 +
Create a new mailbox
 +
 +
Exchange Management Shell command completed:
 +
  New-Mailbox -Name 'prospect NL' -Alias 'prospect.nl' -OrganizationalUnit 'arifleet.com/ARI Fleet Europe/Stuttgart/Rooms and Equipment' \
 +
    -UserPrincipalName 'prospect.nl@arifleet.com' -SamAccountName 'prospect.nl' -FirstName 'prospect' -Initials '' -LastName 'NL' \
 +
    -Password 'System.Security.SecureString' -ResetPasswordOnNextLogon $false -Database 'Stuttgart Mailbox DB One'
  
  

Version vom 1. April 2015, 08:01 Uhr

PowerShell

powershell commands


create mailbox

Create a new mailbox

Exchange Management Shell command completed:
 New-Mailbox -Name 'prospect NL' -Alias 'prospect.nl' -OrganizationalUnit 'arifleet.com/ARI Fleet Europe/Stuttgart/Rooms and Equipment' \
   -UserPrincipalName 'prospect.nl@arifleet.com' -SamAccountName 'prospect.nl' -FirstName 'prospect' -Initials  -LastName 'NL' \
   -Password 'System.Security.SecureString' -ResetPasswordOnNextLogon $false -Database 'Stuttgart Mailbox DB One'


add mailbox permissions

Add full access to mailbox 'mailbox@arifleet.de' for user 'DOMAIN\user':

Add-MailboxPermission -Identity mailbox@arifleet.de -User DOMAIN\user -AccessRights Fullaccess -InheritanceType All


get distribution group members

get-distributiongroupmember <group>
get-distributiongroupmember mailaddress@arifleet.de


move mailbox between exchange-databases

Move Mailboxes between exchange >= 2010 servers
the output is piped into 'ft' (format table) to get complete output and not stripped it...

New-MoveRequest -Identity mailbox@arifleet.de -TargetDatabase ‘Whatever Database-Name 001’ | ft -AutoSize -Wrap