Windows/exchange: Unterschied zwischen den Versionen

Aus SchnallIchNet
Wechseln zu: Navigation, Suche
(set thumbnail-image)
Zeile 45: Zeile 45:
 
=== set thumbnail-image ===
 
=== set thumbnail-image ===
  
  Import-RecipientDataProperty -Identity dSchlenzig -Picture -FileData ([Byte[]]$(Get-Content -path ".\thumb-DOMARI.jpg"  -Encoding Byte -ReadCount 0)
+
  Import-RecipientDataProperty -Identity dSchlenzig -Picture -FileData \
 +
([Byte[]]$(Get-Content -path ".\thumb-DOMARI.jpg"  -Encoding Byte -ReadCount 0)

Version vom 24. April 2015, 09:59 Uhr

PowerShell

powershell commands


create mailbox

Create a new mailbox

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 mailbox permissions

get permissions of fhess on mailbox prospect.be

Get-MailboxPermission -Identity prospect.be@arifleet.com -User "fhess"


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


set thumbnail-image

Import-RecipientDataProperty -Identity dSchlenzig -Picture -FileData \
([Byte[]]$(Get-Content -path ".\thumb-DOMARI.jpg"  -Encoding Byte -ReadCount 0)