Presence |
PermissionGrants |
Department |
ImAddresses |
Responsibilities |
AppRoleAssignments |
ProvisionedPlans |
DataSecurityAndGovernance |
PasswordProfile |
CreatedDateTime |
Country |
Full các trường data có thể lấy từ AD on-prem
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ũ
Kết nối truy xuất thông tin user trên Microsoft 365
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"
Flash firmware cho máy in HP
Tham khảo:
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...
-
Máy giặt cửa ngang LG dùng được khoảng 2,5 năm thì vỡ chốt khi mở cửa. Sau khi vỡ, các mảnh vỡ nằm lại trong hốc khóa, khá khó gắp. Các mảnh...
-
Mở sysdm.cpl Xóa hết các user dưới 300MB, trừ Administrator và Default Profile Mở regedit: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows N...
-
Tải bộ cài Windows 10 version 20H2 bằng Media Creation Tool, tách lấy file install.esd trong thư mục sources : Mount file ISO vào ổ ảo ...