Enable-XboxCrashDump.ps1
function Enable-XboxCrashDump { param( [switch]$Smart ) process { if($Smart) { $Result = $xbdm::DmSetDumpMode(0) } else { $Result = $xbdm::DmSetDumpMode(1) } if ($Result -lt 0) { Write-Error $xbdm::DmTranslateError($Result) } } } |