Hi All
I have created a a small VB Script for some windows 2008 servers which extracts data regarding the free space on each drive in that particular server. These results are all then written to a central .csv file, ready to be inserted into an SQL database. The problem I have, is that when the script is run manually, it works fine and the results file is populated with data from the relevant server. When i attach the script to a scheduled task, although task manager reports that the task executed successfully, nothing is written to the .CSV file. I haven't got two servers writing to the file at the same time as I have tested each server individually and the file is not open on the central server. The scheduled task is set to run as NT AUTHORITY\SYSTEM so that it can run when the server is logged off. Has anyone experienced this before? Is there perhaps another set of credentials I can use to run the task as, if that is the problem? Many Thanks!
I have created a a small VB Script for some windows 2008 servers which extracts data regarding the free space on each drive in that particular server. These results are all then written to a central .csv file, ready to be inserted into an SQL database. The problem I have, is that when the script is run manually, it works fine and the results file is populated with data from the relevant server. When i attach the script to a scheduled task, although task manager reports that the task executed successfully, nothing is written to the .CSV file. I haven't got two servers writing to the file at the same time as I have tested each server individually and the file is not open on the central server. The scheduled task is set to run as NT AUTHORITY\SYSTEM so that it can run when the server is logged off. Has anyone experienced this before? Is there perhaps another set of credentials I can use to run the task as, if that is the problem? Many Thanks!