Skip to content
How To Export Windows 365 Cloud PC Names

How To Export Windows 365 Cloud PC Names

Written By Jitesh Kumar
Last Updated May 26, 2022
Posted In Windows 365
SHARE

In this post, you will learn how to export Windows 365 Cloud PC Names. You can manually export all Cloud PCs from an Intune portal to a CSV file if you are looking for a simple way to export your Cloud PC details.

You also have an option to export the Cloud PC name of every Cloud PC on your tenant using the PowerShell method. The ability allows you to collect details in a simplified way and improve the report. 

Windows 365 makes provisioning dedicated, always available cloud PC’s in your organization easy. You have an option to upload custom Windows images or use optimized Windows 365 gallery images to enable your users to work from anywhere, on any device.

Renaming Hybrid Azure AD Cloud PCs is not supported. The remote action to rename Cloud PCs that are Azure AD joined is also disabled in the MEM admin center (Intune) portal. You can check the post detailed Best Methods to Rename Windows 11 PC and Cloud PC.

Patch My PC

Export Windows 365 Cloud PC Names

Let’s follow the steps below to export all Cloud PC details from Intune Portal –

  • Sign in to the Microsoft Endpoint Manager admin center https://endpoint.microsoft.com/.
  • Under Provisioning, Select Devices > Windows 365.
Click on Windows 365 - Export Windows 365 Cloud PC Names 1
Click on Windows 365 – Export Windows 365 Cloud PC Names 1

On the All Cloud PCs tab, the bar displays the total number of Cloud PCs across all your tenants. The All Cloud PCs tab also includes the following options:

  • Export: Select to export Cloud PC data to an Excel comma-separated values (.csv) file.
  • Refresh: Select to retrieve the most current Cloud PC data.
  • Search: Enter keywords to quickly locate a specific Cloud PC in the list.
Select All Cloud PCs - Export Windows 365 Cloud PC Names 2
Select All Cloud PCs – Export Windows 365 Cloud PC Names 2

You can view all Cloud PCs and detailed status in the list. You will get the following information –

  • Device name
  • Provisioning policy
  • Image
  • Azure network connection
  • PC type
  • Status
  • Grace period expiry
  • User
  • Date modified

You can use the Columns property to add or remove columns. Click on the Columns. With a flyout display, you can Check or Uncheck the columns you want to include. Select Apply to update.

Click on Columns - Export Windows 365 Cloud PC Names 3
Click on Columns – Export Windows 365 Cloud PC Names 3

Let’s use the Filter for your report. Clicking on Add filter prompts you to select the options you want to include/exclude. Select Apply to update.

Select the key, operator, and value. In value, you can filter to show the following statuses: Provisioned, Provisioned, Failed Provisioning, In grace period, Provisioned with warning, Not provisioned, Pending, Resizing, and De-provisioning.

Filter Cloud PC Status - Export Windows 365 Cloud PC Names 4
Filter Cloud PC Status – Export Windows 365 Cloud PC Names 4

Select Export, click Download to export all data, or filter data based on your selection.

Export Cloud PCs - Export Windows 365 Cloud PC Names 5
Export Cloud PCs – Export Windows 365 Cloud PC Names 5

A notification will appear automatically in the top right-hand corner with the message Export is in progress. You can also see the status by selecting the notification icon.

All exported data will be automatically downloaded in a .csv file to your browsers, and a notification message will appear Export completed (Exporting Cloud PCs)

Export Windows 365 Cloud PC Names Using PowerShell

You can export the Cloud PC name of every Cloud PC on your tenant, Let’s follow the steps below to export cloud PC names.

Use the Cloud PC URL – https://windows365.microsoft.com/ to launch Windows 365 service and start working on a personalized desktop in the cloud.

👉Let’s check more details about Windows 365 cloud PC web client end-user experience walkthrough – Windows 365 Cloud PC Web Client End User Experience.

  • Sign in to Windows 365 Cloud PC with a user who is assigned the Azure Active Directory (Azure AD) Global Administrator role.
  • Open PowerShell and type the following command, press Enter.
Install-Module Microsoft.Graph -Scope CurrentUser

You will be prompted to confirm the installation and import of the NuGet provider. Enter Y in all confirmation dialogs.

NuGet provider is required to continue PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or 'C:\Users\jitesh\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the
NuGet provider by running 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'.
Do you want PowerShellGet to install and import the NuGet provider now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
Install Module - Export Windows 365 Cloud PC Names Using PowerShell 6
Install Module – Export Windows 365 Cloud PC Names Using PowerShell 6

When installing a module from the PowerShell Gallery is set as an “untrusted repository” by default to prevent users from installing any module or script from this open gallery without first verifying that they are sure they want to install the given module or script.

Enter Y in confirmation dialogs to install the modules from ‘PSGallery.

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change
its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to
install the modules from 'PSGallery'?

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y

The package installation will take a few minutes, wait for the installation to finish, then close the PowerShell window.

Installation Progress - Export Windows 365 Cloud PC Names Using PowerShell 7
Installation Progress – Export Windows 365 Cloud PC Names Using PowerShell 7

Open Notepad, Copy and paste the command value below into the text editor. Note– All credit for the script is to Microsoft.

param(
    [Parameter(Mandatory)]
    [string]$Output
)

Select-MgProfile -Name "beta"
Connect-MgGraph -Scopes "CloudPC.Read.All"
$CloudPCs = Get-MgDeviceManagementVirtualEndpointCloudPC -Property "DisplayName"
$DisplayNames = $CloudPCs | Select -ExpandProperty DisplayName
Write-Output $DisplayNames

$Outarray = @()

foreach ( $Name in $DisplayNames )
{
    $Outarray += New-Object PsObject -property @{
    'DisplayName' = $Name
     }
}
$Outarray | Export-Csv -Path $Output -NoTypeInformation
Disconnect-MgGraph

In the File menu, select Save As and click Browse to your preferred folder or location. In the File name box, provide the appropriate name GetCloudPCNames.ps1 with the .ps1 extension and Choose to Save as type “All” from the drop-down list. Click Save.

Next is to navigate to your file location, For Example, C:\Users\Jitesh\GetCloudPCNames.ps1. Right-click on the file and select Run with PowerShell.

Click Run with PowerShell - Export Windows 365 Cloud PC Names Using PowerShell 8
Click Run with PowerShell – Export Windows 365 Cloud PC Names Using PowerShell 8

A PowerShell window will pop up. Specify the Output file, type “CloudPCNames.csv” and press Enter in the window.

Specify Output file name - Export Windows 365 Cloud PC Names Using PowerShell 9
Specify Output file name – Export Windows 365 Cloud PC Names Using PowerShell 9

When the authentication window pops up, log in with the same account you used to access the Cloud PC.

Sign in to your account - Export Windows 365 Cloud PC Names Using PowerShell 10
Sign in to your account – Export Windows 365 Cloud PC Names Using PowerShell 10

When the PowerShell window closes, the script has finished running. Navigate to the location of your script, and you will see the output file “CloudPCNames.csv” which includes the list of all Cloud PC names on your tenant.

Generated Cloud PCs Name - Export Windows 365 Cloud PC Names Using PowerShell 11
Generated Cloud PCs Name – Export Windows 365 Cloud PC Names Using PowerShell 11

Author

Written by

Jitesh has over 5 years of working experience in the IT Industry. He writes and shares his experiences related to Microsoft device management technologies and IT Infrastructure management. His primary focus area is Windows 10 Deployment solution with Configuration Manager, Microsoft Deployment Toolkit (MDT), and Microsoft Intune.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Add Windows 365 Cloud Apps from File Path using Microsoft Intune

Key Takeaways In this article, I’ll explain how to add Windows 365 Apps from a file path using Microsoft Intune. Windows 365 admins can now manually add Cloud Apps by specifying an application’s executable file path. This Public Preview feature allows admins to publish apps that don’t appear in the Start Menu, giving them greater […]

VK Vaishnav K 6 min read
Microsoft 365

Purchase Windows 365 Flex High Performance Cloud PC Free Trial License

Key Takeaways In this article, I will explain how to purchase a Windows 365 Flex High Performance Cloud PC Free Trial License. Microsoft now offers a Windows 365 Flex 32 vCPU, 128 GB RAM, 2 TB Storage Cloud PCs free trial, giving organisations an excellent opportunity to evaluate one of the most powerful Cloud PC […]

VK Vaishnav K 6 min read
Intune

Publish Microsoft Teams Windows 365 Cloud App using Intune

Key Takeaways In this article, I’ll explain how to publish the Microsoft Teams Windows 365 Cloud App using Intune. Microsoft has enhanced Windows 365 Cloud Apps with support for .appx and .msix packaged applications. This means admins can now discover and publish apps like Microsoft Teams and the new Outlook directly through the existing Cloud […]

VK Vaishnav K 7 min read
Intune

Best way to Uninstall 3rd-Party Dev Tools from Windows 11 Dev Cloud PC using Intune

Key Takeways In this article, I’ll walk you through how to uninstall the 3rd-party Dev tools from Windows 11 Dev Cloud PC using the Microsoft Intune PowerShell Script. If you no longer require the preinstalled third-party developer tools included in the Windows 11 Developer Configuration image, Microsoft provides an uninstall script to remove them. This […]

VK Vaishnav K 16 min read