---
updatedAt: 2025-08-14T13:53:56.000Z
agentTools:
  siteIndex: https://developer.n-able.com/llms.txt
  projectIndex: https://developer.n-able.com/n-sight/llms.txt
---

# Move old event log files

```powershell VB Script
Try {
	#Transfaring Archive*.evtx to $PATH
	$PATH = C:\test1
	Move-Item C:\Windows\System32\winevt\Logs\Archive*.evtx  $PATH
 	Write-Host  "Script Check passed"
	Exit 0		
}

 Catch {
	Write-Host  "Script Check Failed"
	Exit 1001
	}



	
```

```json Response Example
{"success":true}
```

# SCRIPT