mirror of
https://github.com/XiaoliChan/wmiexec-Pro.git
synced 2026-10-18 22:50:54 +08:00
d8877a6baa
Signed-off-by: XiaoliChan <2209553467@qq.com>
5 lines
252 B
Plaintext
5 lines
252 B
Plaintext
Set TempFileSet = GetObject("winmgmts:\\.\ROOT\cimv2").ExecQuery("Select * from CIM_DataFile Where Path = ""\\Windows\\Temp\\"" And Extension = ""log"" And FileName Like ""windows-object%""")
|
|
|
|
for each Tempfile in TempFileSet
|
|
Tempfile.Delete()
|
|
next |