Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bulk options to device list #2713

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions src/views/endpoint/intune/Devices.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,44 @@ const DevicesList = () => {
path: '/api/ListDevices',
reportName: `${tenant?.defaultDomainName}-Device-List`,
params: { TenantFilter: tenant?.defaultDomainName },
tableProps: {
keyField: 'id',
selectableRows: true,
actionsList: [
{
label: 'Sync Device',
modal: true,
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=syncDevice`,
modalMessage: 'Are you sure you want to Sync these device(s)?',
},
{
label: 'Reboot Device(s)',
modal: true,
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=rebootNow`,
modalMessage: 'Are you sure you want to reboot these device(s)?',
},
{
label: 'Update Windows Defender',
modal: true,
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=windowsDefenderUpdateSignatures`,
modalMessage:
'Are you sure you want to update the Windows Defender signatures for these device(s)?',
},
{
label: 'Rotate Local Admin Password',
modal: true,
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=RotateLocalAdminPassword`,
modalMessage: 'Are you sure you want to rotate the password for these devices(s)?',
},
{
label: 'Rotate Bitlocker Keys',
modal: true,
modalUrl: `/api/ExecDeviceAction?TenantFilter=${tenant.defaultDomainName}&GUID=!id&Action=rotateBitLockerKeys`,
modalMessage:
'Are you sure you want to rotate the Bitlocker Keys for these device(s)?',
},
],
},
}}
/>
)
Expand Down
Loading