Rättigheter hemkatalog för redirected folders.

NTFS rättigheter:

    • CREATOR OWNER – Full Control (Apply onto: Subfolders and Files Only)
    • System – Full Control (Apply onto: This Folder, Subfolders and Files)
    • Domain Admins – Full Control (Apply onto: This Folder, Subfolders and Files)
    • Everyone – Create Folder/Append Data (Apply onto: This Folder Only)
    • Everyone – List Folder/Read Data (Apply onto: This Folder Only)
    • Everyone – Read Attributes (Apply onto: This Folder Only)
    • Everyone – Traverse Folder/Execute File (Apply onto: This Folder Only)

Share permission Everyone Full Control.

Uppgradera distgrupper Exchange

Hitta gamla grupper (Exchange 2003)
Get-DistributionGroup | ?{$_.ExchangeVersion -like "0.0 (6.5.6500.0)"}| select-object name,*version
Exchange 2007
Get-DistributionGroup | ?{$_.ExchangeVersion -like "0.1 (8.0.535.0)"}| select-object name,*version
Exportera ut lista till CSV
Get-DistributionGroup | ?{$_.ExchangeVersion -like "0.0 (6.5.6500.0)"}| select-object name,*version | export-csv C:\tmp\Distgrup.txt
Uppgradera grupper
Get-DistributionGroup | ?{$_.ExchangeVersion -like "0.0 (6.5.6500.0)"}| Set-DistributionGroup
Du får nedanstående varning men om du skriver A så uppgraderas alla grupper i ett svep.
Confirm
To save changes on object "Backup Exec Admin Team", the object must be upgraded to the current Exchange version. After the upgrade, this object cannot be managed by an earlier version of the Exchange Management Tools. Do you want to continue to upgrade and save the object?
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"):

Exportera Global Adresslista

$filter = (Get-GlobalAddressList 'Default Global Adresslista').RecipientFilter

Get-Recipient -ResultSize unlimited -RecipientPreviewFilter $filter | Where-Object {$_.HiddenFromAddressListsEnabled -ne $true} | Select-Object Firstname,Lastname,Name,PrimarySmtpAddress | Export-CSV c:\temp\GAL.csv -NoTypeInformation

Mailaktivera kontakt..

# Script to Create mailuser
# Input username (Samaccountname)
# malo78001
# After running use start-onlinecoexistancesync if O365
param ([string] $SAM)
$User = get-user $sam
$email = $User.Userprincipalname
enable-mailuser $SAM -Externalemailaddress $email -alias $SAM | set-mailuser -emailaddresspolicy $false
# Remove secondary smtp if set by policy.
set-mailuser $sam -EmailAddresses @{remove="$sam@kalle.se"}

UPN och Windowsemailaddress

Hitta användare vars upn inte matchar Windowsemailaddress.

$users = Get-user -OrganizationalUnit contoso.com/ou1/ou2/users/elev -resultsize unlimited| ?{$_.Userprincipalname -notmatch $_.Windowsemailaddress} | select-object Userprincipalname,Windowsemailaddress | Export-Csv C:\Temp\NoMatchUpnMail.csv

Ändra Windowsemailaddress till samma som UPN.

$users = Get-user -OrganizationalUnit contoso.com/ou1/uo2/users/elev -resultsize unlimited| ?{$_.Userprincipalname -notmatch $_.Windowsemailaddress}
foreach ($user in $users)
{
$email = $user.Windowsemailaddress
$upn = $user.Userprincipalname
Set-User -Identity $user.Userprincipalname -Windowsemailaddress $upn
}

Om användaren är aktiverad för emailaddresspolicy så sätts Windowsemailaddress automatiskt till primär smtpadress.

Söka i messagetrackinglogs..

Söka viss avsändare mellan viss tid
get-messagetrackinglog -Sender "just.me@contoso.com" -Start "2014-02-16 10:22:00" -End "2014-02-16 18:32:00" | Select-Object Eventid,Source,Sender,Recipients,MessageSubject | ft
Söka viss avsändare mellan viss tid och ett speciellt EventID
get-messagetrackinglog -Sender "just.me@contoso.com" -Start "2014-02-16 10:22:00" -End "2014-02-16 18:32:00" | where {$_.Eventid -like "duplicate*"}
Söka mellan viss tid, speciellt EventID och Ämne som börjar på Fax. Filtera resultatet så att Tid, EventID, Avsändare och MessageID visas.
get-messagetrackinglog -Start "2014-02-16 00:01:00" -End "2014-02-17 23:59:00" -resultsize unlimited | where {$_.Eventid -like "duplicate*" -and $_.Messagesubject -like "Fax*" } | select-object Time*,EventId,Sender,Messageid