Tình huống: ManageEngine 14105 đã cài default https port 8080, muốn chuyển lại chạy http:8080
Sửa file server.xml trong path
C:\Program Files\ManageEngine\ServiceDesk\conf
Sửa đoạn trong ảnh:
Tình huống: ManageEngine 14105 đã cài default https port 8080, muốn chuyển lại chạy http:8080
Sửa file server.xml trong path
C:\Program Files\ManageEngine\ServiceDesk\conf
Sửa đoạn trong ảnh:
Chạy PowerShell
Kết nối dịch vụ:
Connect-MgGraph -Scopes User.ReadWrite.All
Xong thì làm với user muốn gỡ lic:
Chỉnh ngày giờ, múi giờ
Mở remote desktop, Allow ping & 8080 cho web
Cài ME 14.105 - Chú ý nếu sử dụng DB bên ngoài, cần thực hiện luôn, do khi kết nối DB mới các setting sẽ bị reset hết
Kết nối mail OAuth, đảm bảo inbox trống trước khi fetch email, nếu không ME sẽ tự tạo các request và phản hồi cho toàn bộ các email trong inbox
Đổi pass admin, guest, schedule backup, schedule DB maintenance -> Apply License
Presence |
PermissionGrants |
Department |
ImAddresses |
Responsibilities |
AppRoleAssignments |
ProvisionedPlans |
DataSecurityAndGovernance |
PasswordProfile |
CreatedDateTime |
Country |
Bước 1: chuẩn bị full data
Kết nối Ms365 để lấy data:
#Connect-MgGraph -Scopes "User.Read.All","Directory.Read.All","Reports.Read.All"
Lấy report danh sách user theo GUID (mặc định)
$mailReport = "$env:TEMP\mailUsage-guid.csv"
Get-MgReportMailboxUsageDetail -Period "D7" -OutFile $mailReport
$mailUsage = Import-Csv $mailReport
Lấy report danh sách user theo UPN: vào admin center -> settings -> Org settings -> reports -> bỏ tích Display concealed user, group, and site names in all reports
$mailReport = "$env:TEMP\mailUsage-upn.csv"
Get-MgReportMailboxUsageDetail -Period "D7" -OutFile $mailReport
$mailUsage = Import-Csv $mailReport
Trả lại setting report như cũ
Cài đặt:
Install-Module Microsoft.Graph -Scope AllUsers
Import:
Import-Module Microsoft.Graph.Users
Từ lần sau trở đi chỉ cần login trước khi chạy script:
Connect-MgGraph -Scopes "User.Read.All","Directory.Read.All"
Tham khảo:
Dùng exchange online (M 365):
Connect URL: https://outlook.office365.com/EWS/Exchange.asmx
Còn lại follow theo tài liệu hãng:
https://help.servicedeskplus.com/mail-server-configurations
Cơ bản:
- Login vào Azure
- Tạo app mới để xác thực, trên app này sẽ có các app ID, link xác thực và link lấy token tương ứng.
- Ngoài ra còn tạo được các secret khác nhau (gồm secret ID và key) để cung cấp cho các ứng dụng tích hợp email khác nhau.
- Đổi secret => cần restart service
install-module exchangeonlinemanagement
NuGet provider is required to continue -> cài thêm NuGet
Test :
Get-Mailbox [username của email - không gồm đuôi @domain.mail]
Get-DynamicDistributionGroup -> lấy Name, chạy Power Shell:
Thực hiện:
Exclude các địa chỉ mail cụ thể: -> dành cho các địa chỉ group
Set-DynamicDistributionGroup -Identity "All Tam Anh Members" -RecipientFilter "((RecipientType -eq 'UserMailbox') -and (-not(Alias -eq 'cntt@tamanhhospital.vn' -or Alias -eq 'hotro@tamanhhospital.vn' -or Alias -eq 'tech@tamanhhospital.vn')))"
Exclude các mail có thuộc tính homePhone=ExcludeFromGroupAll: -> dành cho các mail lẻ, thực hiện bằng cách set thuộc tính cho username trên AD:
Set-DynamicDistributionGroup -Identity "All Tam Anh Members" -RecipientFilter "((RecipientType -eq 'UserMailbox') -and (homePhone -ne 'ExcludeFromGroupAll'))"
Set thuộc tính cho username trên AD local:
Set-ADUser -Identity "cntt" -HomePhone "ExcludeFromGroupAll"
DeltaSync: chạy trên AAD Connect:
Start-ADSyncSyncCycle -PolicyType Delta
Tình huống: ManageEngine 14105 đã cài default https port 8080 , muốn chuyển lại chạy http:8080 Sửa file server.xml trong path C:\Program F...