Showing posts with label Export/Move. Show all posts
Showing posts with label Export/Move. Show all posts
Friday, January 29, 2016
[O365] Recover messages deleted from Recoverable items folders
To verify the number of items:
Search-Mailbox "user@testtenant.com.br" -TargetMailbox "Discovery Search Mailbox" -TargetFolder "Recover1" -LogLevel Full -SearchDumpsterOnly -LogOnly
To copy the items to another user folder:
Search-Mailbox "user@testtenant.com.br" -TargetMailbox "user2@testtenant.com.br" -TargetFolder "Recover1" -LogLevel Full -SearchDumpsterOnly
Friday, January 1, 2016
[EX2010] Search Mailbox
Need to assign the management Roles to
perform the search-mailbox for the user account from which we are running the
cmdlet in exchange 2010 SP1 or greater
Roles:
Mailbox Import Export
Mailbox Search
example:
new-managementroleassignment -Name
"test" -role "Mailbox Import Export" -User
"username"
new-managementroleassignment -Name
"test1" -role "Mailbox Search" -User
"username"
1)To search the emails older than 01/26/2011
from a particular user's mailbox
Search-Mailbox –identity “Usr name” -SearchQuery
‘kind:email AND received:<01/26/2011’
2)To search the emails older that 01/01/2011
from a perticluar user's mailbox and delete them.
Search-Mailbox –identity “Usr name”
-SearchQuery ‘kind:email AND received:<01/26/2011’ -DeleteContent
-Force
3)To search the emails from the specific
mailbox database which are older than 01/26/2011.
Get-Mailbox –database “database_name”
–resultsize Unlimited | Search-Mailbox -SearchQuery ‘kind:email AND
received:<01/26/2011’
4)To search the emails from the specific
mailbox database which are older than 01/26/2011 and delete them.
Get-Mailbox –database “database_name”
–resultsize Unlimited | Search-Mailbox -SearchQuery ‘kind:email AND
received:<01/26/2011’ –DeleteContent -Force
5)To delete messages from all the users on a
server which are older than 01/26/2011.
Get-mailbox –server “servername” –resultsize
unlimited | Search-Mailbox -SearchQuery ‘kind:email AND
received:<01/26/2011’ –DeleteContent -Force
6)To search the emails from the specific mailbox
database from a perticlar folder in the mailbox
Get-Mailbox –database “database_name”
–resultsize Unlimited | Search-Mailbox -SearchQuery
‘In:"folder name"
7)Below example searches the mailbox of
myuser and copies the search results to the DiscoveryMailbox in the folder
my_user_data.
Search-Mailbox -Identity myuser -SearchQuery
'Subject:”project report”' -TargetMailbox "DiscoveryMailbox"
-TargetFolder my_user_data
8)Below example searches Myuser's mailbox for
messages that contain the words "project details" in the subject and
deletes the messages from the source mailbox.
Search-Mailbox -Identity "Myuser"
-SearchQuery 'Subject:"project details"' -DeleteContent
Note: you can add the delete content at
the end to delete all the searched content.
Please find the some key list of AOS search.
To Restrict by File
Type:
Use
Example
All file
types
everything
kind:everything
Communications
communications
kind:communications
Contacts contacts
kind:contacts
E-mail email
kind:email
Instant
Messenger conversations
im
kind:im
Meetings meetings
kind:meetings
Tasks tasks
kind:tasks
Notes notes
kind:notes
Documents docs
kind:docs
Text documents text
kind:text
Spreadsheets spreadsheets
kind:spreadsheets
Presentations presentations
kind:presentations
Music music
kind:music
Pictures pics
kind:pics
Videos videos
kind:videos
Folders folders
kind:folders
Folder
name foldername
or in
foldername:mydocs or in:mydocs
Favorites favorites
kind:favorites
Programs programs
kind:programs
Thursday, December 24, 2015
[EX2010] Export Mailboxes to PST
Get-Mailbox –OrganizationalUnit domain.ca/OUName | foreach { New-MailboxExportRequest -Mailbox $_.Alias -FilePath (‘\\server\share\’ + ($_.alias) + ‘.pst’) }
Monday, December 7, 2015
[O365] Migrating mailbox to cloud
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection
Import-PSSession $Session
---------------
$OnPremCreds = Get-Credential
$MigrationEndpointOnPrem = New-MigrationEndpoint -ExchangeRemoteMove -Name OnpremEndpoint -Autodiscover -EmailAddress henwal@azurelab.dk -Credentials $OnPremCreds
In this example, we will migrate all users listed in a CSV file located on our system partition:
$OnboardingBatch = New-MigrationBatch -Name MigrationBatch1 -SourceEndpoint $MigrationEndpointOnprem.Identity -TargetDeliveryDomain azurelab.mail.onmicrosoft.com -CSVData ([System.IO.File]::ReadAllBytes("C:\MigrationBatch1.csv"))
Start-MigrationBatch -Identity $OnboardingBatch.Identity
Tuesday, September 1, 2015
[EX2013] Mailbox Move Limits
LIMITS
<Exchange
Installation Path>\Program Files\Microsoft\Exchange
Server\V14\Bin\MSExchangeMailboxReplication.exe.config
In Exchange 2013
the file has the same name and is located in the same folder, but now in the
Mailbox server role.
MaxActiveMovesPerSourceMDB
MaxActiveMovesPerTargetMDB
MaxActiveMovesPerSourceServer
MaxActiveMovesPerTargetServer
Sunday, August 30, 2015
[EX2010] MRSProxy Service Configuration
C:\Program
Files\Exchange Server\V14\Client Access\exchweb\ews\web.config
In the bottom of this file, you needed to change IsEnabled=”false” to IsEnabled=”true” then save the file and restart the Exchange MRS
service.
Set-WebServicesVirtualDirectory -Identity “EWS
(Default Web Site)” -MRSProxyEnabled $true –MRSProxyMaxConnections 100
[EX2007] Export Mailbox
To export the special folders and empty folders of the
mailbox to a folder in the destination mailbox, run the following command:
Export-Mailbox
-Identity <MailboxIdParameter> -TargetMailbox <MailboxIdParameter>
-TargetFolder <Folder_Name>
To export data to a .pst file, run the following
command:
Export-Mailbox
-Identity <MailboxIdParameter> -PSTFolderPath
<Path_Of_PST_Folder>\<File_Name>.pst
To export only data from the Sent Items folder, run
the following command:
Export-Mailbox
-Identity <MailboxIdParameter> -IncludeFolders '\Sent Items'
-TargetFolder <Target_Folder_Name> -TargetMailbox
<MailboxIdParameter>
To exclude folders from the export, such as excluding
items in the Junk E-Mail and Contacts folders, run the following command:
Export-Mailbox
-TargetMailbox <MailboxIdParameter> -TargetFolder
<Target_Folder_Name> -ExcludeFolders "\Junk
E-Mail","\Contacts"
Remove inherited permissions
“ADSIEdit.msc“
Choose
Action -> Connetc to …
In
the Connection point area, click ‘Select a well known Naming Context’ and
choose ‘Configuration’ from the Drop Down Menu.
Browse
down to Services\Microsoft Exchange\<Name of your Exchange
Organization>\Administrative Groups\Exchange Administrative Group
(FYDIBOHF23SPDLT)\Servers
Subscribe to:
Posts (Atom)