Professional Documents
Culture Documents
PS-work Sheet
PS-work Sheet
com
N2576admin@calsonickansei.co.jp
N2576admin@calsonickansei.co.jp
===================================================================================
===============
WARNING: There are more results available than are currently displayed. To view
them, increase the value for the ResultSize parameter.
-----------------------------------------------------------------------------------
------------------------------------------------------
To export all maibox in CSV format:
===================================================================================
=======
$UserCredential = Get-Credential
Set-ExecutionPolicy RemoteSigned
Import-PSSession $Session
==============================================================================
Search-MailboxAuditLog -ResultSize 200000 -Identity "daniel.thierauf@marelli.com" -
LogonTypes Admin,Delegate -ShowDetails -StartDate (get-date).adddays(-10) -EndDate
(get-date) | Export-csv -Encoding UTF8 .\MailboxDelegateAuditLogs.csv
===================================================================
Get-InboxRule -Mailbox daniel.thierauf@marelli.com
connect-msolservice
if the above msolservice not connect please run the below command.
$TLS12Protocol = [System.Net.SecurityProtocolType] 'Ssl3 , Tls12'
[System.Net.ServicePointManager]::SecurityProtocol = $TLS12Protocol
=================================================================================
(Get-MsolUser -UserPrincipalName
armando.marin@marelli.com).errors[0].ErrorDetail.objecterrors.errorrecord.ErrorDesc
ription
Get-MsolUser -HasErrorsOnly | ft
DisplayName,UserPrincipalName,@{Name="Error";Expression={($_.errors[0].ErrorDetail.
objecterrors.errorrecord.ErrorDescription)}} -AutoSize
set-mailbox gbs.emea.purchasing.direct@marelli.com -MessageCopyForSentAsEnabled
$True
set-mailbox gbs.emea.purchasing.direct@marelli.com -
MessageCopyForSendOnBehalfEnabled $True