Answer the question
In order to leave comments, you need to log in
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
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)
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 questionAsk a Question
731 491 924 answers to any question