Skip to main content

Removable Storage Disable

Summary

Disables removable storage devices on the endpoint.

Notes

  • No reboot is required unless a removable device is already connected to the endpoint.

Example Agent Procedure Log

TimeActionStatusUser
4:23:54 pm 1-Nov-22Removable Storage DisableSuccess THENprovaltech.com/dan.hicks
4:23:54 pm 1-Nov-22Removable Storage DisableRemovable Storage has been disallowed on this endpoint.provaltech.com/dan.hicks
4:23:54 pm 1-Nov-22Execute Powershell Command (64-bit, Run As System)Success THENprovaltech.com/dan.hicks
4:23:54 pm 1-Nov-22Execute Powershell Command (64-bit, Run As System)-0014Powershell command completed!provaltech.com/dan.hicks
4:23:54 pm 1-Nov-22Execute Powershell Command (64-bit, Run As System)-0011Executing 64-bit Powershell command as System: "" -command "$ItemPath = 'HKLM://SOFTWARE//Policies//Microsoft//Windows//RemovableStorageDevices';if (!(Test-Path -Path $ItemPath)) {New-Item -Path $ItemPath -Force};Set-ItemProperty -Path $ItemPath -Name 'Deny_All' -Value 1 -Force" ""provaltech.com/dan.hicks
4:23:54 pm 1-Nov-22Execute Powershell Command (64-bit, Run As System)-0013Not sending output to variable.provaltech.com/dan.hicks
4:23:54 pm 1-Nov-22Execute Powershell Command (64-bit, Run As System)-0008Custom commands detected as $ItemPath = 'HKLM://SOFTWARE//Policies//Microsoft//Windows//RemovableStorageDevices';if (!(Test-Path -Path $ItemPath)) {New-Item -Path $ItemPath -Force};Set-ItemProperty -Path $ItemPath -Name 'Deny_All' -Value 1 -Forceprovaltech.com/dan.hicks
4:23:54 pm 1-Nov-22Execute Powershell Command (64-bit, Run As System)-0003No powershell file variable detected.provaltech.com/dan.hicks
4:23:53 pm 1-Nov-22Execute Powershell Command (64-bit, Run As System)-0002Powershell is present.provaltech.com/dan.hicks
4:23:45 pm 1-Nov-22Run Now - Removable Storage DisableAdmin provaltech.com/dan.hicks scheduled procedure Run Now - Removable Storage Disable to run at Nov 1 2022 4:23 PMprovaltech.com/dan.hicks

Process

Sets HKLM://SOFTWARE//Policies//Microsoft//Windows//RemovableStorageDevices//Deny_All to 1

Output

AP Log