Microsoft has released new PowerShell scripts to assist IT administrators in managing users' Windows settings backup data through the Microsoft Graph windowsSetting APIs. The scripts include:
- View-WindowsBackup.ps1: Allows viewing and exporting backup data.
- Delete-WindowsBackup.ps1: Enables irreversible deletion of backup data with confirmation prompts.
Commands to utilize these scripts are:
-
Get-WindowsBackup
- Get-WindowsBackup -UserId [email protected]
- Remove-WindowsBackup -UserId [email protected]
Viewing and exporting data does not require special permissions, but deleting data requires the Microsoft 365 Backup Administrator role. Prerequisites for running the scripts include Windows PowerShell 5.1 or PowerShell 7, the Microsoft.Graph.Authentication module, and internet access to specific Microsoft domains. Users can install the scripts from the PowerShell Gallery using the command Install-Module WindowsBackupAdmin -Scope CurrentUser. The scripts are built on Microsoft Graph beta APIs, which may change and affect functionality.