Skip to content

Commit a4c6d9e

Browse files
Merge pull request #265825 from TimShererWithAquent/graphps41
Bulk update | 174285 MS Graph PowerShell cmdlet update Phase 3
2 parents fec73d8 + cc43324 commit a4c6d9e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

articles/lab-services/how-to-prepare-windows-template.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Prepare Windows lab template
33
description: Prepare a Windows-based lab template in Azure Lab Services. Configure commonly used software and OS settings, such as Windows Update, OneDrive, and Microsoft 365.
44
services: lab-services
55
ms.service: lab-services
6-
ms.custom: has-azure-ad-ps-ref
6+
ms.custom: has-azure-ad-ps-ref, azure-ad-ref-level-one-done
77
author: ntrogh
88
ms.author: nicktrog
99
ms.topic: how-to
@@ -68,11 +68,9 @@ Folders like Documents, Downloads, and Pictures are often used to store lab user
6868
Learn how to [find your Microsoft 365 organization ID](/onedrive/find-your-office-365-tenant-id). Alternately, you can also get the organization ID by using the following PowerShell script:
6969
7070
```powershell
71-
Install-Module MSOnline -Confirm
72-
Connect-MsolService
73-
$officeTenantID = Get-MSOLCompanyInformation |
74-
Select-Object -expand objectID |
75-
Select-Object -expand Guid
71+
Install-Module Microsoft.Graph -Scope CurrentUser
72+
Connect-MgGraph -Scopes "User.Read"
73+
$officeTenantID = Get-MgOrganization | Select-Object -expand Id
7674
```
7775
7876
1. Configure OneDrive to prompt to move known folders to OneDrive by using the following PowerShell script:

0 commit comments

Comments
 (0)