[wpkg-users] Running wpkg.js as System Account
LAPLAUD François
laplaud at sdis72.fr
Thu Jan 6 16:45:48 CET 2011
Hi again,
In fact i was wrong sorry, the TEMP var is correctly initialized...
My problem is totally different from what I previously said :
I am making tests of remotely running the wpkg.js script using System Account by using psexec like below :
psexec \\pc1007-057 -s cscript \\srv-wds01.sdis72.fr\wpkg-w7\wpkg.js /synchronize /debug
All is going well except that I get this error message :
[...]
Initialized temporary local log file: C:\Windows\TEMP\wpkg-logInit.log
Initializing new log file: \\srv-wds01.sdis72.fr\wpkg\Logs\pc1007-057.W7.log
Failed to open log file: ACCESS DENIED; falling back to local logging: null
WPKG 1.1.2 starting...
Base directory is '\\srv-wds01.sdis72.fr\wpkg-w7'.
[...]
I have checked shares and NTFS rights and they seems correct.
I then types the following command :
psexec \\pc1007-057 -s cmd /c echo test > \\srv-wds01.sdis72.fr\wpkg\Logs\pc1007-057.W7.log
And this last command works perfectly (the log file is created... with the text "test" in it)
If I try again to run the first command, same error message appear.
I am lost...
Thanks by advance and sorry about my previous erroneous message.
Laplaud François
>
>Bonjour!
>
>> I am trying to run wpkg.js from a scheduled task running as System >Account.
>> I am getting an access denied error message on line 5351.
>> It seems to be because the script tries to init
>> var tempLogPath = new >ActiveXObject("WScript.Shell").ExpandEnvironmentStrings("%TEMP%\\wpkg->logInit.log");
>>
>> %TEMP% is not available for the System Account, so the resulting var is >null.
>> I am wondering if I am doing something wrong and what could be the best >way to modify the script to make a default log file for instance at the >root of the C drive for instance.
>>
>> Hope to find some help quickly.
>>
>How do you start the scheduled task? Just define a TEMP variable in a
>batch file and start "cscript wpkg.js /synchronize" from within the
>batch file.
>
>Best regards
>Falko
>
>-------------------------------------------------------------------------
>wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg->users/
>_______________________________________________
>wpkg-users mailing list
>wpkg-users at lists.wpkg.org
>http://lists.wpkg.org/mailman/listinfo/wpkg-users
More information about the wpkg-users
mailing list