Skip to content

Commit 0071517

Browse files
Merge pull request #1584 from gigacodedev/dev
Updated Intune Wipe Actions
2 parents 45896cb + c5aecb9 commit 0071517

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

src/views/endpoint/intune/Devices.js

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,38 @@ const Offcanvas = (row, rowIndex, formatExtraData) => {
132132
color: 'danger',
133133
modal: true,
134134
modalType: 'POST',
135-
modalBody: { keepUserData: 'false', keepEnrollmentData: 'true' },
135+
modalBody: { keepUserData: false, keepEnrollmentData: true },
136+
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=${row.id}&Action=cleanWindowsDevice`,
137+
modalMessage: 'Are you sure you want to wipe this device, and retain enrollment data?',
138+
},
139+
{
140+
label: 'Wipe Device, remove enrollment data',
141+
color: 'danger',
142+
modal: true,
143+
modalType: 'POST',
144+
modalBody: { keepUserData: false, keepEnrollmentData: false },
136145
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=${row.id}&Action=cleanWindowsDevice`,
137-
modalMessage: 'Are you sure you want to wipe this device',
146+
modalMessage: 'Are you sure you want to wipe this device, and remove enrollment data?',
138147
},
139148
{
140-
label: 'Wipe Device and continue at powerloss',
149+
label: 'Wipe Device, keep enrollment data, and continue at powerloss',
150+
color: 'danger',
151+
modal: true,
152+
modalType: 'POST',
153+
modalBody: { keepEnrollmentData: true, keepUserData: false, useProtectedWipe: true },
154+
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=${row.id}&Action=cleanWindowsDevice`,
155+
modalMessage:
156+
'Are you sure you want to wipe this device? This will retain enrollment data. Continuing at powerloss may cause boot issues if wipe is interrupted.',
157+
},
158+
{
159+
label: 'Wipe Device, remove enrollment data, and continue at powerloss',
141160
color: 'danger',
142161
modal: true,
143162
modalType: 'POST',
144163
modalBody: { keepEnrollmentData: false, keepUserData: false, useProtectedWipe: true },
145164
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=${row.id}&Action=cleanWindowsDevice`,
146-
modalMessage: 'Are you sure you want to wipe this device',
165+
modalMessage:
166+
'Are you sure you want to wipe this device? This will also remove enrollment data. Continuing at powerloss may cause boot issues if wipe is interrupted.',
147167
},
148168
{
149169
label: 'Autopilot Reset',
@@ -152,7 +172,7 @@ const Offcanvas = (row, rowIndex, formatExtraData) => {
152172
modalType: 'POST',
153173
modalBody: { keepUserData: 'false', keepEnrollmentData: 'true' },
154174
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=${row.id}&Action=wipe`,
155-
modalMessage: 'Are you sure you want to wipe this device',
175+
modalMessage: 'Are you sure you want to Autopilot Reset this device?',
156176
},
157177
{
158178
label: 'Retire device',

0 commit comments

Comments
 (0)