Writing IISAPP.vbs to File
Posted: 30 Jul 2009 02:38
Hello all
Using perfmon I have created an alert that will send an email when a threshold is met. one of the alerts I have created is w3wp.exe so using the IISAPP.VBS script I want to echo the results of this to file for emailing so we can see what site is being affected.
like
resulting in iisapp.vbs just being written instead of
W3WP.exe PID: 7064 AppPoolId: site1
W3WP.exe PID: 14576 AppPoolId: site2
W3WP.exe PID: 17536 AppPoolId: site3
W3WP.exe PID: 4816 AppPoolId: site4
being written to file.
in the code i have tried putting % signs around the iisapp.vbs to see if that works but nadda.
anyone help with this?
Using perfmon I have created an alert that will send an email when a threshold is met. one of the alerts I have created is w3wp.exe so using the IISAPP.VBS script I want to echo the results of this to file for emailing so we can see what site is being affected.
like
Code: Select all
echo iisapp.vbs >> w3wp.txt
resulting in iisapp.vbs just being written instead of
W3WP.exe PID: 7064 AppPoolId: site1
W3WP.exe PID: 14576 AppPoolId: site2
W3WP.exe PID: 17536 AppPoolId: site3
W3WP.exe PID: 4816 AppPoolId: site4
being written to file.
in the code i have tried putting % signs around the iisapp.vbs to see if that works but nadda.
anyone help with this?