Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (7 sloc) 404 Bytes
#Windows Power
#$content = [IO.File]::ReadAllText($output)
$content='Compeleted Backup C:/Shared to //nas/Public/Shared '
$postParams = @{user='WindowsTask'; message=$content; category=WINDOWS}
#now call post the information to the PHP script
#Invoke-WebRequest is a powerShell feature introduced in PowerShell 3.0.
Invoke-WebRequest -Uri http://localhost/lab/logevent.php -Method POST -Body $postParams
You can’t perform that action at this time.