mark hammond nkpmuffqskippinetcomau ive followed tim goldens cookbook example schedule job via python wmi module however need specify user account scheduled job gets executed ie process owner cookbook example schedule job owned system note actual wmi library provides user password option appear visible options within python wmi modules win32_scheduledjob call uncertain aforementioned user password options actually cause scheduled job run user workaround schedule job via win32_scheduledjob call follow win32_processcreate call schtasksexe change job ids run user ie via ru option appropriate user name way specify run execution user scheduled job within win32_scheduledjob call via wmi interface way right could simply called schtasksexe directly create process intended run user dont find eloquent im sure exactly snippet code use enfold note username string param special handling localsystem probably dont win32comtaskscheduler import taskscheduler tspythoncomcocreateinstancetaskschedulerclsid_ctaskschedulernone pythoncomclsctx_inproc_servertaskscheduleriid_itaskscheduler ttsnewworkitemtask_name tsetcommentthe comment tsetapplicationnameexecutable note windows 2000 appears allow task set incorrect password fails run xp sp2 fails add task none password valid local system acct task flags contain task_flag_run_only_if_logged_on point defaulting current user dont know password hardcoded support localsystem set task accordingly otherwise need username password usernamelower localsystem tsetaccountinformation none else assert username password need username password almost everywhere else allows username expand manually usernamestartswith username win32apigetcomputername username1 tsetaccountinformationusername password hope helps mark _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 fri 08 aug 2008 172906 1000 pythonwin32 wmi win32_scheduledjob execution user