Getting the `The application failed to initialize properly`/3221225794 error executing a batch file
问题 There is a scheduled task that is attached to a custom event in the EventLog , it executes the lines below: reconnect.cmd c:\windows\system32\rasphone -f "phone_book.pbk" -d "vpn_connection" net stop my_windows_service net start my_windows_service The task ususally runs normally without errors. But sometimes it returns error The application failed to initialize properly (3221225794) . The task is configured to run under system account so it is supposed to have all required permissions to run