Skip to main content

Registry contents Removal

Summary

This script is developed to delete all contents of the PendingFileRenameOperations registry.

Sample Run

TimeActionStatusUser
3:28:32 am 23-Aug-22Remove PendingFileRenameOperationsSuccess THENprovaltech.com/surender.kumar
3:28:32 am 23-Aug-22Remove PendingFileRenameOperations-0002All registry content has been cleared.provaltech.com/surender.kumar
3:28:32 am 23-Aug-22Remove PendingFileRenameOperations-0001PendingFileRenameOperations REG_MULTI_SZprovaltech.com/surender.kumar
3:28:32 am 23-Aug-22Execute Shell command - Get Results to VariableSuccess THENprovaltech.com/surender.kumar
3:28:30 am 23-Aug-22Execute Shell command - Get Results to Variable-0005Executing command in 64-bit shell as system: Reg Query "HKLM/SYSTEM/CurrentControlSet/Control/Session Manager"findstr "PendingFileRenameOperations" >"c:/provaltech/commandresults-1828873436.txt" 2>&1
3:28:29 am 23-Aug-22Execute Powershell Command (64-bit, Run As System)Success THENprovaltech.com/surender.kumar
3:28:28 am 23-Aug-22Execute Powershell Command (64-bit, Run As System)-0016Powershell command complete. Results returned to global variable #global:psresult# and saved in Agent's Documents tab of server.provaltech.com/surender.kumar
3:28:28 am 23-Aug-22Execute Powershell Command (64-bit, Run As System)-0016Informational: GetFile command overwrote the server file C:/Kaseya/UserProfiles/746610212782388/GetFiles/../docs/psoutput.txt with the new contents from c:/provaltech/psoutput.txt in THEN step 3.provaltech.com/surender.kumar
3:28:26 am 23-Aug-22Execute Powershell Command (64-bit, Run As System)-0011Executing 64-bit Powershell command as System: -file "%ProgramData%/_automation/AgentProcedure/ren_ops.ps1" "" >"c:/provaltech/psoutputtmp.txt"provaltech.com/surender.kumar
3:28:26 am 23-Aug-22Execute Powershell Command (64-bit, Run As System)-0013Sending output to global variable.provaltech.com/surender.kumar
3:28:25 am 23-Aug-22Execute Powershell Command (64-bit, Run As System)-0007No command variable detected.provaltech.com/surender.kumar
3:28:25 am 23-Aug-22Execute Powershell Command (64-bit, Run As System)-0006Powershell command specified as %ProgramData%/_automation/AgentProcedure/ren_ops.ps1provaltech.com/surender.kumar
3:28:24 am 23-Aug-22Execute Powershell Command (64-bit, Run As System)-0002Powershell is present.provaltech.com/surender.kumar
3:28:23 am 23-Aug-22Write text to fileSuccess THENprovaltech.com/surender.kumar
3:28:22 am 23-Aug-22Write text to file-0002Overwrite enabled and file exists - deleting before write process.provaltech.com/surender.kumar
3:28:22 am 23-Aug-22Remove PendingFileRenameOperations-0001Initiated command to clear registry contentsprovaltech.com/surender.kumar
3:28:22 am 23-Aug-22Remove PendingFileRenameOperations-0001Registry is Presentprovaltech.com/surender.kumar
3:28:22 am 23-Aug-22Remove PendingFileRenameOperationsHKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Session Manager PendingFileRenameOperations REG_MULTI_SZ ...provaltech.com/surender.kumar
3:28:21 am 23-Aug-22Execute Shell command - Get Results to VariableSuccess THENprovaltech.com/surender.kumar
3:28:19 am 23-Aug-22Execute Shell command - Get Results to Variable-0005Executing command in 64-bit shell as system: Reg Query "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Session Manager" /v PendingFileRenameOperations >"c:/provaltech/commandresults-166058979.txt" 2>&1provaltech.com/surender.kumar
3:28:11 am 23-Aug-22Run Now - Remove PendingFileRenameOperationsAdmin provaltech.com/surender.kumar scheduled procedure Run Now - Remove PendingFileRenameOperations to run at Aug 23 2022 3:28 AMprovaltech.com/surender.kumar

Dependencies

No

Process

  • The agent checks the registry for the command "PendingFileRenameOperations" to see if the registry exists.
  • If the registry exists, it deletes all content from the registry and re-checks whether all content has been removed.

Output

  • Agent Procedure Log

Procedure_PendingFileRenameOperations_-_Registry_contents_Removal.xml

Attachments

Procedure_Remove_PendingFileRenameOperations.xml