$namespaceName = "root\cimv2\mdm\dmmap"
$className = "MDM_RemoteWipe"
$methodName = "doWipeMethod"
$session = New-CimSession
$params = New-Object Microsoft.Management.Infrastructure.CimMethodParametersCollection
$param = [Microsoft.Management.Infrastructure.CimMethodParameter]::Create("param", "", "String", "In")
$params.Add($param)
$instance = Get-CimInstance -Namespace $namespaceName -ClassName $className -Filter "ParentID='./Vendor/MSFT' and InstanceID='RemoteWipe'"
$session.InvokeMethod($namespaceName, $instance, $methodName, $params)
PowerShell script to wipe\reset windows modern devices without user interaction
Sreekanth N Kartha
85
Reputation points
I attempted to reset a modern Windows device using various PowerShell scripts at different permission levels, including silent mode. However, a prompt still appears during the process. Is there a PowerShell script available that can wipe the device's data without any user interaction?
Windows for business | Windows Server | User experience | PowerShell
Answer accepted by question author
-
Gopika Lakshmi 90 Reputation points
2025-01-21T10:45:08.3066667+00:00