You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Windows365ITCopilot/README.md
+30-7Lines changed: 30 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,23 @@ The path of a csv file which contains a list of Cloud PCs to be resized
27
27
CloudPC.ReadWrite.All, Group.ReadWrite.All
28
28
29
29
#### Example
30
-
Below is an example of how to use the `Manage-EntraGroupForResize` function to manage the group for resizing Cloud PCs. Before running the script, please replace `{The directory of your downloaded files}` with the actual path where you have downloaded the Windows365-PSScripts.
30
+
Below is an example of how to use the `Manage-EntraGroupForResize` function to manage the group for resizing Cloud PCs.
31
+
32
+
1. Open the Windows PowerShell console as an **administrator**.
33
+
34
+
2. Copy the following PowerShell command and paste it into the console.
35
+
36
+
3.**Replace** {{The directory of your downloaded PowerShell scripts}} with the actual path where you have downloaded the Windows365-PSScripts.
37
+
38
+
4.**Replace** {{The directory of your downloaded csv files}} with the actual path where you have downloaded the csv file from Intune portal.
39
+
40
+
5.**Replace** {{The name of your downloaded csv file}} with the actual name of your downloaded csv file.
41
+
42
+
6. Click **Enter** key to run the PowerShell command.
31
43
32
44
```powershell
33
-
Import-Module "{The directory of your downloaded files}\Windows365-PSScripts\Windows365ITCopilot\LicenseManagement.psm1" -Force
Import-Module "{The directory of your downloaded PowerShell scripts}\Windows365-PSScripts\Windows365ITCopilot\LicenseManagement.psm1" -Force
46
+
Manage-EntraGroupForResize -TenantId "{The tenantId}" -CloudPCListPath "{The directory of your downloaded csv files}\{The name of your downloaded csv file}.CSV" -CloudPCBasedUrl "https://graph.microsoft.com"
35
47
```
36
48
37
49
Step 1: Invoke the script to manage the group for resizing
@@ -64,15 +76,26 @@ The path of a csv file which contains a list of Cloud PCs to be reclaimed
64
76
Group.ReadWrite.All, User.ReadWrite.All
65
77
66
78
#### Example
67
-
Below is an example of how to use the `Reclaim-CloudPCs` function to reclaim licenses for Cloud PCs. Before running the script, please replace `{The directory of your downloaded files}` with the actual path where you have downloaded the Windows365-PSScripts.
79
+
Below is an example of how to use the `Reclaim-CloudPCs` function to reclaim licenses for Cloud PCs.
80
+
1. Open the Windows PowerShell console as an **administrator**.
81
+
82
+
2. Copy the following PowerShell command and paste it into the console.
83
+
84
+
3.**Replace** {{The directory of your downloaded PowerShell scripts}} with the actual path where you have downloaded the Windows365-PSScripts.
85
+
86
+
4.**Replace** {{The directory of your downloaded csv files}} with the actual path where you have downloaded the csv file from Intune portal.
87
+
88
+
5.**Replace** {{The name of your downloaded csv file}} with the actual name of your downloaded csv file.
89
+
90
+
6. Click **Enter** key to run the PowerShell command.
68
91
69
92
```powershell
70
-
Import-Module "{The directory of your downloaded files}\Windows365-PSScripts\Windows365ITCopilot\LicenseManagement.psm1" -Force
Import-Module "{The directory of your downloaded PowerShell scripts}\Windows365-PSScripts\Windows365ITCopilot\LicenseManagement.psm1" -Force
94
+
Reclaim-CloudPCs -TenantId "{The tenantId}" -CloudPCListPath "{The directory of your downloaded csv files}\{The name of your downloaded csv file}.CSV" -CloudPCBasedUrl "https://graph.microsoft.com"
72
95
```
73
96
74
97
Step 1: Invoke the PowerShell script to reclaim the Cloud PCs licenses
0 commit comments