Kết nối truy xuất thông tin user trên Microsoft 365

PowerShell admin:

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"

 

No comments:

Post a Comment

VM mới từ Rocky template

Tạo VM mới từ template Rocky đã có Mở Gitlab > Build > Pipelines > bấm [New Pipeline] Chọn PLAYBOOK: new_server, LIMIT: VM name ...