Skip to content

Commit 97ad63a

Browse files
Merge pull request #2713 from rvdwegen/dev
Add bulk options to device list
2 parents c675d7b + ea4c887 commit 97ad63a

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

src/views/endpoint/intune/Devices.jsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,44 @@ const DevicesList = () => {
283283
path: '/api/ListDevices',
284284
reportName: `${tenant?.defaultDomainName}-Device-List`,
285285
params: { TenantFilter: tenant?.defaultDomainName },
286+
tableProps: {
287+
keyField: 'id',
288+
selectableRows: true,
289+
actionsList: [
290+
{
291+
label: 'Sync Device',
292+
modal: true,
293+
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=syncDevice`,
294+
modalMessage: 'Are you sure you want to Sync these device(s)?',
295+
},
296+
{
297+
label: 'Reboot Device(s)',
298+
modal: true,
299+
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=rebootNow`,
300+
modalMessage: 'Are you sure you want to reboot these device(s)?',
301+
},
302+
{
303+
label: 'Update Windows Defender',
304+
modal: true,
305+
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=windowsDefenderUpdateSignatures`,
306+
modalMessage:
307+
'Are you sure you want to update the Windows Defender signatures for these device(s)?',
308+
},
309+
{
310+
label: 'Rotate Local Admin Password',
311+
modal: true,
312+
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=RotateLocalAdminPassword`,
313+
modalMessage: 'Are you sure you want to rotate the password for these devices(s)?',
314+
},
315+
{
316+
label: 'Rotate Bitlocker Keys',
317+
modal: true,
318+
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=rotateBitLockerKeys`,
319+
modalMessage:
320+
'Are you sure you want to rotate the Bitlocker Keys for these device(s)?',
321+
},
322+
],
323+
},
286324
}}
287325
/>
288326
)

0 commit comments

Comments
 (0)