Is there a way to remotely wipe a device from the Kace SMA?
Is there an in-built function that would allow us to remotely wipe a device via the Kace SMA (Windows and/or Mac)? Or are there common scripts used for this functionality? Thanks!
Answers (2)
Top Answer
The SMA has not a built in function for that.
The KACE Cloud MDM solution has it for iOS and Android.
But as long as the system checks in into the SMA you can run any script on it, which does what you want it to do.
So you can run a script using the scripting module to run "systemreset --factoryreset" to do this
Comments:
-
Thanks! I was convinced this was the case, but wanted to make sure I wasn't missing anything obvious. Thanks again. - seanboy 7 months ago
Here's a script I did for that :
# Switch in 64 bits
if ($PSHOME -like "*syswow64*") {
Write-Output 'Relaunching as x64'
& (Join-Path ($PSHOME -replace 'syswow64', 'sysnative') powershell.exe) `
-File $Script:MyInvocation.MyCommand.Path `
@args
Exit
}
# script
$namespaceName = "root\cimv2\mdm\dmmap"
$className = "MDM_RemoteWipe"
$methodName = "doWipeProtectedMethod"
$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)
From https://techcommunity.microsoft.com/t5/windows-deployment/factory-reset-windows-10-without-user-intervention/m-p/1349038/highlight/true#M559
Comments:
-
Thanks for sharing - much appreciated! I'll try this out when I get a chance. - seanboy 7 months ago