Configuring Windows PowerShell
This section describes how to introduce Microsoft Graph PowerShell SDK on Windows computers.
[ Reference ]
Execution of this task with an OS (for example, Windows 7) whose support by Microsoft has ended is not supported by this service.
The prerequisites for setting up Microsoft Graph PowerShell SDK are shown below.
If you use Windows 10, apply the latest Windows Update and then update PowerShell and .NET Framework.
Option | Version |
---|---|
PowerShell | 5.1 or later |
.NET Framework | 4.7.2 or later |
- Start PowerShell with administrator privileges.
Execute the following command to install the Microsoft.Graph module.
* Select "Yes [Y]" if installations from the NuGet provider or PSGallery are allowed.Install-Module Microsoft.Graph