ajtsystems
IS-IT--Management
Hi,
I am having problems running a Vbscript using server 2008 R2. When I run the script manually a file is created with a few lines of text, it is fine and works. When it runs under a scheduled task the file is created but never filled and the taks never stops.
Looking into it its permissions related.
Does anyone have any more information.
I have managed to capture the error using this batch file
@echo off
echo %date% %time% %username% >> c:\test.txt
cscript //nologo c:\1.vbs 1>>c:\test.txt 2>>&1
echo %date% %time% >> c:\test.txt
The error is permission denied but I am running under an admin account...
Any help would be good
I am having problems running a Vbscript using server 2008 R2. When I run the script manually a file is created with a few lines of text, it is fine and works. When it runs under a scheduled task the file is created but never filled and the taks never stops.
Looking into it its permissions related.
Does anyone have any more information.
I have managed to capture the error using this batch file
@echo off
echo %date% %time% %username% >> c:\test.txt
cscript //nologo c:\1.vbs 1>>c:\test.txt 2>>&1
echo %date% %time% >> c:\test.txt
The error is permission denied but I am running under an admin account...
Any help would be good