The script writes events to the Windows Eventlog. These are the event codes used:

Error Description
1 Success. The script has been run successfully.
2 Success. The script has been installed successfully to the Windows scheduler.
201 Invoke-WebRequest failed. The URL requested did not return a http 200 return code. Instead it failed to fetch the file from the server. This happens normaly with an http 404 or 400 return code.

Last edited Nov 3, 2015 at 6:12 PM by Samurai_ka, version 2

Comments

No comments yet.