M
M
MKrivosheev2013-01-24 18:35:35
JavaScript
MKrivosheev, 2013-01-24 18:35:35

Why doesn't a simple script from the Windows8 scheduler work?

Pretty simple js:
var WshShell = WScript.CreateObject( "WScript.Shell" );
var fso = WScript.CreateObject( "Scripting.FileSystemObject" );
var oDesktopFolder = fso.getFolder( WshShell.SpecialFolders( "Desktop" ) );
fso.CreateFolder( oDesktopFolder + "\\Folder" );

Works under Windows7 and younger anyway and for some reason does not work under Windows8 scheduler (runs under admin account with disabled UAC, if that matters). Launched manually fulfills correctly. Can you give reasons?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
PoliTeX, 2013-01-24
@PoliTeX

the scheduler is a service, it does not run under the launching user, but under its own, services.msc -> check that it has rights. Usually local system, but if it is changed to a local service, for example, the rights will not be enough (by default, of course)

P
PoliTeX, 2013-01-24
@PoliTeX

I checked it, it worked for me, only I swore at the "Christmas trees"

N
Nikolai Turnaviotov, 2013-01-26
@foxmuldercp

Hm. and if to make runas the necessary user?
the scheduler then hangs under its utka ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question