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

FortiClient VPN Only

 https://links.fortinet.com/forticlient/win/vpnagent