![windows 10 file copy log windows 10 file copy log](https://static.filehorse.com/screenshots/drivers/bluetooth-file-transfer-pc-screenshot-01.png)
If you just need to copy files only from c:\test to the current user's My Documents folder, just use copy c:\test\* "%userprofile%\My Documents\" If you want to back up the event logs, look at Microsoft's Script Center for samples.You're looking for the 'copy' or 'xcopy' commands, depending on your needs. The VBScript/WMI method only clears the classic Event Logs (Application, Security, System etc, not the new XML type of event logs which are cleared by PowerShell or wevtutil.exe).Īlso note that these scripts do not back up the logs before they are cleared. You can also directly run it without opening the command prompt or using cmd /c so the command prompt closes after running it. Run the VBScript file from the command prompt: CScript ClEvtLog.vbs.
#Windows 10 file copy log full
Copy this VBScript file to some directory to in your system path such as C:\Windows so you don't have to type the full path to it every time you run it.vbs extension, type the file name in quotes, that is, "ClEvtLog.vbs". Save it as a VBScript (.VBS) file and give it any name you want for example: ClEvtLog.vbs.Set colLogFiles = objWMIService.ExecQuery _ Type or copy-paste the following command into PowerShell: wevtutil el | Foreach-Object !\\" _.Open PowerShell as administrator (see how).
#Windows 10 file copy log how to
How to clear all Event Logs using PowerShell