Full các trường data có thể lấy từ AD on-prem

Mail
Presence
PermissionGrants
Department
ImAddresses
Responsibilities
AppRoleAssignments
ProvisionedPlans
DataSecurityAndGovernance
PasswordProfile
CreatedDateTime
Country

Tạo report user trên Ms365

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ũ 

Flash firmware cho máy in HP

Tham khảo:

Kiếm cái usb định dạng Fat32, sử dụng 7zip chep fw vào usb, tắt nguồn đợi 2s , bấm tổ hợp nguồn+ Ok + X máy tự động Flash fw đã nack trên trên 404, 4003 và lụm lúa
 
Cổng USB A trên máy in: bóc nắp che trên máy để sử dụng 

Cài mail OAuth cho ManageEngine


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 


Cài module ExchangeOnline

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 

ManageEngine 14105 đổi https về http

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...