title: Execute a job in SQL Server Agent : login from an untrusted domain
body: <p>I have an issue with the execution of an SSIS Package within the SQL Server Agent.</p>
  
  <p>Context : </p>
  
  <ul>
  <li>I deployed a package into the Integrated Services Catalog : <a href="http://i.stack.imgur.com/m9Y9c.png" rel="nofollow">http://i.stack.imgur.com/m9Y9c.png</a> I have not difficult to execute this package manually.</li>
  </ul>
  
  <p>Problem :</p>
  
  <ul>
  <li>When I try to execute this package within a job into the SQL Server Agent, I have an error : "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication."
  
  <blockquote>
    <p>Exécuté en tant qu'utilisateur : NT Service\SQLSERVERAGENT. Utilitaire d'exécution de package Microsoft (R) SQL Server  Version 11.0.5058.0 for 64-bit
    Échec de l'exécution du package serveur IS en raison de l'erreur 0x80131904. Serveur : OPP41****** Chemin du package : \SSISDB\automates\automate_PIT_pilotage\recuperation_cmd_a_traiter.dtsx
    ID de référence environnementale : NULL.  Description : Échec de la connexion. La connexion provient d'un domaine non approuvé et ne peut pas être utilisée avec l'authentification Windows.  Source : .Net SqlClient Data Provider</p>
  </blockquote></li>
  </ul>
  
  <p>The owner of the job is my AD account.</p>
  
  <p>This is how the step is configured : <a href="http://i.stack.imgur.com/QrJf9.png" rel="nofollow">http://i.stack.imgur.com/QrJf9.png</a></p>
  
  <p>The SQL Server Agent service is running through the "NT Service\SQLSERVERAGENT" account.</p>
  
  <p>Thank you very much by advance, I'm going crazy !</p>